Skip to content

Commit e7152ad

Browse files
authored
deploy options
1 parent eb3f826 commit e7152ad

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,11 @@ cd aerial-autonomy-stack/scripts/
217217
```sh
218218
# 1. Start AAS
219219
cd aerial-autonomy-stack/scripts
220-
AUTOPILOT=px4 NUM_QUADS=1 NUM_VTOLS=1 WORLD=swiss_town RTF=3.0 ./sim_run.sh # Start a simulation, check the script for more options (note: ArduPilot SITL checks take ~40s before being ready to arm)
220+
AUTOPILOT=px4 NUM_QUADS=1 NUM_VTOLS=1 WORLD=swiss_town HEADLESS=false RTF=3.0 ./sim_run.sh # Start a simulation, check the script for more options (note: ArduPilot SITL checks take ~40s before being ready to arm)
221221

222-
# Options:
222+
# Simulation options:
223223
# AUTOPILOT=px4, ardupilot
224-
# CAMERA/LIDAR/HEADLESS=true, false
224+
# HEADLESS/CAMERA/LIDAR=true, false
225225
# NUM_QUADS/NUM_VTOLS=0, 1, ...
226226
# WORLD=impalpable_greyness, apple_orchard, shibuya_crossing, swiss_town
227227
# RTF=1.0, 2.0, ... (real-time-factor, use 0.0 for "as fast as possible)
@@ -395,8 +395,7 @@ python3 gym_run.py --mode vectorenv-speedup # Vectorized speed-up test
395395
```
396396
397397
<!--
398-
399-
TODO:
398+
WIP:
400399
python3 gym_run.py --mode learn # Train and test a PPO agent
401400
402401
Debug with:
@@ -405,7 +404,6 @@ docker exec -it aircraft-container-inst0_1 tmux attach
405404
406405
Clean up with:
407406
docker stop $(docker ps -q) && docker container prune -f && docker network prune -f
408-
409407
-->
410408
411409
## 4. Jetson Deployment
@@ -416,7 +414,7 @@ sudo apt update && sudo apt install -y git git-lfs
416414
git clone https://github.com/JacopoPan/aerial-autonomy-stack.git
417415
cd aerial-autonomy-stack/scripts/
418416
419-
./deploy_build.sh # Build for arm64, on Jetson Orin NX the first build takes ~1h, mostly to build onnxruntime-gpu with TensorRT support from source
417+
./deploy_build.sh # Build for arm64, on Jetson Orin NX the first build takes ~50', including building onnxruntime-gpu with TensorRT support from source
420418
```
421419
422420
<div align="right">
@@ -434,8 +432,14 @@ Start the `aircraft-image` on Jetson Orin NX:
434432
435433
```sh
436434
cd aerial-autonomy-stack/scripts/
437-
DRONE_TYPE=quad AUTOPILOT=px4 DRONE_ID=1 CAMERA=true LIDAR=false HEADLESS=true ./deploy_run.sh
435+
AUTOPILOT=px4 DRONE_ID=1 CAMERA=true LIDAR=false HEADLESS=true ./deploy_run.sh
438436
# The 1st run of `./deploy_run.sh` requires ~10' to build the FP16 TensorRT cache
437+
438+
# Deployment options:
439+
# DRONE_TYPE=quad, vtol
440+
# AUTOPILOT=px4, ardupilot
441+
# DRONE_ID=1, 2, ... (ROS_DOMAIN_ID of the drone, matching the MAV_SYS_ID/SYSID_THISMAV of the autpilot)
442+
# HEADLESS/CAMERA/LIDAR=true, false
439443
```
440444
441445
<details>
@@ -478,7 +482,7 @@ Finally, start QGC and the Zenoh bridge:
478482
HITL=true GROUND=true HEADLESS=false NUM_QUADS=2 SIM_SUBNET=172.30 AIR_SUBNET=10.223 ./deploy_run.sh
479483
```
480484
481-
> **Note:** running only the first 3 commands with `GND_CONTAINER=false` puts the Zenoh bridge to the `SIM_SUBNET`, removing the need for the optional `AIR_SUBNET` and the computer with IP ending in `90.101`
485+
> **Note:** running only the first 3 commands with `GND_CONTAINER=false` puts the Zenoh bridge on the `SIM_SUBNET`, removing the need for the optional `AIR_SUBNET` and the computer with IP ending in `90.101`
482486
483487
Once done, detach Tmux (and remove the containers) with `Ctrl + b`, then `d`
484488

scripts/deploy_run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ GROUND_ID="${GROUND_ID:-101}" # Last byte of the simulation container IP (defaul
1717
DRONE_TYPE="${DRONE_TYPE:-quad}" # Options: quad (default), vtol
1818
DRONE_ID="${DRONE_ID:-1}" # Id of aircraft (default = 1)
1919
#
20-
NUM_QUADS="${NUM_QUADS:-1}" # Number of quadcopters (default = 1)
21-
NUM_VTOLS="${NUM_VTOLS:-0}" # Number of VTOLs (default = 0)
22-
#
2320
DEV="${DEV:false}" # Options: true, false (default)
2421
HITL="${HITL:-false}" # Options: true, false (default)
2522
GND_CONTAINER="${GND_CONTAINER:-true}" # Options: true (default), false
23+
# Only used by ground-container
24+
NUM_QUADS="${NUM_QUADS:-1}" # Number of quadcopters (default = 1)
25+
NUM_VTOLS="${NUM_VTOLS:-0}" # Number of VTOLs (default = 0)
2626

2727
GROUND="${GROUND:-false}" # Options: true, false (default)
2828
if [[ "$GROUND" == "true" ]]; then

0 commit comments

Comments
 (0)