Revision 60153a319f5ddd443050b8d5a454e2f30158b622 authored by Andreas Aumiller on 26 December 2017, 17:38:41 UTC, committed by Andreas Aumiller on 26 December 2017, 17:38:41 UTC
1 parent 97c1438
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