You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install/setup.bash in overlay workspace does not source /opt/ros/<distro> from Debian packages #653
When working with the binary installation and a custom overlay workspace on top of it, sourcing the setup.bash of the overlay workspace does not recursively source the binary installation.
usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...
ros2 is an extensible command-line tool for ROS 2.
optional arguments:
-h, --help show this help message and exit
Commands:
daemon Various daemon related sub-commands
Call `ros2 <command> -h` for more detailed usage.
Actual behavior
ros2 is not found, meaning the binaries workspace was not recursively sourced when sourcing the workspace install setup.bash
bash: ros2: command not found
Additional information
When sourcing the binary workspace /opt/ros/crystal/setup.bash beforehand (manually) followed by sourcing the workspace it works fine.
Also when compiling everything from source, the chaining of workspaces works as expected. I believe something during the packaging process might prevent this functionality.
changed the title [-]install.sh in overlay workspace does not source binaries[/-][+]install/setup.bash in overlay workspace does not source binaries[/+]on Jan 29, 2019
The prefix level setup files generated by colcon in the overlay workspace only consider workspaces listed in the COLCON_PREFIX_PATH environment variable. Since the Debian packages under /opt/ros/... are not being built by colcon they don't set that environment variable - only AMENT_PREFIX_PATH.
That is also the reason why it works when the underlay workspace was built locally with colcon and only fails with the Debian packages.
I am not sure what the best long term solution for this is atm but as a short term fix I would suggest to add an environment hook to the ros_workspace package which sets COLCON_PREFIX_PATH to the same value as AMENT_PREFIX_PATH.
changed the title [-]install/setup.bash in overlay workspace does not source binaries[/-][+]install/setup.bash in overlay workspace does not source /opt/ros/<distro> from Debian packages[/+]on Feb 7, 2019
Activity
[-]install.sh in overlay workspace does not source binaries[/-][+]install/setup.bash in overlay workspace does not source binaries[/+]dirk-thomas commentedon Jan 29, 2019
The prefix level setup files generated by
colconin the overlay workspace only consider workspaces listed in theCOLCON_PREFIX_PATHenvironment variable. Since the Debian packages under/opt/ros/...are not being built bycolconthey don't set that environment variable - onlyAMENT_PREFIX_PATH.That is also the reason why it works when the underlay workspace was built locally with
colconand only fails with the Debian packages.I am not sure what the best long term solution for this is atm but as a short term fix I would suggest to add an environment hook to the ros_workspace package which sets
COLCON_PREFIX_PATHto the same value asAMENT_PREFIX_PATH.codebot commentedon Feb 4, 2019
Thanks for looking into this. I'm in the same situation as @Karsten1987 👍
[-]install/setup.bash in overlay workspace does not source binaries[/-][+]install/setup.bash in overlay workspace does not source /opt/ros/<distro> from Debian packages[/+]dirk-thomas commentedon Feb 7, 2019
Addressed by ros2/ros_workspace#11.