Refactor ROS2Sensor component data acquisition loops #295
Labels
feature/robotics
This item is related to robotics.
kind/enhancement
Enhancement to an existing feature.
priority/major
Major priority. Work that should be handled after all blocking and critical work is done.
sig/simulation
Categorizes an issue or PR as relevant to SIG Simulation
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Is your feature request related to a problem? Please describe.
This is an enhancement to the architecture of current data acquisition mechanism in ROS2Sensor component as introduced with #254.
Describe the solution you'd like
I would like to increase encapsulation and reduce the amount of code that the implementer of ROS2Sensor subclass needs to be aware of in order to succeed. This involves replacing inheritance with composition where needed and implementing NVI for the loops if applicable.
Additional context
The dual mechanism is here because one (onTick()) is simpler and refers to Engine updates, and the second one (physics events) provides a higher-frequency, less-jittery data streams important for sensors such as IMU and Odometry.
The text was updated successfully, but these errors were encountered: