Gazebo Sensors

API Reference

3.6.0

#include <RenderingEvents.hh>

Static Public Member Functions

static gz::common::ConnectionPtr ConnectSceneChangeCallback (std::function< void(const gz::rendering::ScenePtr &)> _callback)
 Set a callback to be called when the scene is changed. More...
 

Static Public Attributes

static gz::common::EventT< void(const gz::rendering::ScenePtr &)> sceneEvent
 Event that is used to trigger callbacks when the scene is changed. More...
 

Member Function Documentation

◆ ConnectSceneChangeCallback()

static gz::common::ConnectionPtr ConnectSceneChangeCallback ( std::function< void(const gz::rendering::ScenePtr &)>  _callback)
static

Set a callback to be called when the scene is changed.

Parameters
[in]_callbackThis callback will be called every time the scene is changed.
Remarks
Do not block inside of the callback.
Returns
A connection pointer that must remain in scope. When the connection pointer falls out of scope, the connection is broken.

Member Data Documentation

◆ sceneEvent

gz::common::EventT< void(const gz::rendering::ScenePtr &)> sceneEvent
static

Event that is used to trigger callbacks when the scene is changed.


The documentation for this class was generated from the following file: