Skip to content

Commit

Permalink
vehicle name setting script
Browse files Browse the repository at this point in the history
  • Loading branch information
liampaull committed Apr 10, 2016
1 parent 25e0222 commit 787e413
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions set_vehicle_name.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/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"

0 comments on commit 787e413

Please sign in to comment.