raisim::BarChart
class · #include <raisim/server/Charts.hpp>
Inherits: raisim::Chart
Bar chart (histogram) with one bar per named category. Create with RaisimServer::addBarChart().
Public member functions
setData
cpp
void setData(const std::vector<float> &data)Please read the "atlas" example to see how it works. Thread-safe. The latest values are sent with every frame.
Parameters
| Parameter | Description |
|---|---|
data (in) | values of each category; fatal if the size does not match the number of categories. The histogram will be normalized. |
Inherited members
From raisim::Chart: getType, lock, lockMutex, try_lock, unlock, unlockMutex