daohu527 / cyber_record

cyber_record offline parse tool
Apache License 2.0
52 stars 19 forks source link

Invalid proto descriptor for file "": : Missing field: FileDescriptorProto.name. #48

Closed GabrielZZZ closed 2 years ago

GabrielZZZ commented 2 years ago

Hello, I am using this tool to try to parse the demo record file (demo_sensor_data_for_vision.record), and I only modified the related file name in the test_parser_message.py. Now I encountered this issue (I am calling the python code inside the apollo container): image

By the way, I also encountered the command not found issue by directly calling cyber_record from the command line in container, and I am using Ubuntu 20.04.

This is a great tool. Anyway how to solve these issues?

GabrielZZZ commented 2 years ago

The record file to parse, information: image

I test the record file given in this repo folder (/test/example.record.00000), and there is no error like above. I think the problem is related to the record file. Maybe include channels that cyber_record.Record cannot read?

daohu527 commented 2 years ago

The problem may be with the record file. You know this tool is not need any message proto file and just read from record file itself

GabrielZZZ commented 2 years ago

I agree. But I downloaded these records from the Apollo demo, and they can be played by the cyber_recorder. I can not see the problem inside them. I also tested another file from the tutorial. Same issue. image record file: demo_sensor_data_for_vision.tar.xz

daohu527 commented 2 years ago

The /apollo/sensor/camera/front_6mm/image channel have no desc, I fixed the error and it would skip parsing the channel.

You can update it by

pip3 install cyber_record -U
GabrielZZZ commented 2 years ago

Thank you! I have updated the tool, now it can read the image information from the databag now. However, when coming to the parsing part, it now outputs the error: image Is there any solution to successfully extract the image from this bag? I really want to use it.

daohu527 commented 2 years ago

No, this tool has no proto dependencies, so you can use apollo cyber_recorder to decompress

daohu527 commented 2 years ago

Maybe I'll provide a cmd to recover the record.

GabrielZZZ commented 2 years ago

That would be very kind. Thanks a lot

daohu527 commented 2 years ago

@GabrielZZZ I add the recover cmd and it works, I have unzipped the image from the record file.

You can follow the readme to recover the file.