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.

 

 

반응형

'Information > ROS' 카테고리의 다른 글

[ROS] MIR100 ROS Driver  (0) 2021.06.23
[ROS] PyQT with ROS Melodic  (0) 2021.05.12
[ROS] Run UR using ROS moveit!  (0) 2021.05.04
[ROS] Run UR using ROS & Python  (0) 2021.05.04
[ROS] Catkin Package 사용법  (0) 2020.09.07