How to install package from source as system package?
I am trying to set up a docker image which includes some custom source built ROS packages. Of course, the user of this image should not need to care where these custom ROS packages were built, and should be able to use them by simply running source /opt/ros/foxy/setup.bash
, i.e. they behave no different from system packages installed with apt install ros-foxy-...
. How should I run my build command (colcon build
) such that these custom built packages get installed in a path that can be found by sourcing /opt/ros/foxy/setup.bash
?
I've read this answer, however, that requires user to source multiple workspaces which is not ideal.