rosaria/Legacy/entrypoint.sh

24 lines
672 B
Bash
Raw Normal View History

2021-12-16 15:07:59 +01:00
#!/usr/bin/env bash
export LD_LIBRARY_PATH=/usr/local/Aria/lib:$LD_LIBRARY_PATH
source /opt/ros/hydro/setup.bash
2023-02-27 14:55:20 +01:00
source /ws_linux/devel/setup.bash
2021-12-16 15:07:59 +01:00
[[ -v PIONIER_ID ]] || {
echo
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!';
echo 'Please set the $PIONIER_ID environment variable.';
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!';
exit -1;
}
2023-02-27 14:55:20 +01:00
# [[ -v ROS_NAMESPACE ]] || export ROS_NAMESPACE=/PIONIER$PIONIER_ID
2021-12-16 15:07:59 +01:00
echo
echo
echo "ENVIRONMENT CONFIG"
env | grep -e ROS_MASTER_URI -e ARIA_PORT -e PIONIER_ID -e ROS_NAMESPACE | sed 's/^/ - /'
echo
echo
set -x
2023-02-27 14:55:20 +01:00
roslaunch rosaria_bringup rosaria_bringup.launch pionier_id:=${PIONIER_ID}