https://github.com/duckietown/Software
Raw File
Tip revision: 34de55998f385f6dd165a82e8acdd4d72f2e7809 authored by Robert Katzschmann on 19 April 2016, 16:30:44 UTC
Merge branch 'pa-onspotturning' of github.com:duckietown/Software into pa-onspotturning
Tip revision: 34de559
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