#include <SensorBase.h>
Public Types | |
using | Ptr = std::shared_ptr< SensorBase > |
Public Member Functions | |
virtual void | loadConfigFrom (const rapidxml::xml_node< char > *root)=0 |
SensorBase (VehicleBase &vehicle) | |
virtual | ~SensorBase () |
which the sensor is attached. More... | |
Public Member Functions inherited from mvsim::VisualObject | |
World * | getWorldObject () |
const World * | getWorldObject () const |
virtual void | gui_update (mrpt::opengl::COpenGLScene &scene)=0 |
VisualObject (World *parent) | |
virtual | ~VisualObject () |
Public Member Functions inherited from mvsim::Simulable | |
virtual void | apply_force (double fx, double fy, double local_ptx=0.0, double local_pty=0.0) |
virtual void | simul_post_timestep (const TSimulContext &context) |
virtual void | simul_pre_timestep (const TSimulContext &context) |
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) More... | |
Protected Attributes inherited from mvsim::VisualObject | |
World * | m_world |
Definition at line 20 of file SensorBase.h.
using mvsim::SensorBase::Ptr = std::shared_ptr<SensorBase> |
Definition at line 23 of file SensorBase.h.
SensorBase::SensorBase | ( | VehicleBase & | vehicle | ) |
Ctor takes a ref to the vehicle to
Definition at line 43 of file SensorBase.cpp.
|
virtual |
which the sensor is attached.
Definition at line 51 of file SensorBase.cpp.
|
static |
Class factory: Creates a sensor from XML description of type "<sensor class='CLASS_NAME'>...</sensor>".
Definition at line 52 of file SensorBase.cpp.
|
pure virtual |
Implemented in mvsim::LaserScanner.
|
protected |
The last sensor reading timestamp. See
Definition at line 42 of file SensorBase.h.
double mvsim::SensorBase::m_sensor_period |
Generate one sensor reading every this period
Definition at line 36 of file SensorBase.h.
|
protected |
(in seconds) (Default = 0.1)
The vehicle this sensor is attached to
Definition at line 40 of file SensorBase.h.