Skip to content

Commit

Permalink
add trajectory download to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-long committed Mar 15, 2022
1 parent 4fce044 commit 69497cd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ catkin build

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

```yaml
Expand Down
18 changes: 14 additions & 4 deletions setup_py.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,25 @@ sudo apt install -y --no-install-recommends build-essential cmake libzmqpp-dev l
echo "Ignoring unused Flightmare folders!"
touch flightmare/flightros/CATKIN_IGNORE

echo "Downloading Trajectories..."
wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy
# echo "Downloading Trajectories..."
# wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy/configs/vision

echo "Unziping Trajectories... (this might take a while)"
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 "."}'

echo "Removing Trajectories zip file"
rm $project_path/flightmare/flightpy/configs/vision/trajectories.zip

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

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

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

#
echo "export FLIGHTMARE_PATH=$project_path/flightmare" >> ~/.bashrc

#
Expand Down
13 changes: 11 additions & 2 deletions setup_ros.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,20 @@ sudo pip install uniplot
echo "Ignoring unused Flightmare folders!"
touch flightmare/flightros/CATKIN_IGNORE

# echo "Downloading Trajectories..."
wget "https://download.ifi.uzh.ch/rpg/Flightmare/trajectories.zip" --directory-prefix=$project_path/flightmare/flightpy/configs/vision

echo "Unziping Trajectories... (this might take a while)"
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 "."}'

echo "Removing Trajectories zip file"
rm $project_path/flightmare/flightpy/configs/vision/trajectories.zip

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

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

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

0 comments on commit 69497cd

Please sign in to comment.