Class GenericSensor
Defined in File sensor.hpp
Inheritance Relationships
Derived Types
protected as2::sensors::Camera
(Class Camera)protected as2::sensors::Gimbal
(Class Gimbal)protected as2::sensors::GroundTruth
(Class GroundTruth)protected as2::sensors::Sensor< T >
(Template Class Sensor)
Class Documentation
-
class GenericSensor
GenericSensor object to publish sensor data at a given frequency.
Subclassed by as2::sensors::Camera, as2::sensors::Gimbal, as2::sensors::GroundTruth, as2::sensors::Sensor< T >
Public Functions
-
explicit GenericSensor(as2::Node *node_ptr, const float pub_freq = -1.0f)
Construct a new GenericSensor object.
- Parameters:
node_ptr – Pointer to the node
pub_freq – Frequency to publish the data (-1 to publish every time updateData is called)
-
virtual ~GenericSensor()
Destroy the GenericSensor object.
-
void dataUpdated()
User must call this function when the data is updated.
-
virtual void publishData() = 0
User must implement the data publishing in this function.
-
explicit GenericSensor(as2::Node *node_ptr, const float pub_freq = -1.0f)