|
The plotter widget allows the user to send data to a the StaticPlotterInterface topic, which can be plotted with this widget. To send plotting data from your code use code similar to this:
#include <ArmarXGui/interface/StaticPlotterInterface.h> topicPrx = getTopic<StaticPlotterInterfacePrx>("StaticPlotter"); Vector2fSeq data {{1, 0}, {200, 300}, {300, 100} }; Vector2fSeq data2 {{1, 0}, {200, 500}, {340, 600} }; topicPrx->addPlot("TestCurve", {{"curve", data}, {"curve2", data2}});
The GUI needs to be running before the plot is sent.