Gazebo system plugin which allows using custom sensors.
More...
#include <CustomSensorPreloader.h>
|
| virtual void | DeferredPreloadSensors () |
| | We need to register the sensors a little bit later, so we defer the calls to a separate thread. More...
|
| |
| virtual void | ProcessCustomSensor (const std::string &_type, const std::string &_classname, const std::string &_fullname) |
| | Store one custom sensor registration function for deferred loading. More...
|
| |
Gazebo system plugin which allows using custom sensors.
Definition at line 17 of file CustomSensorPreloader.h.
◆ registerFuncType
| typedef void(* gazebo::CustomSensorPreloader::registerFuncType) () |
|
protected |
Type of the RegisterCustomSensor function generated by GZ_REGISTER_STATIC_SENSOR.
Definition at line 32 of file CustomSensorPreloader.h.
◆ registerTuple
◆ CustomSensorPreloader()
| gazebo::CustomSensorPreloader::CustomSensorPreloader |
( |
| ) |
|
|
default |
◆ ~CustomSensorPreloader()
| gazebo::CustomSensorPreloader::~CustomSensorPreloader |
( |
| ) |
|
|
override |
◆ DeferredPreloadSensors()
| void gazebo::CustomSensorPreloader::DeferredPreloadSensors |
( |
| ) |
|
|
protectedvirtual |
We need to register the sensors a little bit later, so we defer the calls to a separate thread.
Definition at line 108 of file CustomSensorPreloader.cpp.
◆ Init()
| void gazebo::CustomSensorPreloader::Init |
( |
| ) |
|
|
override |
◆ Load()
| void gazebo::CustomSensorPreloader::Load |
( |
int |
_argc, |
|
|
char ** |
_argv |
|
) |
| |
|
override |
◆ ProcessCustomSensor()
| void gazebo::CustomSensorPreloader::ProcessCustomSensor |
( |
const std::string & |
_type, |
|
|
const std::string & |
_classname, |
|
|
const std::string & |
_fullname |
|
) |
| |
|
protectedvirtual |
Store one custom sensor registration function for deferred loading.
- Parameters
-
| [in] | _type | Type of the sensor used in SDF to refer to it. |
| [in] | _classname | Name of the sensor's implementation class (without namespace). |
| [in] | _fullname | Absolute path to the dynamic library with the sensor. |
Definition at line 152 of file CustomSensorPreloader.cpp.
◆ Reset()
| void gazebo::CustomSensorPreloader::Reset |
( |
| ) |
|
|
override |
◆ deferredLoadThread
| std::unique_ptr<std::thread> gazebo::CustomSensorPreloader::deferredLoadThread |
|
protected |
◆ sensorsToRegister
| std::unordered_set<std::shared_ptr<registerTuple> > gazebo::CustomSensorPreloader::sensorsToRegister |
|
protected |
The documentation for this class was generated from the following files: