Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Last active October 17, 2022 16:25
Show Gist options
  • Save marc-hanheide/ff29427dc8ba0aa34d9c to your computer and use it in GitHub Desktop.
Save marc-hanheide/ff29427dc8ba0aa34d9c to your computer and use it in GitHub Desktop.
robot-overlord
export ROS_HOSTNAME=`grep \`ifconfig | grep -A1 ppp | grep inet | cut -f2 -d:| cut -f1 -d" "\` /etc/hosts | tr -s " " | cut -f2 -d " "`
echo "ROS_HOSTNAME set to $ROS_HOSTNAME" >&2
export ROS_MASTER_URI=http://linda:11311/
echo "ROS_MASTER_URI set to $ROS_MASTER_URI" >&2
@t6jentedznhj
Copy link

wryhwshwr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment