ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

what(): Unable to find package: nodelet

asked 2021-11-29 07:51:53 -0500

jgauthier gravatar image

updated 2021-11-29 09:27:56 -0500

I am working with ROS melodic on a raspberry pi 3, compiled from source. I also had to compile openCV 3.x from source.

My end goal is to use the freenect_stack to do SLAM with an Xbox Kinect device.

When launching:

roslaunch freenect_launch freenect.launch depth_registration:=true

I get the following error. The kinect camera isn't detected or topics registered so I believe this is an integral part of the stack. However, the logs do not exist that are being referenced. I wonder if it's a shared object loading issue, (openCV is installed in my workspace) but setting LD_RUN_PATH didn't solve the issue either. I'm running the application directly:

/home/pi/ros_catkin_ws/install_isolated/lib/nodelet/nodelet manager __name:=camera_nodelet_manager

And trying to use 'strace' to figure it out. But not sure how else to troubleshoot it.

process[camera/camera_nodelet_manager-2]: started with pid [24271]
terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
  what():  Unable to find package: nodelet
[camera/camera_nodelet_manager-2] process has died [pid 24271, exit code -6, cmd /home/pi/ros_catkin_ws/install_isolated/lib/nodelet/nodelet manager __name:=camera_nodelet_manager __log:=/home/pi/.ros/log/3e64c5f6-511b-11ec-9888-b827eb4bb89f/camera-camera_nodelet_manager-2.log].
log file: /home/pi/.ros/log/3e64c5f6-511b-11ec-9888-b827eb4bb89f/camera-camera_nodelet_manager-2*.log
edit retag flag offensive close merge delete

Comments

Hi @jgauthier, if you could add more context to your question and more insights what you are working on it will be helpful. Take a look at prior answer with similar error and the details that were provided: https://answers.ros.org/question/2787...

It's unlikely that the error is caused by the same issue, but it was easier to find a solution with the details provided.

osilva gravatar image osilva  ( 2021-11-29 09:13:23 -0500 )edit

I will edit the post to include more information.

jgauthier gravatar image jgauthier  ( 2021-11-29 09:23:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-29 14:32:56 -0500

jgauthier gravatar image

I stumbled upon the solution completely by accident. I ran a rospack list and I received this error:

terminate called after throwing an instance of 'rospack::Exception'
  what():  error parsing manifest of package rosmake at /home/pi/ros_catkin_ws/install_isolated/share/rosmake/package.xml
Aborted

Text like this was at the top of many of the package.xml files:

<?xml version="1.0"?>
<?xml-model
  href="http://download.ros.org/schema/package_format3.xsd"
  schematypens="http://www.w3.org/2001/XMLSchema"?>

I had to go through and remove them all. rospack worked after that. So did my launch (well, there are other errors, but they are different than this)

edit flag offensive delete link more

Comments

The permanent fix is upgrading TinyXML. https://github.com/ros/rospack/issues/77 I specifically built 4.0.1-patch in my local directory as to not change the system.

jgauthier gravatar image jgauthier  ( 2021-11-30 08:47:02 -0500 )edit

Thank you for the info. First time I see this rospack error. Good to know.

osilva gravatar image osilva  ( 2021-11-30 11:12:48 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-11-29 07:51:53 -0500

Seen: 254 times

Last updated: Nov 29 '21