Skip to content

Commit

Permalink
Switch to using joy_linux package instead of joy
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Nov 2, 2023
1 parent c38d073 commit f37c801
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions leo_teleop/launch/joy_teleop.launch.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<launch version="0.1.1">
<arg name="joy_dev_id" default="0" description="Joystick device id" />
<arg name="joy_dev" default="/dev/input/js0"
description="Joystick device path" />
<arg name="cmd_vel_out" default="cmd_vel"
description="Topic to send velocity commands on" />
<arg name="joy_config_file"
default="$(find-pkg-share leo_teleop)/config/joy_config.yaml"
description="Path to the yaml file with parameters for joy_teleop_node" />

<node pkg="joy" exec="joy_node">
<param name="device_id" value="$(var joy_dev_id)" />
<param name="coalesce_interval_ms" value="50" />
<node pkg="joy_linux" exec="joy_linux_node">
<param name="dev" value="$(var joy_dev)" />
<param name="coalesce_interval" value="0.05" />
<param name="autorepeat_rate" value="10.0" />
</node>

Expand Down
2 changes: 1 addition & 1 deletion leo_teleop/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<buildtool_depend>ament_cmake</buildtool_depend>

<exec_depend>joy</exec_depend>
<exec_depend>joy_linux</exec_depend>
<exec_depend>teleop_twist_joy</exec_depend>
<exec_depend>teleop_twist_keyboard</exec_depend>

Expand Down

0 comments on commit f37c801

Please sign in to comment.