robotology / gazebo-fmi

FMI import plugins for the Gazebo Simulator.
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Structured logging of FMU variables #51

Open traversaro opened 5 years ago

traversaro commented 5 years ago

The need to reliably log the state of the FMU simulated emerged several times. A prototype of this functionality (still missing critical pieces of the infrastructure) is available in https://github.com/traversaro/gazebo-fmi-1/commit/de31703e79c0a6eca5c4ff12f8cc6c9f1b804ea4#diff-87879b445e0fd2c9203e3f98b65c619dR65 .

Basic ideas:

traversaro commented 5 years ago

Expanding a bit the FMICoSimulation class, it should be possible to easily also dump any kind of internal state of the FMU.

traversaro commented 5 years ago

cc @prashanthr05 @triccyx

traversaro commented 5 years ago

Just to clarify: I do not know when/if I will have time to work on the prototype, so feel free to go on and complete it yourself @prashanthr05 @triccyx .

triccyx commented 5 years ago

I will be happy to work with this and other related issues ... after the 21 of February!

traversaro commented 5 years ago

Yes, I meant just take the code and customize it locally if it is useful for the debugging.

traversaro commented 5 years ago

This would be something that could be implemented with the logging library we were discussing about the other day @GiulioRomualdi @diegoferigo @prashanthr05 .

triccyx commented 5 years ago

Ok

traversaro commented 5 years ago

@triccyx Have you checked the interface defined in https://github.com/traversaro/gazebo-fmi-1/commit/de31703e79c0a6eca5c4ff12f8cc6c9f1b804ea4#diff-87879b445e0fd2c9203e3f98b65c619dR65 ?

triccyx commented 5 years ago

No, I will check.

traversaro commented 5 years ago

For this it may be worth to check the https://github.com/ADVRHumanoids/MatLogger2 library.