Skip to content

Commit 69497cd

Browse files
committed
add trajectory download to setup
1 parent 4fce044 commit 69497cd

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ catkin build
5757

5858
The task is to control a simulated quadrotor to fly through obstacle dense environments.
5959
The environment contains both static and dynamic obstacles.
60-
You have to download the obstacle confiurations from [here]() and extract the file under /flightmare/flightpy/configs/vision.
61-
Afterwards, you can change specific which difficulty level and environment you want to load for testing your algorithm.
60+
You can specifiy which difficulty level and environment you want to load for testing your algorithm.
6261
The yaml configuration file is located in (/flightmare/flightpy/configs/vision/config.yaml.
6362

6463
```yaml

setup_py.bash

+14-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,25 @@ sudo apt install -y --no-install-recommends build-essential cmake libzmqpp-dev l
2020
echo "Ignoring unused Flightmare folders!"
2121
touch flightmare/flightros/CATKIN_IGNORE
2222

23-
echo "Downloading Trajectories..."
24-
wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy
23+
# echo "Downloading Trajectories..."
24+
# wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy/configs/vision
25+
26+
echo "Unziping Trajectories... (this might take a while)"
27+
unzip -o $project_path/flightmare/flightpy/configs/vision/trajectories.zip -d $project_path/flightmare/flightpy/configs/vision/ | awk 'BEGIN {ORS=" "} {if(NR%50==0)print "."}'
28+
29+
echo "Removing Trajectories zip file"
30+
rm $project_path/flightmare/flightpy/configs/vision/trajectories.zip
2531

2632
echo "Downloading Flightmare Unity standalone..."
2733
wget "https://download.ifi.uzh.ch/rpg/Flightmare/RPG_Flightmare.zip" --directory-prefix=$project_path/flightmare/flightrender
2834

29-
echo "Unziping Flightmare Unity Standalone"
30-
unzip -o $project_path/flightmare/flightrender/RPG_Flightmare.zip -d $project_path/flightmare/flightrender
35+
echo "Unziping Flightmare Unity Standalone... (this might take a while)"
36+
unzip -o $project_path/flightmare/flightrender/RPG_Flightmare.zip -d $project_path/flightmare/flightrender | awk 'BEGIN {ORS=" "} {if(NR%10==0)print "."}'
3137

38+
echo "Removing Flightmare Unity Standalone zip file"
39+
rm $project_path/flightmare/flightrender/RPG_Flightmare.zip
40+
41+
#
3242
echo "export FLIGHTMARE_PATH=$project_path/flightmare" >> ~/.bashrc
3343

3444
#

setup_ros.bash

+11-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,20 @@ sudo pip install uniplot
2121
echo "Ignoring unused Flightmare folders!"
2222
touch flightmare/flightros/CATKIN_IGNORE
2323

24+
# echo "Downloading Trajectories..."
25+
wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy/configs/vision
26+
27+
echo "Unziping Trajectories... (this might take a while)"
28+
unzip -o $project_path/flightmare/flightpy/configs/vision/trajectories.zip -d $project_path/flightmare/flightpy/configs/vision/ | awk 'BEGIN {ORS=" "} {if(NR%50==0)print "."}'
29+
30+
echo "Removing Trajectories zip file"
31+
rm $project_path/flightmare/flightpy/configs/vision/trajectories.zip
32+
2433
echo "Downloading Flightmare Unity standalone..."
2534
wget "https://download.ifi.uzh.ch/rpg/Flightmare/RPG_Flightmare.zip" --directory-prefix=$project_path/flightmare/flightrender
2635

27-
echo "Unziping Flightmare Unity Standalone"
28-
unzip -o $project_path/flightmare/flightrender/RPG_Flightmare.zip -d $project_path/flightmare/flightrender
36+
echo "Unziping Flightmare Unity Standalone... (this might take a while)"
37+
unzip -o $project_path/flightmare/flightrender/RPG_Flightmare.zip -d $project_path/flightmare/flightrender | awk 'BEGIN {ORS=" "} {if(NR%10==0)print "."}'
2938

3039
echo "Removing Flightmare Unity Standalone zip file"
3140
rm $project_path/flightmare/flightrender/RPG_Flightmare.zip

0 commit comments

Comments
 (0)