#include <SensorBase.h>
Public Member Functions | |
virtual void | loadConfigFrom (const rapidxml::xml_node< char > *root)=0 |
SensorBase (VehicleBase &vehicle) | |
virtual | ~SensorBase () |
which the sensor is attached. | |
Static Public Member Functions | |
static SensorBase * | factory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node) |
Public Attributes | |
double | m_sensor_period |
Protected Attributes | |
double | m_sensor_last_timestamp |
VehicleBase & | m_vehicle |
(in seconds) (Default = 0.1) |
Definition at line 20 of file SensorBase.h.
SensorBase::SensorBase | ( | VehicleBase & | vehicle | ) |
Ctor takes a ref to the vehicle to
Definition at line 39 of file SensorBase.cpp.
SensorBase::~SensorBase | ( | ) | [virtual] |
which the sensor is attached.
Definition at line 47 of file SensorBase.cpp.
SensorBase * SensorBase::factory | ( | VehicleBase & | parent, |
const rapidxml::xml_node< char > * | xml_node | ||
) | [static] |
Class factory: Creates a sensor from XML description of type "<sensor class='CLASS_NAME'>...</sensor>".
Definition at line 48 of file SensorBase.cpp.
virtual void mvsim::SensorBase::loadConfigFrom | ( | const rapidxml::xml_node< char > * | root | ) | [pure virtual] |
Implemented in mvsim::LaserScanner.
double mvsim::SensorBase::m_sensor_last_timestamp [protected] |
The last sensor reading timestamp. See
Definition at line 42 of file SensorBase.h.
Generate one sensor reading every this period
Definition at line 36 of file SensorBase.h.
VehicleBase& mvsim::SensorBase::m_vehicle [protected] |
(in seconds) (Default = 0.1)
The vehicle this sensor is attached to
Definition at line 40 of file SensorBase.h.