How to write messages(msgs) to a log file in Gazebo?

asked 2023-04-19 09:47:12 -0500

FM-SEAL gravatar image

I'm writing a plug-in and I would need to store some messages to a log file in order to debug the plug-in. Is there any way to do so? Right now, I'm printing the values to the command line, but this solution isn't really helpful. It would be great to save the time-series of the messages values to a file (possibly a .ulg) so as to plot them after the simulation, but any other ideas are welcome. I know that Gazebo has a logging and playback feature, but only physical variables can be analysed in it. Thank you in advance!

edit retag flag offensive close merge delete