joystick_ros2
joystick_ros2 copied to clipboard
Error running joystick_ros2 on ROS2 foxy (Ubuntu 20.04)
Running ros2 run joystick_ros2 joystick_ros2
on ROS2 Foxy gives the following error. I built the package using colcon build --packages-select joystick_ros2
(with warnings about package.xml.
Traceback (most recent call last):
File "/home/slickmind/Documents/e2e/e2e_ws/install/joystick_ros2/lib/joystick_ros2/joystick_ros2", line 11, in
Please let me know if I am missing something here.
My fix for ROS2 Foxy:
Line 189 change from self.create_publisher(Joy, 'joy') to self.create_publisher(Joy, 'joy', 10)