Sensor visualisation doesn't work with publishing disabled #462
Labels
good-first-issue
Issue ready for a new contributor according to the help wanted guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/minor
Lowest priority. Work that may be scheduled
sig/simulation
Categorizes an issue or PR as relevant to SIG Simulation
Currently, disabling publishing completely disables data acquisition in the default implementations in ROS2SensorComponent. However, some sensors need this data to draw their visualisations (eg. lidar). This causes the sensors to draw them improperly, or not at all.
I suggest splitting FrequencyTick into 2 separate methods, "acquire data" and "publish". AcquireData would be called either every frame, in the case visualisation in enabled, or every time we need to publish, in the case it's not.
The text was updated successfully, but these errors were encountered: