14 lines
229 B
Bash
14 lines
229 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Source ROS 2 Jazzy setup
|
|
source "/opt/ros/${ROS_DISTRO}/setup.bash"
|
|
|
|
# Source workspace overlay if built
|
|
if [ -f "/ros2_ws/install/setup.bash" ]; then
|
|
source "/ros2_ws/install/setup.bash"
|
|
fi
|
|
|
|
exec "$@"
|
|
|