Transfers data from memory servers to the DebugObserver.
More...
#include <RobotAPI/libraries/armem/client/util/MemoryToDebugObserver.h>
|
| | MemoryToDebugObserver (const Properties &properties, const Services &services) |
| | Constructor.
|
| |
| void | pollOnce () |
| | Query values from the memory and send them to the debug observer.
|
| |
| std::map< std::string, std::set< std::string > > | pollOnce (const std::vector< MemoryValueID > &values) |
| | Query the given values from the memory and send them to the debug observer.
|
| |
Transfers data from memory servers to the DebugObserver.
Transfers data from the memory system to the Debug Observer, allowing to visualize them in the Live Plotter.
◆ MemoryToDebugObserver()
◆ decomposeNDArray()
| std::vector< std::pair< std::string, double > > decomposeNDArray |
( |
const aron::data::NDArray & | array, |
|
|
int | maxSize = 16 ) |
|
static |
Decompose a numeric NDArray (vector, matrix, pose) into scalar datafields.
Returns a list of (datafield name suffix, value) pairs to append to the base datafield name. Vectors use x/y/z/w (or indices), matrices use row/column indices, and 4x4 homogeneous transforms are converted to x, y, z and roll, pitch, yaw. Returns an empty list if the array is not a plottable numeric vector/matrix (e.g. an image).
◆ makeChannelName()
◆ makeDatafieldName()
| std::string makeDatafieldName |
( |
const aron::Path & | path | ) |
|
|
static |
◆ pollOnce() [1/2]
Query values from the memory and send them to the debug observer.
◆ pollOnce() [2/2]
| std::map< std::string, std::set< std::string > > pollOnce |
( |
const std::vector< MemoryValueID > & | values | ) |
|
Query the given values from the memory and send them to the debug observer.
Allows polling a dynamically changing set of values without reconstructing this object (and thereby keeping the cache of memory readers).
- Returns
- The datafields that were sent, grouped by channel name. Lets callers detect which datafields are no longer being sent (e.g. because a value was removed) and remove them.
The documentation for this class was generated from the following files: