Skip to content

Instantly share code, notes, and snippets.

@kyuhyong
kyuhyong / ros-ipset.sh
Last active November 26, 2021 17:39
ROS automatic IP Settings
#! /bin/bash
# This script will export MASTER URI and HOST IP for ROS
# Input argument 1: MASTER IP
# Input argument 2: PORT number
# HOST IP is automatically setup from ifconfig
# If MASTER IP is not supplied HOST_IP will be assigned
MASTER_IP_SUPPLIED=true
IP_MASTER='localhost'
ROS_PORT='11311'