forked from Duckietown-Chile/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.sh
More file actions
executable file
·33 lines (24 loc) · 826 Bytes
/
environment.sh
File metadata and controls
executable file
·33 lines (24 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
echo "Activating ROS "$ROS_DISTRO"..."
source /opt/ros/$ROS_DISTRO/setup.bash
echo "...done."
echo
echo "Setting up PYTHONPATH."
echo "Note: We assume you cloned the Software repository in the folder 'duckietown' at home"
export PYTHONPATH=$HOME/duckietown/catkin_ws/src:$PYTHONPATH
echo
echo "Setup ROS_HOSTNAME."
export ROS_HOSTNAME=$HOSTNAME.local
export DUCKIETOWN_ROOT=$HOME/duckietown
echo
echo "Setup ROS_VARIABLES"
source $DUCKIETOWN_ROOT/ros_variables.sh
echo "Building machines file..."
make -C $DUCKIETOWN_ROOT
echo "...done"
echo
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.