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

Cannot export nodelet plugins in package.xml format 2

asked 2014-09-04 01:04:12 -0500

kartikmohta gravatar image

Hi,

When using the new package.xml format 2 ( http://docs.ros.org/indigo/api/catkin... ), I am not able to export any nodelet plugins from my package. The relevant parts of the package.xml are:

<depend>roscpp</depend>
<depend>nodelet</depend>

Trying to launch my nodelet gives me a

Failed to load nodelet [...] According to the loaded plugin descriptions the class [...] with base class type nodelet::Nodelet does not exist.

error. On running

rospack plugins --attrib=plugin nodelet

it does not list my package. But now if I add a

<run_depend>nodelet</run_depend>

in the package.xml which is invalid according to the new format, rospack lists it in the plugins list but of course I'm not able to run the nodelet since the package.xml is invalid.

If I go back to package.xml format 1, everything works fine. So, is this due to some incomplete implementation of package.xml format 2?

edit retag flag offensive close merge delete

Comments

Please include your full package.xml in your question.

ahendrix gravatar image ahendrix  ( 2014-09-04 01:36:54 -0500 )edit
William gravatar image William  ( 2014-09-04 04:04:23 -0500 )edit
1

@kartikmohta as you describe the problem, it sounds like a bug. I believe rospack prunes the list of packages to only include ones that run_depend on the target package, in this case nodelet. It could be that this code path is not aware of the aggregate nature of the <depend> tag.

William gravatar image William  ( 2014-09-04 04:06:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-04 11:23:36 -0500

Dirk Thomas gravatar image

updated 2014-09-04 13:45:31 -0500

This is actually not yet implemented in rospack. I created a ticket to track it: https://github.com/ros/rospack/issues/43

Update: A patch version has just been released into Indigo (2.2.5), Hydro and Groovy (2.1.24). It will take a while for rebuilding all packages and actually syncing the new packages to public.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-09-04 01:04:12 -0500

Seen: 577 times

Last updated: Sep 04 '14