o3de / o3de-extras

Other
58 stars 60 forks source link

Dedicated thread(s) for ROS 2 subscription (at least as an option) #132

Open adamdbrw opened 1 year ago

adamdbrw commented 1 year ago

Is your feature request related to a problem? Please describe. ROS 2 supports several types of executors. This is relevant to a design choice which is an answer to the following question: "How do we process ROS 2 subscriptions and other executables (timers, service calls) in O3DE?" Currently, we only process them in the main thread. This makes some sense but also suggests not to make subscription callbacks heavy (save the callback data, process in worker thread of a sensor, for example).

The task would encompass the following:

adamdbrw commented 1 year ago

A code in R2FU project which might be relevant: https://github.com/RobotecAI/ros2-for-unity/blob/master/src/Ros2ForUnity/Scripts/ROS2UnityCore.cs