Ignore frames with no view_info

This commit is contained in:
Patrick Nicolas
2023-07-25 20:05:24 +02:00
parent 2f4f1f5f29
commit 5128fcd96b
+5 -1
View File
@@ -321,7 +321,11 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx)
decoder->push_data(payload, frame_index, false);
auto feedback = current.feedback;
assert(data_shards.back()->view_info);
if (not data_shards.back()->view_info)
{
spdlog::warn("shard with end_of_frame flag has no view_info");
return;
}
feedback.received_pose = data_shards.back()->view_info->pose;
// Try to extract a frame