https://github.com/duckietown/Software
Raw File
Tip revision: 3b101c56f13dfba04450d7a8921a2d753bc98373 authored by Andrea F. Daniele on 15 November 2017, 02:09:49 UTC
Chicago street name signs added
Tip revision: 3b101c5
environment.sh
#!/bin/bash
#[ -z "$DUCKIETOWN_ROOT" ] && { echo "Need to set DUCKIETOWN_ROOT - configuration is invalid (!)";  }
[ -z "$HOSTNAME"        ] && { echo "Need to set HOSTNAME.";        }

# Do not compile Lisp messages
# XXX: not sure if this is the place to put this.
export ROS_LANG_DISABLE=gennodejs:geneus:genlisp

shell=`basename $SHELL`
echo "Activating ROS..."
source /opt/ros/kinetic/setup.$shell

echo "Setup ROS_HOSTNAME..."
export HOSTNAME=$HOSTNAME
export ROS_HOSTNAME=$HOSTNAME.local

echo "Setting up DUCKIETOWN_ROOT..."
export DUCKIETOWN_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

echo "Setting up PYTHONPATH..."
export PYTHONPATH=$DUCKIETOWN_ROOT/catkin_ws/src:$PYTHONPATH

# Cannot make machines before building
# echo "Building machines file..."
# make -C $DUCKIETOWN_ROOT machines

echo "Activating development environment..."
source $DUCKIETOWN_ROOT/catkin_ws/devel/setup.$shell

# TODO: check that the time is >= 2015


exec "$@" #Passes arguments. Need this for ROS remote launching to work.
back to top