std::function< void(SharedPtr< sensor::SensorData >)> CallbackFunctionType
bool IsEnabledForROS()
Return if the sensor is publishing for ROS2.
bool IsListeningGBuffer(uint32_t id) const
void Send(const rpc::CustomV2XBytes &data)
Send a binary message through this sensor.
void EnableForROS()
Enable this sensor for ROS2 publishing.
std::bitset< 16 > listening_mask
void ListenToGBuffer(uint32_t GBufferId, CallbackFunctionType callback)
Listen fr.
void Stop() override
Stop listening for new measurements.
void DisableForROS()
Disable this sensor for ROS2 publishing.
bool IsListening() const override
Return whether this Sensor instance is currently listening to the associated sensor in the simulator.
void Listen(CallbackFunctionType callback) override
Register a callback to be executed each time a new measurement is received.
void StopGBuffer(uint32_t GBufferId)
Stop listening for a specific gbuffer stream.
Fixed-size binary payload carried by the custom V2X sensor (sensor.other.v2x_custom).
This file contains definitions of common data structures used in traffic manager.