This commit is contained in:
Björn Ellensohn 2023-08-03 08:33:30 +02:00
parent 30a5bb0505
commit 9897093f01
2 changed files with 29 additions and 0 deletions

View File

@ -49,6 +49,8 @@ services:
- linux/amd64 - linux/amd64
volumes: volumes:
- .:/repo - .:/repo
command: >
/bin/bash
# Additional dependencies for GUI applications # Additional dependencies for GUI applications
guis: guis:

27
init_repo.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# Basic entrypoint for ROS / Colcon Docker containers
# Source ROS 2
source /opt/ros/${ROS_DISTRO}/setup.bash
echo "Sourced ROS 2 ${ROS_DISTRO}"
# Source the base workspace, if built
if [ -f ${UNDERLAY_WS}/install/setup.bash ]
then
source ${UNDERLAY_WS}/install/setup.bash
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix turtlebot3_gazebo)/share/turtlebot3_gazebo/models
echo "Sourced Bot Mini base workspace"
fi
# Source the overlay workspace, if built
if [ -f /overlay_ws/install/setup.bash ]
then
source /overlay_ws/install/setup.bash
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix tb3_worlds)/share/tb3_worlds/models
echo "Sourced Bot Mini overlay workspace"
fi
# Copy over files
cp -r /overlay_ws/src/* /repo/src/
wait