#include <mrpt/config/CConfigFileBase.h>
#include <mrpt/obs/CObservation.h>
#include <map>
#include <mutex>
Go to the source code of this file.
|
| mrpt |
| This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
|
|
| mrpt::hwdrivers |
| Contains classes for various device interfaces.
|
|
◆ DEFINE_GENERIC_SENSOR
#define DEFINE_GENERIC_SENSOR |
( |
|
class_name | ) |
|
Value: protected: \
static mrpt::hwdrivers::CGenericSensor::CLASSINIT_GENERIC_SENSOR \
_init_##class_name; \
\
public: \
static void doRegister() \
}
This declaration must be inserted in all CGenericSensor classes definition, within the class declaration.
Definition at line 314 of file CGenericSensor.h.
◆ IMPLEMENTS_GENERIC_SENSOR
#define IMPLEMENTS_GENERIC_SENSOR |
( |
|
class_name, |
|
|
|
NameSpace |
|
) |
| |
Value:
{ \
return static_cast<hwdrivers::CGenericSensor*>( \
new NameSpace::class_name); \
} \
mrpt::hwdrivers::TSensorClassId NameSpace::class_name::class##class_name = \
{#class_name, NameSpace::class_name::CreateObject}; \
NameSpace::class_name::GetRuntimeClass() const \
{ \
}
This must be inserted in all CGenericSensor classes implementation files:
Definition at line 330 of file CGenericSensor.h.
◆ SENSOR_CLASS_ID
#define SENSOR_CLASS_ID |
( |
|
class_name | ) |
|
Value:
&mrpt::hwdrivers::class_name::class##class_name)
Definition at line 304 of file CGenericSensor.h.
◆ SENSOR_IS_CLASS
#define SENSOR_IS_CLASS |
( |
|
ptrObj, |
|
|
|
class_name |
|
) |
| (ptrObj->GetRuntimeClass() == SENSOR_CLASS_ID(class_name)) |