Ask Your Question
0

why roscd changes to install directory in colcon build?

asked 2019-06-27 21:27:58 -0500

ming gravatar image

I used to use caktin_make to build my ROS pakcage, and after catkin_make, when i use command roscd package_name, and it changes to packge location under src directory. Recently i change catkin_make to colcon build, i found that roscd changes toinstall directory after colcon build, so i am confused. i have two question:

  1. why in colcon build, roscd changes to install directory? i think this mechanism brings a lot of inconvenience, for example, when i have some config file in package directory, i have to install all these config files to install directory, and may make mistake of the relative path of config file.
  2. how does roscd work? how does it found the package location?

i use kinetic ros

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-07-15 12:34:17 -0500

Dirk Thomas gravatar image

roscd changes to a location based on where the package.xml file of a ROS package was found.

After you built and installed a package the installed files do not have any reference to the source files. E.g. consider a Debian package which is basically an installed package. The source files are not even present in the Debian package. Similar after installing you could delete your source files.

This behavior is not specific to colcon but happens the same with any other tool when you actually install the packages and don't use the devel space (which is a custom ROS catkin thing).

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

2 followers

Stats

Asked: 2019-06-27 21:24:42 -0500

Seen: 22 times

Last updated: Jul 15