forked from anish-bhattacharya/vitfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_ros.bash
More file actions
executable file
·28 lines (21 loc) · 831 Bytes
/
setup_ros.bash
File metadata and controls
executable file
·28 lines (21 loc) · 831 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
#!/bin/bash
if [[ ! -f "$(pwd)/setup_ros.bash" ]]
then
echo "please launch from the repository folder!"
exit
fi
project_path=$PWD
echo $project_path
echo "Using apt to install dependencies..."
echo "Will ask for sudo permissions:"
sudo apt update
sudo apt install -y --no-install-recommends build-essential cmake libzmqpp-dev libopencv-dev unzip python3-catkin-tools
sudo pip install uniplot
echo "Ignoring unused Flightmare folders!"
touch flightmare/flightros/CATKIN_IGNORE
echo "Setting the flightmare environment variable. Please add 'export FLIGHTMARE_PATH=$PWD/flightmare' to your .bashrc!"
export FLIGHTMARE_PATH=$project_path/flightmare
echo "Creating envtest/ros/train_set folder to store images and telemetry during flights..."
mkdir $project_path/envtest/ros/train_set
echo "Done!"
echo "Have a save flight!"