raisim::TimeSeriesGraph
class · #include <raisim/server/Charts.hpp>
Inherits: raisim::Chart
Line chart of one or more named series over time. Create with RaisimServer::addTimeSeriesGraph(). Data points are buffered (at most 500) until the next frame is sent, then cleared.
Public member functions
addDataPoints
cpp
void addDataPoints(double time, const raisim::VecDyn &d)Please read the "atlas" example to see how it works. Thread-safe. If more than 500 points are pending, the oldest is dropped.
Parameters
| Parameter | Description |
|---|---|
time (in) | x coordinate for the following data |
d (in) | y coordinates of the data, one per series. The order is given when the chart is created; fatal if the size does not match |
Inherited members
From raisim::Chart: getType, lock, lockMutex, try_lock, unlock, unlockMutex