setup.bash generated from colcon_bash vs ament_package

asked 2022-05-22 19:57:37 -0500

Sean Kim gravatar image

updated 2022-05-23 02:25:31 -0500

gvdhoorn gravatar image

Hi all,

I've noticed some differences between the setup.bash script in ROS2 installed via Debian packages and the setup.bash script for ROS2 that I built myself.

setup.bash from ROS2 installed via debian package

# copied from ament_package/template/prefix_level/setup.bash

AMENT_SHELL=bash
...

setup.bash from ROS2 I built

# generated from colcon_bash/shell/template/prefix_chain.bash.em

# This script extends the environment with the environment of other prefix
# paths which were sourced when this file was generated as well as all packages
# contained in this prefix path.

# function to source another script with conditional trace output
# first argument: the path of the script
_colcon_prefix_chain_bash_source_script() {
...

Where do these differences come from? And how do I make my setup.bash same as the setup.bash installed via the ROS2 deb package?

Thanks in adavance, Sean

edit retag flag offensive close merge delete