robotology / robometry

Telemetry suite for logging data from your robot 🤖
https://robotology.github.io/robometry
Other
14 stars 9 forks source link

Add the possibility to call a callback when the buffer is saved #159

Closed GiulioRomualdi closed 2 years ago

GiulioRomualdi commented 2 years ago

This PR implements the possibility to set a callback that is called every time the saveToFile is called. Thanks to this it will be possible to store other kinds of data, e.g. videos, txt files...

GiulioRomualdi commented 2 years ago

cc @traversaro @S-Dafarra @Nicogene @AlexAntn

Nicogene commented 2 years ago

Hi @GiulioRomualdi, what is the status of this PR? We will do soon a release and then do some breaking changes that would trigger some conflicts with this PR

GiulioRomualdi commented 2 years ago

Hi @GiulioRomualdi, what is the status of this PR? We will do soon a release and then do some breaking changes that would trigger some conflicts with this PR

Hi @Nicogene, sorry for the delay. I updated the readme and the test I also applied what @S-Dafarra suggested.

An use case for this PR is to save the videostream from the cameras. Thanks to this I can merge this: https://github.com/ami-iit/bipedal-locomotion-framework/pull/516

Nicogene commented 2 years ago

Merged, thanks!