Commit 862fd9c7 authored by Dave Niewinski's avatar Dave Niewinski
Browse files

Updated default controller to be PS4. Can be set back to logitech (legacy) by...

Updated default controller to be PS4.  Can be set back to logitech (legacy) by setting HUSKY_LOGITECH environment variable
parent 6e8f9468
# Teleop configuration for PS4 joystick using the x-pad configuration.
axis_linear: 1
scale_linear: 0.4
scale_linear_turbo: 2.0
axis_angular: 0
scale_angular: 1.4
enable_button: 4
enable_turbo_button: 5
deadzone: 0.1
autorepeat_rate: 20
dev: /dev/input/ds4x
...@@ -6,11 +6,16 @@ ...@@ -6,11 +6,16 @@
<group ns="joy_teleop"> <group ns="joy_teleop">
<group unless="$(optenv HUSKY_LOGITECH 0)" >
<rosparam command="load" file="$(find husky_control)/config/teleop_ps4.yaml" />
<group if="$(optenv HUSKY_LOGITECH 0)" >
<rosparam command="load" file="$(find husky_control)/config/teleop.yaml" /> <rosparam command="load" file="$(find husky_control)/config/teleop.yaml" />
<param name="joy_node/dev" value="$(arg joy_dev)" />
<node pkg="joy" type="joy_node" name="joy_node"> <node pkg="joy" type="joy_node" name="joy_node" />
<param name="dev" value="$(arg joy_dev)" />
<node pkg="teleop_twist_joy" type="teleop_node" name="teleop_twist_joy"/> <node pkg="teleop_twist_joy" type="teleop_node" name="teleop_twist_joy"/>
</group> </group>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment