"Unknown joystick" exception for teleop in MoveIT
I'm trying to run the teleop mode from moveit
I have this running in one terminal:
roslaunch panda_moveit_config demo.launch
And this in the second one:
roslaunch panda_moveit_config joystick_control.launch dev:=/dev/input/js0
but I get this error:
[ERROR] [1560376798.477129]: bad callback: <bound method MoveitJoy.joyCB of <moveit_ros_visualization.moveitjoy_module.MoveitJoy instance at 0x7f998c14dcf8>>
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback
cb(msg)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_ros_visualization/moveitjoy_module.py", line 475, in joyCB
raise Exception("Unknown joystick")
Exception: Unknown joystick
If I run jstsest /dev/input/js0
, I get the correct output. And all my joystick drivers are up to date. I'm using a Sony PS3 controller, which should be supported. Any ideas?
Just a note to make you aware of it: the joystick interface to moveit is not a regular "jogging" interface as you would know from industrial robots. The joystick only controls the interactive marker used for configuring the goal state, which is then turned into a planning request.