https://github.com/duckietown/Software
Raw File
Tip revision: c607290f892633ab25d5e3cb69c0d07d2c5b4620 authored by Simon Muntwiler on 04 January 2018, 09:59:12 UTC
Debugging
Tip revision: c607290
set_vehicle_name.sh
#!/usr/bin/env bash
echo "Setting VEHICLE_NAME..."
if [ $# -gt 0 ]; then
	# provided a hostname, use it as ROS_MASTER_URI
	export VEHICLE_NAME=$1
else
	echo "No hostname provided. Using $HOSTNAME."
	export VEHICLE_NAME=$HOSTNAME
fi
echo "VEHICLE_NAME set to $VEHICLE_NAME"
back to top