Skip to content

Commit b528d4a

Browse files
committed
Change Ascent SITL URL download to be from AirLab Storage. This way it's password protected
1 parent 83b5064 commit b528d4a

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
#!/bin/bash
22

3-
echo "Installing gdown package"
3+
echo "Downloading the Ascent Aerosystems SITL package from AirLab Storage..."
44

5-
pip install gdown
5+
ANDREWID=""
6+
# Prompt for ANDREWID
7+
read -p "Please enter your Andrew ID: " ANDREWID
68

7-
echo "Downloading the SITL package from Google Drive"
8-
9-
gdown https://drive.google.com/uc\?id\=1UxgezaTrHe4WJ28zsVeRhv1VYfOU5VK8
9+
# Check if ANDREWID is provided
10+
if [ -z "$ANDREWID" ]; then
11+
log_error "Error: Andrew ID cannot be empty"
12+
return 1
13+
fi
1014

15+
# Set ANDREWID as environment variable
16+
rsync --progress -avz ${ANDREWID}@airlab-storage.andrew.cmu.edu:/volume1/airstack/ascent_sitl/AscentAeroSystemsSITLPackage.zip /tmp/
1117

1218
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
1319

1420
UNZIP_DIR=$SCRIPT_DIR/../sitl_integration
1521

1622
echo "Unzipping the SITL package to $(readlink -f $UNZIP_DIR)"
1723

18-
unzip AscentAeroSystemsSITLPackage.zip -d $UNZIP_DIR
24+
unzip /tmp/AscentAeroSystemsSITLPackage.zip -d $UNZIP_DIR
1925

20-
rm AscentAeroSystemsSITLPackage.zip
26+
rm /tmp/AscentAeroSystemsSITLPackage.zip

0 commit comments

Comments
 (0)