Visualize the frustum from supported camera sensor messages. More...
#include <VisualizeFrustum.hh>
Classes | |
| struct | FrustumData |
| Frustum parameters extracted from a supported sensor message. More... | |
Signals | |
| void | TopicListChanged () |
| Notify that topic list has changed. More... | |
Public Member Functions | |
| VisualizeFrustum () | |
| Constructor. More... | |
| ~VisualizeFrustum () override | |
| Destructor. More... | |
| Q_INVOKABLE void | DisplayVisual (bool _value) |
| Set whether to display the frustum visual. More... | |
| bool | eventFilter (QObject *_obj, QEvent *_event) override |
| void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) override |
| void | LoadFrustum () |
| Load the scene and attach FrustumVisual to the scene. More... | |
| void | OnCameraInfo (const msgs::CameraInfo &_msg) |
| Callback function to get data from a CameraInfo message. More... | |
| Q_INVOKABLE void | OnRefresh () |
| Callback when refresh button is pressed. More... | |
| void | OnScan (const msgs::LogicalCameraSensor &_msg) |
| Callback function to get data from a LogicalCameraSensor message. More... | |
| Q_INVOKABLE void | OnTopic (const QString &_topicName) |
| Set topic to subscribe for frustum data. More... | |
| Q_INVOKABLE void | SetTopicList (const QStringList &_topicList) |
| Set the list of topics. More... | |
| Q_INVOKABLE QStringList | TopicList () const |
| Get the list of topics as a string list. More... | |
| void | Update (const UpdateInfo &, EntityComponentManager &_ecm) override |
| Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots. More... | |
Public Member Functions inherited from Plugin | |
| Plugin () | |
| virtual | ~Plugin () |
| QQuickItem * | CardItem () const |
| virtual std::string | ConfigStr () |
| QQmlContext * | Context () const |
| bool | DeleteLaterRequested () const |
| void | Load (const tinyxml2::XMLElement *_pluginElem) |
| QQuickItem * | PluginItem () const |
| void | PostParentChanges () |
| virtual std::string | Title () const |
Properties | |
| QStringList | topicList |
| Topic list. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Plugin | |
| void | DeleteLater () |
Protected Attributes inherited from Plugin | |
| std::string | configStr |
| std::string | title |
Detailed Description
Visualize the frustum from supported camera sensor messages.
Constructor & Destructor Documentation
◆ VisualizeFrustum()
| VisualizeFrustum | ( | ) |
Constructor.
◆ ~VisualizeFrustum()
|
override |
Destructor.
Member Function Documentation
◆ DisplayVisual()
| Q_INVOKABLE void DisplayVisual | ( | bool | _value | ) |
Set whether to display the frustum visual.
- Parameters
-
[in] _value Boolean value for displaying the visual
◆ eventFilter()
|
override |
◆ LoadConfig()
|
overridevirtual |
Reimplemented from Plugin.
◆ LoadFrustum()
| void LoadFrustum | ( | ) |
Load the scene and attach FrustumVisual to the scene.
◆ OnCameraInfo()
| void OnCameraInfo | ( | const msgs::CameraInfo & | _msg | ) |
Callback function to get data from a CameraInfo message.
- Parameters
-
[in] _msg CameraInfo message used to compute frustum information
◆ OnRefresh()
| Q_INVOKABLE void OnRefresh | ( | ) |
Callback when refresh button is pressed.
◆ OnScan()
| void OnScan | ( | const msgs::LogicalCameraSensor & | _msg | ) |
Callback function to get data from a LogicalCameraSensor message.
- Parameters
-
[in] _msg LogicalCameraSensor message with frustum information
◆ OnTopic()
| Q_INVOKABLE void OnTopic | ( | const QString & | _topicName | ) |
Set topic to subscribe for frustum data.
- Parameters
-
[in] _topicName Name of selected topic
◆ SetTopicList()
| Q_INVOKABLE void SetTopicList | ( | const QStringList & | _topicList | ) |
Set the list of topics.
- Parameters
-
[in] _topicList Topic list
◆ TopicList()
| Q_INVOKABLE QStringList TopicList | ( | ) | const |
Get the list of topics as a string list.
- Returns
- Supported topic list
◆ TopicListChanged
|
signal |
Notify that topic list has changed.
◆ Update()
|
overridevirtual |
Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots.
- Parameters
-
[in] _info Current simulation information, such as time. [in] _ecm Mutable reference to the ECM, so the system can read and write entities and their components.
Reimplemented from GuiSystem.
Property Documentation
◆ topicList
|
readwrite |
Topic list.
The documentation for this class was generated from the following file:
Public Member Functions inherited from