16 lines
351 B
Bash
16 lines
351 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Source ROS2 and Piper workspace
|
|
source /opt/ros/humble/setup.bash
|
|
if [ -f "/root/piper_ws/install/setup.bash" ]; then
|
|
source /root/piper_ws/install/setup.bash
|
|
fi
|
|
|
|
# If a local workspace has an install space, source it too
|
|
if [ -f "/workspace/install/setup.bash" ]; then
|
|
source /workspace/install/setup.bash
|
|
fi
|
|
|
|
exec "$@"
|