Revision c13dced9f2ca1d048f94147f2f6dd26ae5c66490 authored by Sandro Meier on 19 January 2018, 10:32:44 UTC, committed by Sandro Meier on 19 January 2018, 10:32:44 UTC
2 parent s 3b15c95 + 432966d
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