https://github.com/duckietown/Software
Raw File
Tip revision: 47d0d6a7d0472c724be54bae4371aac82758e5fd authored by Eric Lu on 20 February 2018, 10:51:07 UTC
add description to README and gui_node.py
Tip revision: 47d0d6a
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