Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
mvsim::SensorBase Class Referenceabstract

#include <SensorBase.h>

Inheritance diagram for mvsim::SensorBase:
Inheritance graph
[legend]

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
WorldgetWorldObject ()
 
const WorldgetWorldObject () 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 SensorBasefactory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node)
 

Public Attributes

double m_sensor_period
 

Protected Attributes

double m_sensor_last_timestamp
 
VehicleBasem_vehicle
 (in seconds) (Default = 0.1) More...
 
- Protected Attributes inherited from mvsim::VisualObject
Worldm_world
 

Detailed Description

Definition at line 20 of file SensorBase.h.

Member Typedef Documentation

using mvsim::SensorBase::Ptr = std::shared_ptr<SensorBase>

Definition at line 23 of file SensorBase.h.

Constructor & Destructor Documentation

SensorBase::SensorBase ( VehicleBase vehicle)

Ctor takes a ref to the vehicle to

Definition at line 43 of file SensorBase.cpp.

SensorBase::~SensorBase ( )
virtual

which the sensor is attached.

Definition at line 51 of file SensorBase.cpp.

Member Function Documentation

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 52 of file SensorBase.cpp.

virtual void mvsim::SensorBase::loadConfigFrom ( const rapidxml::xml_node< char > *  root)
pure virtual

Implemented in mvsim::LaserScanner.

Member Data Documentation

double mvsim::SensorBase::m_sensor_last_timestamp
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.

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.


The documentation for this class was generated from the following files:


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41