https://github.com/duckietown/Software
Revision d41496340e6a5b26b5aef26098bdbd0f01d54258 authored by Eric Lu on 13 July 2018, 15:16:51 UTC, committed by Eric Lu on 13 July 2018, 15:16:51 UTC
1 parent b473125
Raw File
Tip revision: d41496340e6a5b26b5aef26098bdbd0f01d54258 authored by Eric Lu on 13 July 2018, 15:16:51 UTC
add light tag during calibration
Tip revision: d414963
set_ros_master.sh
#!/usr/bin/env bash
echo "Setting ROS_MASTER_URI..."
if [ $# -gt 0 ]; then
	# provided a hostname, use it as ROS_MASTER_URI
	export ROS_MASTER_URI=http://$1.local:11311/
else
	[ -z "$HOSTNAME"        ] && { echo -e "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2;       }
	echo "No hostname provided. Using $HOSTNAME."
	export ROS_MASTER_URI=http://$HOSTNAME.local:11311/
fi
echo "ROS_MASTER_URI set to $ROS_MASTER_URI"
back to top