Browse Source

Fix joystick velocity teleop deadman button

A bug in how the deadman button was set prevented users from being able to send Twist commands to the cmd_vel topic using the Joystick controller in the teleop_twist.launch file.
features/collision_mesh
Binit Shah 1 year ago
committed by GitHub
parent
commit
bd8c72f16e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      stretch_core/launch/teleop_twist.launch

+ 1
- 1
stretch_core/launch/teleop_twist.launch View File

@ -23,7 +23,7 @@
<param name="deadzone" value="0.05" /> <param name="deadzone" value="0.05" />
</node> </node>
<node name="teleop_twist_joy" pkg="teleop_twist_joy" type="teleop_node"> <node name="teleop_twist_joy" pkg="teleop_twist_joy" type="teleop_node">
<param name="enable_button" type="int" value="-1" /> <!-- value="0" to enable deadman button -->
<param name="enable_button" type="int" value="0" /> <!-- The 'A' button (green one) on the controller is the deadman button -->
<param name="scale_linear" type="double" value="$(arg linear)" /> <param name="scale_linear" type="double" value="$(arg linear)" />
<param name="scale_angular" type="double" value="$(arg angular)" /> <param name="scale_angular" type="double" value="$(arg angular)" />
<remap from="/cmd_vel" to="$(arg twist_topic)" /> <remap from="/cmd_vel" to="$(arg twist_topic)" />

Loading…
Cancel
Save