PW22-SBN-01 / dataset_pipeline

0 stars 0 forks source link

DBC File interpreter #8

Closed AdityaNG closed 2 years ago

AdityaNG commented 2 years ago

DBC files describe the data coming in from the vehicle. They provide a mapping form (CANMessageID, binaryData) to (messageName, interpretedDataObject). The messageName is a human readable name and interpretedDataObject can be something like a integer, float, string, dictionary, etc. (The names are not technical terms, just give an idea of what it maps)

Prefer using an existing module to do this.

Refer to the following:

  1. Python module cantools
  2. Convert .dbc files into .csv with python [closed]

https://github.com/PW22-SBN-01/dataset_pipeline/blob/65b028d65cdf096cbcab0a1455494a83b19c9cba/dataset_helper/dataset_iterators.py#L356-L395

Harsh188 commented 2 years ago

I can take this up

AdityaNG commented 2 years ago

Made some progress

https://github.com/PW22-SBN-01/dataset_pipeline/commit/7ece6895fc9dbc41711cbfcf843bf9225b6611ae

AdityaNG commented 2 years ago

Made the DBCInterpreter output data in dict format. Easy to use

https://github.com/PW22-SBN-01/dataset_pipeline/blob/be8d44c0f1e67dc85982739b65ab148906f3a488/dataset_helper/dataset_visualizer.py#L146-L154