Open traversaro opened 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.
cc @prashanthr05 @triccyx
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 .
I will be happy to work with this and other related issues ... after the 21 of February!
Yes, I meant just take the code and customize it locally if it is useful for the debugging.
This would be something that could be implemented with the logging library we were discussing about the other day @GiulioRomualdi @diegoferigo @prashanthr05 .
Ok
@triccyx Have you checked the interface defined in https://github.com/traversaro/gazebo-fmi-1/commit/de31703e79c0a6eca5c4ff12f8cc6c9f1b804ea4#diff-87879b445e0fd2c9203e3f98b65c619dR65 ?
No, I will check.
For this it may be worth to check the https://github.com/ADVRHumanoids/MatLogger2 library.
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:
writeToFile
method ofFMULoggerSingleton
.mat
files or.csv
.