bag-reader-java icon indicating copy to clipboard operation
bag-reader-java copied to clipboard

Unable to parse field definition: protobuf

Open Dejia2017 opened this issue 7 years ago • 2 comments

I see this error when I readBag.

11:19:29.819 [main] DEBUG com.github.swrirobotics.bags.reader.messages.serialization.MessageCollection - --- Starting message parsing for pb_msgs/Localization --- 11:19:29.825 [main] DEBUG com.github.swrirobotics.bags.reader.messages.serialization.MessageType - Parsing message type: pb_msgs/Localization 11:19:29.825 [main] DEBUG com.github.swrirobotics.bags.reader.messages.serialization.MessageCollection - --- Finished parsing messages --- 11:19:29.828 [main] ERROR com.github.swrirobotics.bags.reader.records.Connection - Error configuring message deserializer: com.github.swrirobotics.bags.reader.exceptions.InvalidDefinitionException: Unable to parse field definition: protobuf at com.github.swrirobotics.bags.reader.messages.serialization.MessageType.(MessageType.java:125) Parsing message type: pb_msgs/Localization

maybe the type of "pb_msgs/Localization" can not be parsed. I want to know how to solve this problem. looking forward to your reply! thank you!

Dejia2017 avatar Nov 10 '18 03:11 Dejia2017

is this java-api support GPS type?

Dejia2017 avatar Nov 10 '18 03:11 Dejia2017

It should work with GPS messages such as sensor_msgs/NavSatFix or gps_common/GPSFix.

Could you share your message definition or a small bag file that contains an example message?

pjreed avatar Nov 12 '18 19:11 pjreed