esp::sensor::VisualSensor::MoveSemanticSensorNodeHelper class

Constructors, destructors, conversion operators

MoveSemanticSensorNodeHelper(VisualSensor& visualSensor, sim::Simulator& sim)
constructor. This function saves the semantic sensor's transformation and parent node, moves it to the semantic scene graph, connects it to the root node, and sets the relative transformation (wrt to the root) to the absolute transformation in the previous scene graph.
~MoveSemanticSensorNodeHelper()
Destructor. This function moves the semantic sensor back to the regular scene graph, restores its relative transformation to its parent based on the values saved previously.

Protected variables

VisualSensor& visualSensor_
sim::Simulator& sim_
Corrade::Containers::Optional<Magnum::Matrix4> relativeTransformBackup_
scene::SceneNode* semanticSensorParentNodeBackup_