ros-drivers / joystick_drivers

ROS drivers for joysticks
http://wiki.ros.org/joystick_drivers
204 stars 290 forks source link

Could not open the space navigator device. Did you remember to run spacenavd (as root)? #248

Open Akumar201 opened 1 year ago

Akumar201 commented 1 year ago

Hi, I am trying to run the following command from MoveIt Tutorial

roslaunch moveit_servo spacenav_cpp.launch

However , getting the following error

Could not open the space navigator device. Did you remember to run spacenavd (as root)? I tried resolving it using the following link , however still getting the following issue

sudo bash
root@akumar-ThinkPad-P17-Gen-2i:/home/akumar/ws_moveit/src/joystick_drivers/spacenav_node# rosrun spacenav spacenavd

Command 'rosrun' not found, but can be installed with:

apt install rosbash

root@akumar-ThinkPad-P17-Gen-2i:/home/akumar/ws_moveit/src/joystick_drivers/spacenav_node# apt install rosbash
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 rosbash : Depends: catkin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@akumar-ThinkPad-P17-Gen-2i:/home/akumar/ws_moveit/src/joystick_drivers/spacenav_node# 

I am using Ubuntu 20.04 and ROS Noetic