Information/ROS

[ROS] How to use Logitech 3D Pro Joystick with ROS

페트론 2021. 5. 18. 16:55

1. Install joystick_driver Package

ros-drivers/joystick_drivers

you better install package as sources for editing files later.

refer this link for setting up the usb devices.

Wiki

2. Create Launch file in "~/catkin_ws/src/joystick_driver/launch"

<launch>
  <group ns="right">
    <arg name="dev" default="/dev/input/js0" />
    <node name="joy_node" pkg="joy" type="joy_node">
      <param name="dev" value="$(arg dev)" />
    </node>
  </group>

  <group ns="left">
    <arg name="dev" default="/dev/input/js1" />
    <node name="joy_node" pkg="joy" type="joy_node">
      <param name="dev" value="$(arg dev)" />
    </node>
  </group>

</launch>

 

then you can see the result like this.

 

 

반응형