Closed GiulioRomualdi closed 2 years ago
I'm afraid that the answers of both the questions are no
Since the BufferManager
contains a map
of BufferInfo
of the same type
and the BufferManager
is the one that handles the flush in the file
Hi @GiulioRomualdi!
You answered by yourself 😄
As you mentioned, at this moment each BufferManager
is associated with a single .mat file and it handles only one type.
The first point is a known limitation (see https://github.com/robotology/yarp-telemetry/issues/76) that can be addressed with some template black magic or some modern construct like std::any
.
The second point you posted could be handled by the "deamon/collector", we discussed about the need to have something that collect all the data and merge it in one mat file and one place (https://github.com/robotology/yarp-telemetry/issues/51)
Hi all, I am trying to use yarp telemetry library in https://github.com/ami-iit/bipedal-locomotion-framework/tree/master/devices/YarpRobotLoggerDevice and I have two questions:
yarp::telemetry::experimental::BufferManager
is the main class that is used to save the data in amat
file. I noticed that the user should specify a type for a givenBufferManager
. Now let's assume I want to store in the samemat
files both int vector and double vectors is it possible?See here. Is it possible to replicate this with yarp-telemetry? For instance, it is possible to have multiple
BufferManagers
in the same mat file? If this would be possible I can create aBufferManager
for each "type" of data (e.g. one forFTs
, one forJointState
, one for the high-level info (CoM ZMP, ...)) I am afraid that this is not possible since according to the documentation there seems that for eachBufferManager
there exists oneMatlab
file.cc @traversaro @Nicogene @S-Dafarra