Go to the documentation of this file.
7 #include <zcm/zcm-cpp.hpp>
9 #include <zcm/tools/TypeDb.hpp>
10 #include <zcm/tools/Introspection.hpp>
13 #include "ui_datastream_zcm.h"
18 Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.DataStreamer")
26 virtual const char*
name()
const override;
28 virtual bool start(QStringList*)
override;
35 QDomElement& parent_element)
const override;
37 virtual bool xmlLoadState(
const QDomElement& parent_element)
override;
45 std::unique_ptr<zcm::ZCM>
_zcm;
47 zcm::Subscription*
_subs =
nullptr;
50 const void*
data,
void* usr);
52 std::vector<std::pair<std::string, double>>
_numerics;
53 std::vector<std::pair<std::string, std::string>>
_strings;
55 void handler(
const zcm::ReceiveBuffer* rbuf,
const std::string& channel);
virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
std::vector< std::pair< std::string, double > > _numerics
QString _subscribe_string
virtual bool start(QStringList *) override
start streaming.
The DataStreamer base classm used to read streaming of data.
std::unique_ptr< zcm::TypeDb > _types
virtual bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
void handler(const zcm::ReceiveBuffer *rbuf, const std::string &channel)
static void processData(const std::string &name, zcm_field_type_t type, const void *data, void *usr)
void on_pushButtonUrl_clicked()
std::unique_ptr< zcm::ZCM > _zcm
zcm::Subscription * _subs
std::vector< std::pair< std::string, std::string > > _strings
ConfigZCM * _config_widget
virtual void shutdown() override
shutdown Stop streaming
virtual const char * name() const override
Name of the plugin type, NOT the particular instance.
virtual bool isRunning() const override
isRunning
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44