-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup_ros.bash
executable file
·32 lines (24 loc) · 949 Bytes
/
setup_ros.bash
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
#!/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
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 folders to store images and telemetry and metrics during flights..."
mkdir $project_path/envtest/ros/rollouts
mkdir $project_path/envtest/ros/stored_metrics
echo "Ignoring evfly_ros package for now!"
touch evfly_ros/CATKIN_IGNORE
echo "Done!"
echo "Have a save flight!"