You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get started with this tool and I'm probably doing something wrong with the MCAPSink.
So first of all, I was running into the chunking issue explained in #20 -- since I was only trying to log a single scalar double value over time, I wasn't seeing anything coming up on file until I logged a ton of data.
Next up, when I finally get a file that's partially full, I try to load it into PlotJuggler and get this error:
Message: invalid magic bytes in Footer: 0xD0FF0B0000000000
Is there some special way to make sure the file/buffer are closed properly? Or something missing? Here is my code:
I could be wrong, but I have also had similar issues and it seems like issues like that are due to the mcap writer not properly destructing and getting to finish writing the file.
Yep -- ok, confirming that for whatever reason, this code is not properly destroying the object containing the MCAPSink. I blame the use of pluginlib in this whole mess :)
If I manually reset() the shared pointer to the sink during execution, the file reads correctly in PlotJuggler.
Not sure if you'd like to leave this open or closed, but I defer to you -- thanks, guys!
Hi @facontidavide!
I've been trying to get started with this tool and I'm probably doing something wrong with the
MCAPSink
.So first of all, I was running into the chunking issue explained in #20 -- since I was only trying to log a single scalar double value over time, I wasn't seeing anything coming up on file until I logged a ton of data.
Next up, when I finally get a file that's partially full, I try to load it into PlotJuggler and get this error:
Is there some special way to make sure the file/buffer are closed properly? Or something missing? Here is my code:
(in the constructor)
in some subscriber callback
Confirming the "LOGGING SUCCEEDED" printout is happening.
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: