23 using Ptr = std::shared_ptr<SensorBase>;
51 #define DECLARES_REGISTER_SENSOR(CLASS_NAME) \ 52 DECLARES_REGISTER_CLASS2( \ 53 CLASS_NAME, SensorBase, VehicleBase&, const rapidxml::xml_node<char>*) 55 #define REGISTER_SENSOR(TEXTUAL_NAME, CLASS_NAME) \ 57 TClassFactory_sensors, classFactory_sensors, TEXTUAL_NAME, CLASS_NAME)
SensorBase(VehicleBase &vehicle)
VehicleBase & m_vehicle
(in seconds) (Default = 0.1)
std::shared_ptr< SensorBase > Ptr
virtual ~SensorBase()
which the sensor is attached.
virtual void loadConfigFrom(const rapidxml::xml_node< char > *root)=0
TClassFactory_sensors classFactory_sensors
ClassFactory< SensorBase, VehicleBase &, const rapidxml::xml_node< char > * > TClassFactory_sensors
static SensorBase * factory(VehicleBase &parent, const rapidxml::xml_node< char > *xml_node)
double m_sensor_last_timestamp