#include <SensorBase.h>
Public Types | |
using | Ptr = std::shared_ptr< SensorBase > |
Public Types inherited from mvsim::Simulable | |
using | Ptr = std::shared_ptr< Simulable > |
Static Public Member Functions | |
static SensorBase::Ptr | factory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node) |
Public Attributes | |
double | m_sensor_period |
Protected Member Functions | |
bool | parseSensorPublish (const rapidxml::xml_node< char > *node, const std::map< std::string, std::string > &varValues) |
void | reportNewObservation (const std::shared_ptr< mrpt::obs::CObservation > &obs, const TSimulContext &context) |
Protected Member Functions inherited from mvsim::VisualObject | |
virtual mrpt::poses::CPose3D | internalGuiGetVisualPose () |
virtual void | internalGuiUpdate (mrpt::opengl::COpenGLScene &scene, bool childrenOnly=false)=0 |
bool | parseVisual (const rapidxml::xml_node< char > *visual_node) |
Protected Attributes | |
double | m_sensor_last_timestamp |
VehicleBase & | m_vehicle |
The vehicle this sensor is attached to. More... | |
std::string | publishTopic_ |
Protected Attributes inherited from mvsim::VisualObject | |
std::shared_ptr< mrpt::opengl::CSetOfObjects > | m_glBoundingBox |
std::shared_ptr< mrpt::opengl::CSetOfObjects > | m_glCustomVisual |
int32_t | m_glCustomVisualId = -1 |
World * | m_world |
Protected Attributes inherited from mvsim::Simulable | |
std::string | m_name |
Definition at line 21 of file SensorBase.h.
using mvsim::SensorBase::Ptr = std::shared_ptr<SensorBase> |
Definition at line 24 of file SensorBase.h.
SensorBase::SensorBase | ( | VehicleBase & | vehicle | ) |
Ctor takes a ref to the vehicle to
Definition at line 44 of file SensorBase.cpp.
|
virtualdefault |
which the sensor is attached.
|
static |
Class factory: Creates a sensor from XML description of type "<sensor class='CLASS_NAME'>...</sensor>".
Definition at line 54 of file SensorBase.cpp.
|
pure virtual |
Implemented in mvsim::LaserScanner.
|
protected |
Definition at line 88 of file SensorBase.cpp.
|
overridevirtual |
(in seconds) (Default = 0.1)
Reimplemented from mvsim::Simulable.
Definition at line 132 of file SensorBase.cpp.
|
protected |
Definition at line 106 of file SensorBase.cpp.
|
protected |
The last sensor reading timestamp. See m_sensor_period
Definition at line 46 of file SensorBase.h.
double mvsim::SensorBase::m_sensor_period |
Generate one sensor reading every this period
Definition at line 37 of file SensorBase.h.
|
protected |
The vehicle this sensor is attached to.
Definition at line 43 of file SensorBase.h.
|
protected |
Definition at line 48 of file SensorBase.h.