|
Thunderbots Project
|
#include <plotjuggler_sink.h>
Public Member Functions | |
| PlotJugglerSink (const std::string &interface="lo") | |
| void | sendToPlotJuggler (g3::LogMessageMover log_entry) |
This class acts as a custom sink for g3log. In particular, it allows us to send values to be plotted in PlotJuggler over UDP.
| PlotJugglerSink | ( | const std::string & | interface = "lo" | ) |
Creates a PlotJugglerSink that sends udp packets to the PlotJuggler server
| interface | The interface to send Plotjuggler UDP packets on |
| void sendToPlotJuggler | ( | g3::LogMessageMover | log_entry | ) |
This function is called on every call to LOG(). It sends a JSON string to PlotJuggler over the network.
| log_entry | the message received on a LOG() call |