Skip to content

Commit

Permalink
navigator_launch: Add arguments for specifying joystick device input …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
cbrxyz committed Oct 3, 2024
1 parent c60fd6b commit 96a7066
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<launch>
<arg name="wireless" default="False" />
<arg name="device_input" default="/dev/input/js0" unless="$(arg wireless)"/>
<arg name="device_input" default="/dev/input/by-id/usb-045e_0291-joystick" if="$(arg wireless)"/>
<!-- Connect to MIL's Xbox Game controller to publish /joy messages -->
<node pkg="joy" type="joy_node" name="joy_node">
<param unless="$(arg wireless)" name="dev" type="string" value="/dev/input/js0" />
<param if="$(arg wireless)" name="dev" type="string" value="/dev/input/by-id/usb-045e_0291-joystick" />
<param name="dev" type="string" value="$(arg device_input)" />
<param name="deadzone" value="0.12" />
<param name="autorepeat_rate" value="5"/>
</node>
Expand Down

0 comments on commit 96a7066

Please sign in to comment.