void Listen(CallbackFunctionType callback) override
Register a callback to be executed each time a new measurement is received.
std::bitset< 16 > listening_mask
This file contains definitions of common data structures used in traffic manager. ...
void EnableForROS()
Enable this sensor for ROS2 publishing.
void ListenToGBuffer(uint32_t GBufferId, CallbackFunctionType callback)
Listen fr.
bool IsListening() const override
Return whether this Sensor instance is currently listening to the associated sensor in the simulator...
bool IsListeningGBuffer(uint32_t id) const
void DisableForROS()
Disable this sensor for ROS2 publishing.
bool IsEnabledForROS()
Return if the sensor is publishing for ROS2.
bool Destroy() override
Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed...
std::function< void(SharedPtr< sensor::SensorData >)> CallbackFunctionType
void StopGBuffer(uint32_t GBufferId)
Stop listening for a specific gbuffer stream.
void Stop() override
Stop listening for new measurements.