what is the use of --symlink-install in ROS2 colcon build?
I am having difficultly understanding the difference between a normal colcon build
and colcon build --symlink-install
.
Hi base on this question, I would like to ask could I remove the
src
log
build
directories aftercolcon build --symlink-install
?The reason for doing that is I want to mount a volume (which is the ROS2 workspace) from Host into a docker container.
So, I have to:
COPY
the workspace (include packages),WORKDIR
to that path in Dockerfile andmkdir src
rosdep update && rosdep install --from-paths . --ignore-src --rosdistro $ROS_DISTRO
RUN source /opt/ros/"$ROS_DISTRO"/setup.bash && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
This will generate the
install
build
log
src
directories inside the container, which will not be used, as the host volume will mount and replace it.Should I delete it? or will it breaks the packages? If so, what is the best approach to mount a workspace from Host which already built in Dockerfile?