Skip to content

wheelos/whl-dbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gen Vehicle Protocol Tool

adbctool is a convinent tool to let you quickly generate a nearly complete code for a new vehicle for Apollo.

You only have to do is to have the dbc file (which is a communication protocol for the car, which is usually made by the vehicle integrated company), and write a less 10 lines config for generate an encode/decode.

How to get vehicle's DBC file

  • opendbc is a project that opens the vehicle dbc protocol.
  • openvehicles is an open car project that contains any vehicle information you want to know.
  • whl-vehicles Apollo vehicle protocols based by opendbc.

Quick start

Install

You can install adbctool by following cmd.

pip3 install adbctool

Example

Generate c++ code based on dbc file.

  • vehicle dbc file : vehicle's dbc file
  • vehicle type: vehicle type
# adbctool -f vehicle.dbc -t vehicle_type
adbctool -f test/acura_ilx_2016_nidec.dbc -t acura_ilx