Revision f6aecabd67c82f3c6b24a33bfa0b6f0cfdf0581c authored by Andrea Censi on 20 April 2016, 20:48:33 UTC, committed by Andrea Censi on 20 April 2016, 20:48:33 UTC
1 parent 8e347bd
Raw File
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
	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