2023-07-26 11:02:21 +00:00
|
|
|
#!/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
|
2023-07-31 09:01:11 +00:00
|
|
|
echo "Sourced CPS RMP 220 base workspace"
|
2023-07-26 11:02:21 +00:00
|
|
|
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
|
2023-07-31 09:01:11 +00:00
|
|
|
echo "Sourced CPS RMP 220 Overlay workspace"
|
2023-07-26 11:02:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Execute the command passed into this entrypoint
|
|
|
|
exec "$@"
|