Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TopicPublisherROS Class Reference

#include <statepublisher_rostopic.h>

Inheritance diagram for TopicPublisherROS:
Inheritance graph
[legend]

Public Slots

void filterDialog (bool autoconfirm)
 
virtual void setEnabled (bool enabled) override
 

Public Member Functions

virtual bool enabled () const override
 
virtual const char * name () const override
 
virtual void play (double interval) override
 
void setParentMenu (QMenu *menu, QAction *action) override
 
 TopicPublisherROS ()
 
virtual void updateState (double current_time) override
 
virtual ~TopicPublisherROS () override
 

Private Member Functions

void broadcastTF (double current_time)
 
void publishAnyMsg (const rosbag::MessageInstance &msg_instance)
 
bool toPublish (const std::string &topic_name)
 
- Private Member Functions inherited from StatePublisher
virtual QWidget * embeddedWidget ()
 
virtual bool isDebugPlugin ()
 
void setDataMap (const PlotDataMapRef *datamap)
 
virtual void setEnabled (bool enabled)
 
virtual bool xmlLoadState (const QDomElement &parent_element)
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const
 
QDomElement xmlSaveState (QDomDocument &doc) const
 
virtual ~StatePublisher ()
 

Private Attributes

ros::Publisher _clock_publisher
 
QAction * _enable_self_action
 
bool _enabled
 
ros::NodeHandlePtr _node
 
int _previous_play_index
 
bool _publish_clock
 
std::map< std::string, ros::Publisher_publishers
 
QAction * _select_topics_to_publish
 
std::unique_ptr< tf::TransformBroadcaster_tf_publisher
 
std::unordered_map< std::string, bool_topics_to_publish
 
double previous_time
 
- Private Attributes inherited from StatePublisher
QAction * _action
 
const PlotDataMapRef_datamap
 
QMenu * _menu
 

Detailed Description

Definition at line 14 of file statepublisher_rostopic.h.

Constructor & Destructor Documentation

TopicPublisherROS::TopicPublisherROS ( )

Definition at line 22 of file statepublisher_rostopic.cpp.

TopicPublisherROS::~TopicPublisherROS ( )
overridevirtual

Definition at line 32 of file statepublisher_rostopic.cpp.

Member Function Documentation

void TopicPublisherROS::broadcastTF ( double  current_time)
private

Definition at line 192 of file statepublisher_rostopic.cpp.

virtual bool TopicPublisherROS::enabled ( ) const
inlineoverridevirtual

Implements StatePublisher.

Definition at line 28 of file statepublisher_rostopic.h.

void TopicPublisherROS::filterDialog ( bool  autoconfirm)
slot

Definition at line 84 of file statepublisher_rostopic.cpp.

virtual const char* TopicPublisherROS::name ( ) const
inlineoverridevirtual

Implements StatePublisher.

Definition at line 26 of file statepublisher_rostopic.h.

void TopicPublisherROS::play ( double  interval)
overridevirtual

Implements StatePublisher.

Definition at line 422 of file statepublisher_rostopic.cpp.

void TopicPublisherROS::publishAnyMsg ( const rosbag::MessageInstance msg_instance)
private

Definition at line 294 of file statepublisher_rostopic.cpp.

void TopicPublisherROS::setEnabled ( bool  enabled)
overridevirtualslot

Definition at line 49 of file statepublisher_rostopic.cpp.

void TopicPublisherROS::setParentMenu ( QMenu *  menu,
QAction *  action 
)
overridevirtual

Reimplemented from StatePublisher.

Definition at line 37 of file statepublisher_rostopic.cpp.

bool TopicPublisherROS::toPublish ( const std::string &  topic_name)
private

Definition at line 281 of file statepublisher_rostopic.cpp.

void TopicPublisherROS::updateState ( double  current_time)
overridevirtual

Implements StatePublisher.

Definition at line 348 of file statepublisher_rostopic.cpp.

Member Data Documentation

ros::Publisher TopicPublisherROS::_clock_publisher
private

Definition at line 48 of file statepublisher_rostopic.h.

QAction* TopicPublisherROS::_enable_self_action
private

Definition at line 50 of file statepublisher_rostopic.h.

bool TopicPublisherROS::_enabled
private

Definition at line 44 of file statepublisher_rostopic.h.

ros::NodeHandlePtr TopicPublisherROS::_node
private

Definition at line 45 of file statepublisher_rostopic.h.

int TopicPublisherROS::_previous_play_index
private

Definition at line 59 of file statepublisher_rostopic.h.

bool TopicPublisherROS::_publish_clock
private

Definition at line 46 of file statepublisher_rostopic.h.

std::map<std::string, ros::Publisher> TopicPublisherROS::_publishers
private

Definition at line 43 of file statepublisher_rostopic.h.

QAction* TopicPublisherROS::_select_topics_to_publish
private

Definition at line 51 of file statepublisher_rostopic.h.

std::unique_ptr<tf::TransformBroadcaster> TopicPublisherROS::_tf_publisher
private

Definition at line 47 of file statepublisher_rostopic.h.

std::unordered_map<std::string,bool> TopicPublisherROS::_topics_to_publish
private

Definition at line 53 of file statepublisher_rostopic.h.

double TopicPublisherROS::previous_time
private

Definition at line 57 of file statepublisher_rostopic.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19