Revision 77829e05ddcb3e00c9cfcf47695865887b155434 authored by Wyatt Ubellacker on 18 March 2016, 13:13:25 UTC, committed by Wyatt Ubellacker on 18 March 2016, 13:13:25 UTC
2 parent s 436ded4 + ad1e373
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