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

catkin generating lib packages instead of bin packages

asked 2013-05-15 00:01:40 -0600

altella gravatar image

updated 2013-05-15 04:01:37 -0600

dornhege gravatar image

Hello all;

I am starting with ROS, groovy version. I have managed to compile some code in a package using catkin, but the executables generated are placed ~/catkin_ws/devel/lib/package_name.

In my CmakeLists.txt I have used "add_executable" and "target_link_libraries"

I think the executables should be in ~/catkin_ws/devel/bin/package_name., instead under lib directory.

Is this correct? Where could I have the error?

Thank you all in advance,

Best Regards,

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-15 04:01:06 -0600

dornhege gravatar image

AFAIK this is correct and not an error at your side, although a bit ugly.

My guess is that this is used to not pollute the namespace in $PATH that adds bin/... and only run nodes via rosrun. A comment from the developers would be nice.

edit flag offensive delete link more



Not a developer, but I've been documenting catkin lately. Here's my current draft, which agrees with your answer:

joq gravatar image joq  ( 2013-05-15 06:43:46 -0600 )edit

For an official answer, see REP-0122:

joq gravatar image joq  ( 2013-05-15 06:46:07 -0600 )edit

answered 2013-05-15 04:49:56 -0600

altella gravatar image

Thank you... If this is correct, as you say it is a bit confusing, where the real compiled libraries would de placed then?

Another problem arises with this. Now I am trying to launch one of these executables from a launch file using:

<node pkg="tekniker_pcl_io" name="RecordAllPcdFromTopic" type="RecordAllPcdFromTopic"/>

And I get this error: ERROR: cannot launch node of type [tekniker_pcl_io/RecordAllPcdFromTopic]: can't locate node [RecordAllPcdFromTopic] in package [tekniker_pcl_io]

Thank you in advance...

edit flag offensive delete link more


This is not a discussion forum. Your question was answered, please mark it accordingly. If you have other questions, please ask them separately.

joq gravatar image joq  ( 2013-05-16 15:18:15 -0600 )edit

Question Tools


Asked: 2013-05-15 00:01:40 -0600

Seen: 357 times

Last updated: May 15 '13