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

catkin generating lib packages instead of bin packages

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

altella gravatar image

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

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
1

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

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

Comments

2

Not a developer, but I've been documenting catkin lately. Here's my current draft, which agrees with your answer: http://farnsworth.csres.utexas.edu/docs/catkin/html/howto/building_executables.html#installing

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

For an official answer, see REP-0122: http://ros.org/reps/rep-0122.html

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

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

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

Comments

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 -0500 )edit

Question Tools

Stats

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

Seen: 357 times

Last updated: May 15 '13