Repository navigation
feat(sim): Project AirSim simulator backend (airstack up --sim projectairsim) - #437
Merged
Merged
Conversation
PX4's Tools/setup/ubuntu.sh pulls the newest pandas, which needs numpy >= 2
and cannot replace the Debian numpy 1.26 that the ROS Jazzy Python
packages are built against ("Cannot uninstall numpy"), so the image no
longer built.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tairsim) Project AirSim (IAMAI's UE5 successor to Microsoft AirSim) joins Isaac Sim, Microsoft AirSim (legacy) and Simple Sim. One project-airsim container runs a packaged UE5 environment (Blocks by default, others via --scene, fetched and SHA-256-verified on first launch), PX4 SITL v1.16.1 in lockstep, and the C++ pas_ros_bridge: a single process serving every robot on its own DDS domain (Project AirSim's topic socket is NNG PAIR0, one client). It publishes the same stereo/depth/ground-truth topics as the other simulators plus a 10 Hz GPU LiDAR sweep, so the default MIGHTY stack runs on it. - generate_scene.py: scene + airstack_meta.json from env knobs / fleets; surveyed spawn origins, Seattle home (PAS dipole magnetometer vs WMM), PX4 control link parked on 24540+i, --physics fast-physics|jsbsim, PROJECT_AIRSIM_LUMEN per-capture keys, chase camera. Empty compose knobs count as unset (an empty lidar-type silently selected the CPU raycast LiDAR). - entrypoint: scene -> bridge build -> Unreal -> scene load -> PX4 -> bridge; tmux session created right before Unreal so a first-launch download or build never reads as a crashed pane. - CLI/harness: --sim projectairsim (aliases pas, project-airsim), scenes, liveliness/sensors/takeoff/trajectory/waypoint support, contract tests. - Docs: simulator guide, CLI, scenes, env vars; VERSION 0.21.0-dev.19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Packaging any Unreal project with the Project AirSim plugin built from main (the route to Lumen until a release ships PR #181's capture keys), including the UE 5.8 FSharedString fix and Development-vs-Shipping CVar behaviour; a Lumen off/on comparison from a packaged supermarket scene with its camera-rate and VRAM cost; check indoor spawns with a camera frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewjong
force-pushed
the
feature/project-airsim
branch
from
December 2, 2026 22:53
c7a49e9 to
32fcbb9
Compare
andrewjong
marked this pull request as ready for review
December 2, 2026 22:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What features did you add and/or bugs did you address?
Which GitHub issue does this address?
No issue. This adds Project AirSim (IAMAI's UE5 successor to Microsoft AirSim) as a fourth simulator backend:
airstack up --sim projectairsim.Additional description if not fully described in the GitHub issue
Three commits: a small Microsoft AirSim build fix, the backend, and its docs. The branch was stacked on fix(interface): keep MAVROS topics at interface/mavros/<topic> on MAVROS 2.15+ (follow-up to #433) #436 (MAVROS 2.15+ fix) and is now rebased onto develop after fix(interface): keep MAVROS topics at interface/mavros/<topic> on MAVROS 2.15+ (follow-up to #433) #436 merged.
One
project-airsimcontainer runs:--scene, fetched and SHA-256-verified on first launch);pas_ros_bridge, a C++ bridge.The bridge publishes the same stereo, depth and ground-truth topics as the other simulators, plus a 10 Hz GPU LiDAR sweep. The default MIGHTY stack (
full_default) therefore runs on it unchanged. Compared with Isaac Sim it is ready to fly in 22 s instead of 105 s, uses 1/12 of the RAM, and its image is 2.8× smaller.Please add videos and images to demonstrate the feature.
full_defaultflying a 100 m street route on Project AirSim's LiDAR in Neighborhood: chase camera, with the onboard left stereo camera inset, at 3× speed. The clip is project_airsim_demo.mp4 (also embedded in the guide):Lumen off (left) and on (right) in a custom supermarket environment. Top is the onboard RGB camera, bottom is the chase camera:
supermarket_lumen_on_circle.mp4
How did you implement it?
simulation/project-airsim/):v1.1.0) and PX4 SITL v1.16.1.tmuxsession is created just before Unreal starts, so a first-launch download or build never looks like a crashed pane.config/generate_scene.pywrites the Project AirSim scene andairstack_meta.jsonfrom environment variables or a fleet file. Integration findings are encoded as defaults:--physics fast-physics|jsbsim.lidar-typesilently selected the CPU raycast LiDAR, which cut camera rates to 0.1 Hz in dense scenes.pas_ros_bridge(C++) is a single process that serves every robot, each on its own DDS domain. Project AirSim's topic socket (NNG PAIR0) accepts one client, so one bridge must serve all robots. It:--sim projectairsim(aliasespasandproject-airsim),--sceneand--physics;PROJECT_AIRSIM_CHASE_CAM=trueadds a gimbal-levelled third-person camera for demos.PROJECT_AIRSIM_LUMEN=true|falseforces Lumen GI and reflections per RGB capture. This only works in environments packaged with the plugin from Project AirSimmain; thev1.1.0releases are Shipping builds that ignore these settings. The guide documents the custom-environment route, including a UE 5.8 compile fix.ec0350edd): the Microsoft AirSim image failed to build because PX4's Python requirements pulled innumpy2.How do you run and use it?
Then fly as on any other simulator, for example with the GCS takeoff, navigate and land tasks. The guide is in
docs/simulation/project-airsim/index.md.Testing with PyTest
What pytests did you add to ensure the feature is reliable and robust? What metrics are used?
New tests:
tests/meta/test_project_airsim_scene_contract.py: 18 scene-generator contract tests, covering spawns, home position, ports, physics, LiDAR, Lumen, the chase camera, fleets, and empty compose values.test_launch_intent_contract.py(CLI--sim,--scene,--physicsand aliases) andtest_docker_layer_plan_contract.py.pas_ros_bridgegtests: frame conversion, LiDAR sweep merge, image, depth and camera-info encoding.Existing system tests now cover Project AirSim: liveliness, sensors (topic Hz plus LiDAR cloud sanity), takeoff/hover/land, fixed trajectories and waypoint flight. The metrics are the harness's own: topic rates, RTF, hover altitude and position error, takeoff and landing velocity RMSE, path RMSE, and odometry error against ground truth.
What's the exact command to run the pytests that test your feature?
What are the expected results of the tests?
Results on an RTX 5090 desktop:
pas_ros_bridgegtests (18 cases)Flight quality against Microsoft AirSim (legacy) on the same tests:
Compute cost: one robot,
full_default, headless, hovering:Lumen in the supermarket costs about 6 % of the onboard camera rate (16.0 → 15.1 Hz) and 0.4–0.9 GB of VRAM.
The system tests above ran locally with
pytest<9, because of the 9.2 collection crash that hotfix: pin pytest below 9.2 in the test requirements (0.20.10) #434 fixes. The build tests haven't run on the OSMO runner yet. I'll trigger them with/pyteston this PR.Known limitations, also listed in the guide:
Documentation
Was mkdocs.yml updated? (y/n)
y. Added the simulator guide (
docs/simulation/project-airsim/index.md) and thepas_ros_bridgeREADME. The CLI, testing and release-notes pages are updated too.mkdocs build --strictis clean.Do the docs have sufficient scope such that a newcomer can easily reproduce and use your feature?
Yes. The guide covers:
Is there sufficient visual media?
Yes: the demo video and poster, the Lumen A/B image, and a mermaid architecture diagram.
Versioning
Did you make sure to bump the version number in the
.envfile according to semantic versioning?Yes: 0.21.0-dev.18 → 0.21.0-dev.19.
🤖 Generated with Claude Code