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
Platform: Linux (VS Code Devcontainer inside of Linux)
We've previously used the client to analyze some TriangleMesh data from our robot via this API. The script we were using was working a month or so ago, but I returned yesterday to see that the part of the code that extracts TriangleMesh messages is now breaking for a reason that I can't seem to understand.
Steps To Reproduce
Here is the problematic code block:
# Setup
msgs_found = []
for _, _, _, decoded_message in client.iter_messages(
device_id=coverage["device_id"],
start=coverage["start"],
end=coverage["end"],
topics=["/topic/containing/triangle/meshes"],
):
msgs_found += [decoded_message]
whenever the iter_messages() method is run, we now receive this error:
for _, _, _, decoded_message in client.iter_messages(
File "/home/ros/.local/lib/python3.10/site-packages/mcap/reader.py", line 191, in iter_decoded_messages
for schema, channel, message in message_iterator:
File "/home/ros/.local/lib/python3.10/site-packages/mcap/reader.py", line 494, in iter_messages
for t in sorted(
File "/home/ros/.local/lib/python3.10/site-packages/mcap/reader.py", line 508, in _iter_messages_internal
for record in self._stream_reader.records:
File "/home/ros/.local/lib/python3.10/site-packages/mcap/stream_reader.py", line 156, in records
opcode = self._stream.read1()
File "/home/ros/.local/lib/python3.10/site-packages/mcap/data_stream.py", line 41, in read1
[value] = struct.unpack("<B", self.read(1))
File "/home/ros/.local/lib/python3.10/site-packages/mcap/data_stream.py", line 31, in read
raise EndOfFile()
mcap.exceptions.EndOfFile
I'm not sure why this is now occurring. Doing some digging, I can see that at some point the following header is read
ipdb> record
Header(profile='', library='mcap go v1.4.1; fg-data-platform-daf59710')
I'm not familiar with the message that has that Header, but the empty profile might be what's causing this strange EndOfFile exception?
Expected Behavior
I had previously designed a script so that we could extract some Triangle Mesh data data from our Foxglove sessions, but it looks like that script has recently broken and I can't seem to figure out why.
The text was updated successfully, but these errors were encountered:
Description
We've previously used the client to analyze some TriangleMesh data from our robot via this API. The script we were using was working a month or so ago, but I returned yesterday to see that the part of the code that extracts TriangleMesh messages is now breaking for a reason that I can't seem to understand.
Steps To Reproduce
Here is the problematic code block:
whenever the
iter_messages()
method is run, we now receive this error:I'm not sure why this is now occurring. Doing some digging, I can see that at some point the following header is read
I'm not familiar with the message that has that Header, but the empty profile might be what's causing this strange EndOfFile exception?
Expected Behavior
I had previously designed a script so that we could extract some Triangle Mesh data data from our Foxglove sessions, but it looks like that script has recently broken and I can't seem to figure out why.
The text was updated successfully, but these errors were encountered: