Ask Your Question
0

Catkin_make install

asked 2014-09-16 15:05:35 -0500

pachuc gravatar image

Hi, I had some doubts about how catkin_make works, and was hoping someone could explain it all to me. So, i have gone through all the basic ros tutorials, and have the begginer_tutorials package that they use. I am able to build the package and run it using ros run. This works with my devel/setup.bash sourced.

After this point I was trying to use catkin_make install to make the installation directory. I used the cmake flags to specify an install directory inside my catkin workspace and everything ran correctly. After this my workspace had the folders src, devel, build, and install. However, upon further inspection I noticed that the install folder did not contain any binary files, only the headers. I also noticed that if I use the setup.bash in the install folder none of my packages can be found; however, all my packages show up when I source /devel/setup.bash.

So, I was wondering why this is, and how it works. Why does install contain no binaries? Is it supposed to be this way? Are they just referenced by devel? Why doesn't my setup.bash in install work? If someone could provide some insight it would be greatly appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-09-16 20:15:11 -0500

kmhallen gravatar image

Did you put install rules in your CMakeLists.txt?

Look at some released packages like costmap_2d:
https://github.com/ros-planning/navig...

install( TARGETS
    costmap_2d_markers
    costmap_2d_cloud
    costmap_2d_node
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-09-16 15:05:35 -0500

Seen: 2,418 times

Last updated: Sep 16 '14