https://github.com/duckietown/Software
Revision 22a7b2bbf2aefd4a64475f29efed847d004c2d4a authored by Tristan Swedish on 09 April 2016, 21:20:02 UTC, committed by Tristan Swedish on 09 April 2016, 21:20:02 UTC
1 parent e04a5f0
Raw File
Tip revision: 22a7b2bbf2aefd4a64475f29efed847d004c2d4a authored by Tristan Swedish on 09 April 2016, 21:20:02 UTC
moved stub test to scripts and import using timeit
Tip revision: 22a7b2b
environment.sh
#!/bin/bash

echo "Activating ROS..."
source /opt/ros/indigo/setup.bash
echo "...done."

echo "Setting up PYTHONPATH."
export PYTHONPATH=/home/ubuntu/duckietown/catkin_ws/src:$PYTHONPATH

echo "Setup ROS_HOSTNAME."
export ROS_HOSTNAME=$HOSTNAME.local
export DUCKIETOWN_ROOT=$HOME/duckietown

echo "Building machines file..."
make -C  $DUCKIETOWN_ROOT
echo "...done"
echo "Activating development."
source $DUCKIETOWN_ROOT/catkin_ws/devel/setup.bash

# TODO: check that the time is >= 2015

# TODO: run a python script that checks all libraries are installed

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