services-ros1-xbee_mav/ros_entrypoint.sh

15 lines
342 B
Bash
Raw Normal View History

2024-06-18 12:10:38 -03:00
#!/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 "$@"