-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
34 lines (29 loc) · 1.34 KB
/
setup.sh
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
34
#!/bin/bash
set -e
apt update
apt install -y git vim python3-pip locales curl tmux
cd ~
git clone https://github.com/carnegiemellonracing/PerceptionsLibrary22a.git
cd PerceptionsLibrary22a
pip install -r requirements24.txt
export PYTHONPATH="$(pwd):$PYTHONPATH"
echo "export PYTHONPATH=\"$(pwd):$PYTHONPATH\"" >> ~/.bashrc
locale-gen en_US en_US.UTF-8
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
apt install -y software-properties-common
add-apt-repository universe -y
apt update
debconf-set-selections <<< "tzdata tzdata/Areas select America"
debconf-set-selections <<< "tzdata tzdata/Zones/America select New_York"
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
apt update
apt install -y ros-humble-desktop
apt install -y ros-dev-tools ros-humble-tf-transformations libeigen3-dev libgsl-dev
cd ~
git clone --recurse-submodules https://github.com/carnegiemellonracing/driverless.git
cd driverless/driverless_ws
source /opt/ros/humble/setup.bash
colcon build --packages-up-to perceptions
colcon build --packages-up-to planning