services-ros1-xbee_mav/ros_entrypoint.sh

15 lines
342 B
Bash
Executable File

#!/bin/bash
set -e
# setup ros environment
source "/opt/ros/$ROS_DISTRO/setup.bash" --
if [ -e "$CATKIN_SETUP_FILE" ]; then
# Source the setup.bash file
source "$CATKIN_SETUP_FILE" --
echo "Sourced $CATKIN_SETUP_FILE"
else
echo "Warning: $CATKIN_SETUP_FILE does not exist. Not running using a catkin workspace"
fi
exec stdbuf -o L "$@"