Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.
Package Dependencies
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged pas_ros_bridge at Robotics Stack Exchange
Package Summary
| Version | 0.1.0 |
| License | BSD-3-Clause-Clear |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/castacks/airstack.git |
| VCS Type | git |
| VCS Version | develop |
| Last Updated | 2026-12-03 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- AirLab CMU
Authors
pas_ros_bridge
C++ ROS 2 bridge between Project AirSim and AirStack, plus the scene loader. It runs inside the project-airsim simulator container. For the user-facing guide, see Project AirSim.
Overview
| Executable | Role |
|---|---|
pas_scene_loader |
Loads the generated scene into the running Project AirSim server, logs the server build, and exits (0 = loaded). |
pas_ros_bridge |
Long-running bridge for every robot in the scene: stereo RGB, depth, camera_info, LiDAR sweeps, ground-truth odometry and /clock, each on its robot’s ROS_DOMAIN_ID. |
They are separate so the bridge can restart without reloading the scene. A reload rewinds Project AirSim’s steppable clock and forces a PX4 restart.
Architecture
flowchart LR
PAS["Project AirSim<br/>topics :8989 (one client)<br/>services :8990"]
subgraph B["pas_ros_bridge (one process)"]
C["pasc::Client<br/>(the single topic client)"]
D["decode.cpp<br/>msgpack → ROS messages"]
K["kinematics poll<br/>(service, 50 Hz/robot)"]
X1["rclcpp::Context<br/>domain 1"]
XN["rclcpp::Context<br/>domain N"]
end
PAS -- topic callbacks --> C --> D
PAS -- GetGroundTruthKinematics --> K
D --> X1 & XN
K --> X1 & XN
Why one process. Project AirSim’s topic socket is an NNG PAIR0 socket that admits exactly one client, so per-robot bridge processes are impossible. The bridge creates one rclcpp::Context per robot, initialised with that robot’s domain id, so robot i sees only its own sensors and its own copy of /clock.
Topic map. The bridge holds no topic names. simulation/project-airsim/config/generate_scene.py writes airstack_meta.json with each robot’s streams, and the bridge publishes exactly those. Each stream gives a Project AirSim topic, a ROS topic, a frame id and a kind (image / depth / lidar). tests/meta/test_project_airsim_scene_contract.py checks the map against the topics the system tests probe.
Hot path. Payloads are unpacked with msgpack referencing the received buffer, so image bytes are copied once, straight into the ROS message, which is published as a unique_ptr. Depth is converted from little-endian binary16 to 32FC1 in one pass, with no-return mapped to NaN. LiDAR points are written straight into the PointCloud2 buffer, converting FRD to FLU. Streams with no ROS subscriber are not decoded.
LiDAR sweeps. The GPU LiDAR emits a full 360° ring every render frame and republishes unchanged rings. SweepAccumulator buckets rings into fixed 1/rate time slots, drops exact repeats, and emits one merged sweep per slot. The output rate is exactly the configured LiDAR rate, at the cost of one ring of latency.
Frames. Project AirSim works in NED (world) and FRD (body). Ground truth is converted to ENU / FLU with the same math as the legacy Microsoft AirSim bridge, pinned by test/test_conversions.cpp, and is reported relative to each robot’s spawn point.
Interfaces
Published on robot i’s domain (names come from airstack_meta.json):
| Topic | Type | QoS |
|---|---|---|
/robot_i/sensors/front_stereo/{left,right}/image_rect |
sensor_msgs/Image (bgr8) |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/camera_info |
sensor_msgs/CameraInfo |
reliable, keep-last 2 |
/robot_i/sensors/front_stereo/{left,right}/depth_ground_truth |
sensor_msgs/Image (32FC1) |
reliable, keep-last 2 |
/robot_i/sensors/ouster/point_cloud_raw |
sensor_msgs/PointCloud2 |
reliable, keep-last 2 |
/robot_i/sensors/chase/image (optional) |
sensor_msgs/Image |
reliable, keep-last 2 |
/robot_i/odom_ground_truth |
nav_msgs/Odometry |
reliable, keep-last 10 |
/robot_i/pas_bridge/diagnostics |
diagnostic_msgs/DiagnosticArray |
keep-last 1 |
/clock |
rosgraph_msgs/Clock |
reliable, keep-last 10 |
Reliable publishers match both reliable and best-effort subscribers.
Configuration
pas_ros_bridge takes plain command-line flags; the entrypoint passes them:
| Flag | Default | Description |
|---|---|---|
--meta FILE |
(required) |
airstack_meta.json from generate_scene.py
|
--host |
127.0.0.1 |
Project AirSim server |
--port-topics / --port-services
|
8989 / 8990
|
Server ports |
--clock-rate |
100 |
Maximum /clock rate (Hz); the sim steps every 3 ms |
--gt-rate |
50 |
Ground-truth poll rate per robot (Hz) |
--lidar-frame |
sensor |
Frame of the incoming point cloud: sensor (the GPU LiDAR’s) or world (transform with the message’s sensor pose) |
--stats-period |
10 |
Seconds between rate logs and diagnostics |
--connect-timeout |
120 |
Seconds to wait for the server and its topics |
pas_scene_loader --scene FILE [--host] [--port-topics] [--port-services] [--retries].
If the clock goes backwards (the scene was reloaded), the bridge exits with code 3 instead of publishing a rewound /clock.
Dependencies
-
rclcpp,sensor_msgs,nav_msgs,rosgraph_msgs,diagnostic_msgs - The Project AirSim C++ client (
find_package(ProjectAirSimCppClient), imported targetProjectAirSim::Client). Theproject-airsimimage compiles it from a pinned sparse clone into/opt/projectairsim, and its headers also provide msgpack and nlohmann-json. SetPROJECT_AIRSIM_CLIENT_ROOTto build against a different install.
Build and test
Inside the project-airsim container:
cd /root/ros_ws && colcon build --packages-select pas_ros_bridge
colcon test --packages-select pas_ros_bridge && colcon test-result --verbose
test/test_conversions.cpp covers frame conversion pinned to the legacy fixtures, fp16 depth, and camera_info including the stereo baseline. test/test_decode.cpp covers the msgpack decoders on synthetic payloads in the server’s layouts, ground truth, and sweep accumulation. System-level checks run with airstack test -m "liveliness or sensors" --sim projectairsim.