class
#include <esp/sensor/SensorFactory.h>
SensorFactory
Public static functions
-
static auto createSensors(scene::
SceneNode& node, const sensor:: SensorSetup& sensorSetup) -> std:: map<std:: string, std:: reference_wrapper<sensor:: Sensor>>& - Static method to initialize SensorSuite of Sensors.
-
static void deleteSensor(const sensor::
Sensor& sensor) - Static method to delete a Sensor.
-
static void deleteSubtreeSensor(scene::
SceneNode& node, const std:: string& uuid) - Static method to delete a Sensor from the subtree rooted at node.
Function documentation
static std:: map<std:: string, std:: reference_wrapper<sensor:: Sensor>>& esp:: sensor:: SensorFactory:: createSensors(scene:: SceneNode& node,
const sensor:: SensorSetup& sensorSetup)
Static method to initialize SensorSuite of Sensors.
Parameters | |
---|---|
node in | SceneNode of SensorSuite to create child SceneNodes and attach sensors to |
sensorSetup in | SensorSetup a vector of SensorSpec::ptr defining specs for each sensor |
static void esp:: sensor:: SensorFactory:: deleteSensor(const sensor:: Sensor& sensor)
Static method to delete a Sensor.
Parameters | |
---|---|
sensor in | Sensor to delete |
static void esp:: sensor:: SensorFactory:: deleteSubtreeSensor(scene:: SceneNode& node,
const std:: string& uuid)
Static method to delete a Sensor from the subtree rooted at node.
Parameters | |
---|---|
node in | root SceneNode of the subtree in which the Sensor will be searched |
uuid in | Sensor's uuid NOTE: If sensor does not exist, SensorFactory will log a message but proceed without any errors thrown |