rov-autonomy/docker-entrypoint.sh

14 lines
258 B
Bash

#!/bin/bash
# Source ROS2 and workspace, then execute the provided command
set -e
# Source ROS2 base
source /opt/ros/jazzy/setup.bash
# Source the built workspace
source /ros2_ws/install/setup.bash
# Execute the command passed to the container
exec "$@"