Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DataStreamROS Class Reference

#include <datastream_ROS.h>

Inheritance diagram for DataStreamROS:
Inheritance graph
[legend]

Public Member Functions

virtual void addActionsToParentMenu (QMenu *menu) override
 
virtual std::vector< QString > appendData (PlotDataMapRef &destination) override
 
 DataStreamROS ()
 
virtual bool isRunning () const override
 
virtual const char * name () const override
 
virtual void shutdown () override
 
virtual bool start (QStringList *selected_datasources) override
 
virtual bool xmlLoadState (const QDomElement &parent_element) override
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override
 
virtual ~DataStreamROS () override
 
- Public Member Functions inherited from DataStreamer
PlotDataMapRefdataMap ()
 
const PlotDataMapRefdataMap () const
 
 DataStreamer ()
 
std::mutex & mutex ()
 
void setMaximumRange (double range)
 
virtual ~DataStreamer ()
 
- Public Member Functions inherited from PlotJugglerPlugin
virtual bool isDebugPlugin ()
 
virtual QWidget * optionsWidget ()
 
 PlotJugglerPlugin ()
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Private Member Functions

void clockCallback (const rosgraph_msgs::Clock::ConstPtr &msg)
 
void extractInitialSamples ()
 
void loadDefaultSettings ()
 
void saveDefaultSettings ()
 
void subscribe ()
 
void timerCallback ()
 
void topicCallback (const topic_tools::ShapeShifter::ConstPtr &msg, const std::string &topic_name)
 

Static Private Member Functions

static void saveIntoRosbag (const PlotDataMapRef &data)
 

Private Attributes

QAction * _action_saveIntoRosbag
 
DialogSelectRosTopics::Configuration _config
 
PlotDataMapRef_destination_data
 
double _initial_time
 
std::map< std::string, int > _msg_index
 
ros::NodeHandlePtr _node
 
QTimer * _periodic_timer
 
std::string _prefix
 
double _prev_clock_time
 
int _received_msg_count
 
RosMessageParser _ros_parser
 
bool _roscore_disconnection_already_notified
 
RosIntrospection::SubstitutionRuleMap _rules
 
bool _running
 
std::shared_ptr< ros::AsyncSpinner_spinner
 
std::map< std::string, ros::Subscriber_subscribers
 

Additional Inherited Members

- Signals inherited from DataStreamer
void clearBuffers ()
 
void connectionClosed ()
 
void dataUpdated ()
 

Detailed Description

Definition at line 15 of file datastream_ROS.h.

Constructor & Destructor Documentation

DataStreamROS::DataStreamROS ( )

Definition at line 27 of file datastream_ROS.cpp.

DataStreamROS::~DataStreamROS ( )
overridevirtual

Definition at line 402 of file datastream_ROS.cpp.

Member Function Documentation

void DataStreamROS::addActionsToParentMenu ( QMenu *  menu)
overridevirtual

Reimplemented from PlotJugglerPlugin.

Definition at line 445 of file datastream_ROS.cpp.

virtual std::vector<QString> DataStreamROS::appendData ( PlotDataMapRef destination)
inlineoverridevirtual

Reimplemented from DataStreamer.

Definition at line 41 of file datastream_ROS.h.

void DataStreamROS::clockCallback ( const rosgraph_msgs::Clock::ConstPtr &  msg)
private
void DataStreamROS::extractInitialSamples ( )
private

Definition at line 127 of file datastream_ROS.cpp.

bool DataStreamROS::isRunning ( ) const
overridevirtual

Implements DataStreamer.

Definition at line 383 of file datastream_ROS.cpp.

void DataStreamROS::loadDefaultSettings ( )
private

Definition at line 471 of file datastream_ROS.cpp.

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

Implements PlotJugglerPlugin.

Definition at line 33 of file datastream_ROS.h.

void DataStreamROS::saveDefaultSettings ( )
private

Definition at line 459 of file datastream_ROS.cpp.

void DataStreamROS::saveIntoRosbag ( const PlotDataMapRef data)
staticprivate

Definition at line 200 of file datastream_ROS.cpp.

void DataStreamROS::shutdown ( )
overridevirtual

Implements DataStreamer.

Definition at line 385 of file datastream_ROS.cpp.

bool DataStreamROS::start ( QStringList *  selected_datasources)
overridevirtual

Implements DataStreamer.

Definition at line 294 of file datastream_ROS.cpp.

void DataStreamROS::subscribe ( )
private

Definition at line 266 of file datastream_ROS.cpp.

void DataStreamROS::timerCallback ( )
private

Definition at line 160 of file datastream_ROS.cpp.

void DataStreamROS::topicCallback ( const topic_tools::ShapeShifter::ConstPtr msg,
const std::string &  topic_name 
)
private

Definition at line 42 of file datastream_ROS.cpp.

bool DataStreamROS::xmlLoadState ( const QDomElement &  parent_element)
overridevirtual

Reimplemented from PlotJugglerPlugin.

Definition at line 428 of file datastream_ROS.cpp.

bool DataStreamROS::xmlSaveState ( QDomDocument &  doc,
QDomElement &  parent_element 
) const
overridevirtual

Reimplemented from PlotJugglerPlugin.

Definition at line 407 of file datastream_ROS.cpp.

Member Data Documentation

QAction* DataStreamROS::_action_saveIntoRosbag
private

Definition at line 81 of file datastream_ROS.h.

DialogSelectRosTopics::Configuration DataStreamROS::_config
private

Definition at line 85 of file datastream_ROS.h.

PlotDataMapRef* DataStreamROS::_destination_data
private

Definition at line 49 of file datastream_ROS.h.

double DataStreamROS::_initial_time
private

Definition at line 69 of file datastream_ROS.h.

std::map<std::string, int> DataStreamROS::_msg_index
private

Definition at line 83 of file datastream_ROS.h.

ros::NodeHandlePtr DataStreamROS::_node
private

Definition at line 73 of file datastream_ROS.h.

QTimer* DataStreamROS::_periodic_timer
private

Definition at line 89 of file datastream_ROS.h.

std::string DataStreamROS::_prefix
private

Definition at line 71 of file datastream_ROS.h.

double DataStreamROS::_prev_clock_time
private

Definition at line 93 of file datastream_ROS.h.

int DataStreamROS::_received_msg_count
private

Definition at line 79 of file datastream_ROS.h.

RosMessageParser DataStreamROS::_ros_parser
private

Definition at line 87 of file datastream_ROS.h.

bool DataStreamROS::_roscore_disconnection_already_notified
private

Definition at line 91 of file datastream_ROS.h.

RosIntrospection::SubstitutionRuleMap DataStreamROS::_rules
private

Definition at line 77 of file datastream_ROS.h.

bool DataStreamROS::_running
private

Definition at line 65 of file datastream_ROS.h.

std::shared_ptr<ros::AsyncSpinner> DataStreamROS::_spinner
private

Definition at line 67 of file datastream_ROS.h.

std::map<std::string, ros::Subscriber> DataStreamROS::_subscribers
private

Definition at line 75 of file datastream_ROS.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:18