remote_control_lib - Remote Control

class remote_control_lib.RemoteControl(controller_name: str, wrench_pub: Optional[str] = None)[source]

Helper class which assists in allowing the remote execution of several key robot services.

clear_kill(*args, **kwargs) None[source]

Clears the system kill regardless of what state it is in.

clear_wrench(*args, **kwargs) None[source]

Publishes a zeroed wrench to the specified node based on force inputs from the controller.

deploy_thrusters(*args, **kwargs) None[source]

Deploys the thrusters by creating a new task in the task client.

kill(*args, **kwargs) None[source]

Kills the system regardless of what state it is in.

publish_wrench(x: float, y: float, rotation: float, stamp: Optional[Time] = None, *args, **kwargs) None[source]

Publishes a wrench to the specified node based on force inputs from the controller.

Parameters
  • x (float) – The x-dimension of the wrench’s force vector.

  • y (float) – The y-dimension of the wrench’s force vector.

  • rotation (float) – The z-dimension of torque.

  • stamp (Optional[genpy.rostime.Time]) – The time to attach to the header. If None, then use the current time.

retract_thrusters(*args, **kwargs) None[source]

Retracts the thrusters by creating a new task in the task client.

select_autonomous_control(*args, **kwargs) None[source]

Selects the autonomously generated trajectory as the active controller.

select_emergency_control(*args, **kwargs) None[source]

Selects the emergency controller as the active controller.

select_keyboard_control(*args, **kwargs) None[source]

Selects the keyboard teleoperation service as the active controller.

select_next_control(*args, **kwargs) None[source]

Selects the autonomously generated trajectory as the active controller.

select_rc_control(*args, **kwargs) None[source]

Selects the Xbox remote joystick as the active controller.

set_disc_speed(speed: int, *args, **kwargs) None[source]

Sets the shooters disc speed to the speed value passed in. The value is a percentage from -100 to 100, which is scaled down to a number from -1 to 1.

Parameters

speed (int) – The speed to set the shooter disc to.

shooter_cancel(*args, **kwargs) None[source]

Cancels the process that the shooter action client is currently running.

shooter_fire(*args, **kwargs) None[source]

Fires the shooter by using the action client to spin up the acceleration discs and extend the linear actuator.

shooter_linear_extend(*args, **kwargs)[source]

Extends the shooter’s linear actuator by setting it’s speed to full forward.

shooter_linear_retract(*args, **kwargs)[source]

Retracts the shooter’s linear actuator by setting it’s speed to full reverse.

shooter_load(*args, **kwargs) None[source]

Loads the shooter by using the action client to retract the linear actuator.

shooter_reset(*args, **kwargs) None[source]

Ensures that the shooter is fully retracted by initiating a retract and using a ~6s delay before calling the actual reset service.

station_hold(*args, **kwargs) None[source]

Sets the goal point to the current location and switches to autonomous mode in order to stay at that point.

toggle_kill(*args, **kwargs) None[source]

Toggles the kill status when the toggle_kill_button is pressed.