mirror of
https://github.com/bjoernellens1/cps_loki.git
synced 2024-11-26 17:10:57 +00:00
23 lines
568 B
Bash
23 lines
568 B
Bash
#!/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
|
|
echo "Sourced CPS Loki Base workspace"
|
|
fi
|
|
|
|
# Source the overlay workspace, if built
|
|
if [ -f /overlay_ws/install/setup.bash ]
|
|
then
|
|
source /overlay_ws/install/setup.bash
|
|
echo "Sourced CPS Loki Overlay workspace"
|
|
fi
|
|
|
|
# Execute the command passed into this entrypoint
|
|
exec "$@" |