-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathinstall_dev.bash
More file actions
executable file
·62 lines (50 loc) · 2.03 KB
/
install_dev.bash
File metadata and controls
executable file
·62 lines (50 loc) · 2.03 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# make all the directories
mkdir -p ~/osu-uwrt/development
cd ~/osu-uwrt/development
echo "Starting ROSDEP"
sudo rosdep init
rosdep update
echo "Importing repositories"
vcs import < ~/osu-uwrt/riptide_setup/setup_scripts/dev_install/riptide.repos . --recursive
vcs pull
if [ -d ~/osu-uwrt/development/titan_firmware ]; then
echo "Detected firmware repository, inserting COLCON_IGNORE"
touch ~/osu-uwrt/development/titan_firmware/COLCON_IGNORE
else
echo "Firmware repo not found after checkout. Make sure the setup script is up to date"
fi
# install child dependencies and build dependencies
echo "Building dependencies"
cd ~/osu-uwrt/development
# test for subfolders named zed and disable if nvidia-smi doesnt run
# this can also work for other packages and platforms
if ! [ -x "$(command -v nvidia-smi)" ]; then
echo "Nvidia driver not found. Disabling zed packages"
python3 ~/osu-uwrt/riptide_setup/setup_scripts/dev_install/package_disable.py zed
python3 ~/osu-uwrt/riptide_setup/setup_scripts/dev_install/package_disable.py tensor_detector
fi
cd ~/osu-uwrt/development/dependencies
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y -r
source /opt/ros/$ROS_DISTRO/setup.bash
colcon build
if [ $? -ne 0 ]; then
echo "Development dependencies build failed! The script will continue but may have errors going further"
sleep 10
fi
# add pico compilier tools
echo "Downloading Pico utils"
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
# build development software (this should pass)
echo "Building riptide_software"
cd ~/osu-uwrt/development/software
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y -r
sudo apt install -y libglfw3-dev #for the sim
pip install transforms3d #for mapping
source /opt/ros/$ROS_DISTRO/setup.bash
source ~/osu-uwrt/development/dependencies/install/setup.bash
colcon build
if [ $? -ne 0 ]; then
echo "Development software build failed! The script will continue but may have errors going further"
sleep 10
fi