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 zcm_field_type_t
type,
51 const void*
data,
void* usr);
53 std::vector<std::pair<std::string, double>>
_numerics;
54 std::vector<std::pair<std::string, std::string>>
_strings;
56 void handler(
const zcm::ReceiveBuffer* rbuf,
const std::string& channel);
void on_pushButtonUrl_clicked()
QString _subscribe_string
std::unique_ptr< zcm::TypeDb > _types
virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
std::unique_ptr< zcm::ZCM > _zcm
ConfigZCM * _config_widget
The DataStreamer base classm used to read streaming of data.
void handler(const zcm::ReceiveBuffer *rbuf, const std::string &channel)
zcm::Subscription * _subs
virtual bool isRunning() const override
isRunning
std::vector< std::pair< std::string, std::string > > _strings
virtual void shutdown() override
shutdown Stop streaming
static void processData(const std::string &name, zcm_field_type_t type, const void *data, void *usr)
virtual const char * name() const override
Name of the plugin type, NOT the particular instance.
virtual bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
std::vector< std::pair< std::string, double > > _numerics
virtual bool start(QStringList *) override
start streaming.