Moved ROS2 sourcing to home dir and fixed 94-ros2-src

This commit is contained in:
Andreas Greiner
2023-01-03 09:08:17 +01:00
parent f5947587cc
commit 6d34bc97d7
3 changed files with 6 additions and 2 deletions
@@ -12,7 +12,7 @@ if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
echo "ros-humble-ros-base ros-dev-tools" >> /mod-repo-packages-to-install.list
echo "**** Automatically sourcing ROS2 ****"
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /etc/bash.bashrc
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
else
echo "**** ROS2 packages already installed, skipping ****"
fi