Ask Your Question
5

what is the use of --symlink-install in ROS2 colcon build?

asked 2021-02-15 01:10:06 -0500

Shiva_uchiha gravatar image

updated 2021-02-15 02:31:57 -0500

gvdhoorn gravatar image

I am having difficultly understanding the difference between a normal colcon build and colcon build --symlink-install.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
9

answered 2021-02-19 00:54:29 -0500

drtritm gravatar image

updated 2021-02-19 00:56:40 -0500

with symlink-install if you change code in your source code, it will take effect, you don't have to compile it again (ony with python, not c++)

edit flag offensive delete link more

Comments

very nice! Thank you very much!

sansevieria22 gravatar image sansevieria22  ( 2021-06-07 04:19:40 -0500 )edit

also for urdf I believe. PS @sansevieria22 please accept the answer as the correct answer, to remove it from the 'unanswered' list.

Joe28965 gravatar image Joe28965  ( 2021-06-11 03:28:32 -0500 )edit

but do you need to use . install/setup.bash anyway?

Andromeda gravatar image Andromeda  ( 2021-07-15 12:46:36 -0500 )edit

Yes, You still need to source setup.bash so that the packages / nodes in this local workspace would be available to use. You can add it to your .bashrc file: source ~/PATH_TO_WS/install/setup.bash

Mahmoud Kamel gravatar image Mahmoud Kamel  ( 2021-07-27 03:09:06 -0500 )edit
3

answered 2021-08-12 12:35:16 -0500

with symlink-install if you change code in your source code, it will take effect, you don't have to compile it again (ony with python, not c++)

There is also an additional very good advantage for c++. When you use IDE such as VScode the navigation funcionality works better. For example, if you navigate from the integrated terminal to some error in a header file, it brings you to the source code file (instead of the install folder file)

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: 2021-02-15 01:10:06 -0500

Seen: 4,259 times

Last updated: Aug 12 '21