Thunderbots Project
Loading...
Searching...
No Matches
PlotJugglerSink Class Reference

#include <plotjuggler_sink.h>

Public Member Functions

 PlotJugglerSink (const std::string &interface="lo")
 
void sendToPlotJuggler (g3::LogMessageMover log_entry)
 

Detailed Description

This class acts as a custom sink for g3log. In particular, it allows us to send values to be plotted in PlotJuggler over UDP.

Constructor & Destructor Documentation

◆ PlotJugglerSink()

PlotJugglerSink ( const std::string &  interface = "lo")

Creates a PlotJugglerSink that sends udp packets to the PlotJuggler server

Parameters
interfaceThe interface to send Plotjuggler UDP packets on

Member Function Documentation

◆ sendToPlotJuggler()

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.

Parameters
log_entrythe message received on a LOG() call

The documentation for this class was generated from the following files: