Gazebo Gui

API Reference

8.3.0

Display NavSat messages coming through a Gazebo Transport topic on top of a map. More...

#include <NavSatMap.hh>

Public Slots

void OnRefresh ()
 Callback when refresh button is pressed. More...
 
void OnTopic (const QString _topic)
 Callback when a new topic is chosen on the combo box. More...
 

Signals

void newMessage (double _latitudeDeg, double _longitudeDeg)
 Notify that a new message has been received. More...
 
void TopicListChanged ()
 Notify that topic list has changed. More...
 

Public Member Functions

 NavSatMap ()
 Constructor. More...
 
virtual ~NavSatMap ()
 Destructor. More...
 
virtual void LoadConfig (const tinyxml2::XMLElement *_pluginElem)
 
Q_INVOKABLE void SetTopicList (const QStringList &_topicList)
 Set the topic list. More...
 
Q_INVOKABLE QStringList TopicList () const
 Get the list of topics publishing NavSat messages. More...
 

Properties

QStringList topicList
 Topic list. More...
 

Detailed Description

Display NavSat messages coming through a Gazebo Transport topic on top of a map.

Configuration

<topic> : Set the topic to receive NavSat messages. <topic_picker> : Whether to show the topic picker, true by default. If this is false, a <topic> must be specified.

Constructor & Destructor Documentation

◆ NavSatMap()

NavSatMap ( )

Constructor.

◆ ~NavSatMap()

virtual ~NavSatMap ( )
virtual

Destructor.

Member Function Documentation

◆ LoadConfig()

virtual void LoadConfig ( const tinyxml2::XMLElement *  _pluginElem)
virtual

◆ newMessage

void newMessage ( double  _latitudeDeg,
double  _longitudeDeg 
)
signal

Notify that a new message has been received.

Parameters
[in]_latitudeDegLatitude in degrees
[in]_longitudeDegLongitude in degrees

◆ OnRefresh

void OnRefresh ( )
slot

Callback when refresh button is pressed.

◆ OnTopic

void OnTopic ( const QString  _topic)
slot

Callback when a new topic is chosen on the combo box.

◆ SetTopicList()

Q_INVOKABLE void SetTopicList ( const QStringList _topicList)

Set the topic list.

Parameters
[in]_topicListList of topics

◆ TopicList()

Q_INVOKABLE QStringList TopicList ( ) const

Get the list of topics publishing NavSat messages.

Returns
List of topics

◆ TopicListChanged

void TopicListChanged ( )
signal

Notify that topic list has changed.

Property Documentation

◆ topicList

QStringList topicList
readwrite

Topic list.


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