Skip to content

Image fps improvement - #200

Merged
jonyMarino merged 1 commit into
mainfrom
feature/image-throughput-step-api
Sep 1, 2026
Merged

Image fps improvement #200
jonyMarino merged 1 commit into
mainfrom
feature/image-throughput-step-api

Conversation

@jonyMarino

@jonyMarino jonyMarino commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and fixes across both the Python client and the C++ core simulation components, focusing on more robust connection management, improved serialization performance, and enhanced topic handling. The changes include the addition of a service-only connection mode for the Python client, optimizations to image message serialization in C++, and more reliable and thread-safe topic connection tracking in the core simulator.

Python client enhancements:

  • Added a connect_services method to ProjectAirSimClient to allow connecting only to the service socket, which is useful when another process owns the topic socket (e.g., for ROS bridge integration). (client/python/projectairsim/src/projectairsim/client.py)
  • Improved socket timeout handling and minor code simplifications, such as direct returns and thread-safe disconnect logic. (client/python/projectairsim/src/projectairsim/client.py) [1] [2] [3] [4]
  • Added StaticSensorActor to the public API. (client/python/projectairsim/src/projectairsim/__init__.py)

C++ core simulation improvements:

  • Optimized ImageMessage serialization by replacing std::stringstream with a custom buffer, reducing allocations and improving efficiency. (core_sim/src/message/image_message.cpp) [1] [2]
  • Refactored and improved topic frame packing, introducing utility writers for efficient and safe message construction. (core_sim/src/topic_manager.cpp)
  • Added robust, thread-safe tracking of active topic pipes to ensure correct handling of client connect/disconnect events and subscription resets only when all pipes are closed. (core_sim/src/topic_manager.cpp) [1] [2] [3] [4] [5] [6]
  • Minor improvements to logging, error handling, and code style in topic subscription and unsubscription logic. (core_sim/src/topic_manager.cpp) [1] [2] [3]

Build and dependency cleanups:

  • Fixed include order and removed redundant includes in C++ files and CMake configuration. (core_sim/src/CMakeLists.txt, client/cpp/ProjectAirsimClientLib/src/Topics.h, core_sim/src/message/image_message.cpp, core_sim/src/sensors/camera.cpp) [1] [2] [3] [4]

ONNX model post-processing:

  • Simplified ONNX execution provider selection logic in the camera sensor code. (core_sim/src/sensors/camera.cpp)

These changes collectively improve the reliability, efficiency, and extensibility of both the client and core simulation components.

* benchmark code + bucket 0

* bucket 1

* bucket 2

* bucket 3

* bucket 4

* bucket 5

* bucket 6

* Measurements

* bucket 8: bgr packing instead of bgra

* Bucket 9: shared-memory ring buffer

* Bucket 10 — Instrumentation and Development Baseline

* save measurements csvs

* WIP DDS qos modification

* DELETE ME: added artifact test dir just in case, to track

* Measure keep_last=5 with dds 256MiB

* Revert bgr packing optimization. It didn't improve

* Remove shared-memory ring code

* Remove image FPS benchmark instrumentation and artifacts

* CPU improvements + step() API (#162)

* add CPU usage profiling tests and multi-drone lift-land test cases

* refactor: optimize CPU usage by eliminating non-blocking recv spin and implementing recv timeout

* Add step API

* Comment GetImages() based cpu tests

* Remove unnecessary files

* Rename 'drones' to 'robots'

* Delete UE_ROOT secret usage in self-hosted workflow

* Fix build for ue5.2

* Add suport for jsbsim for variable ue version (5.2 and 5.7)

---------

Co-authored-by: Zaffer <51871197+Zaffer@users.noreply.github.com>

* WIP rebase fixing

* remove binary non-used custom image methods

* Add ros2 custom DDS profile documentation

* fix build rover test

* Add missing fastdds profile file

---------

Co-authored-by: UE <unrealempowerment@gmail.com>
Co-authored-by: Zaffer <51871197+Zaffer@users.noreply.github.com>
@jonyMarino
jonyMarino merged commit 2bdeca8 into main Sep 1, 2026
4 checks passed
@jonyMarino jonyMarino changed the title [PUBLIC - ON HOLD] Image fps improvement Image fps improvement Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants