Class MsgPackExporter

Class Documentation

class MsgPackExporter

Public Functions

MsgPackExporter()
MsgPackExporter(sick_scansegment_xd::PayloadFifo *udp_fifo, sick_scansegment_xd::Fifo<ScanSegmentParserOutput> *msgpack_fifo, const std::string &logfolder, bool export_csv, bool verbose = false, bool measure_timing = false)
~MsgPackExporter()
bool Start(void)
bool Run(void)
void Close(void)
void AddExportListener(sick_scansegment_xd::MsgPackExportListenerIF *listener)
void RemoveExportListener(sick_scansegment_xd::MsgPackExportListenerIF *listener)

Protected Functions

bool RunCb(void)
std::list<sick_scansegment_xd::MsgPackExportListenerIF*> GetExportListener()

Protected Attributes

std::string m_logfolder
bool m_export_csv
bool m_verbose
bool m_measure_timing
sick_scansegment_xd::PayloadFifo *m_udp_fifo
sick_scansegment_xd::Fifo<ScanSegmentParserOutput> *m_msgpack_fifo
std::thread *m_exporter_thread
bool m_run_exporter_thread
std::list<sick_scansegment_xd::MsgPackExportListenerIF*> m_listener
std::mutex m_listener_mutex

Protected Static Functions

static void PlotXYZI(const std::vector<float> &x, const std::vector<float> &y, const std::vector<float> &z, const std::vector<int> &i)