https://github.com/duckietown/Software
Raw File
Tip revision: 7b10dc4c7df3bc16a5f8a2bcb3c7fd42aeaa70ab authored by Sandro Meier on 15 January 2018, 19:45:12 UTC
Merge branch 'devel-fleet-planning' of github.com:duckietown/Software into devel-fleet-planning
Tip revision: 7b10dc4
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