Skip to content

HotzoneAuto/diamond-auto

Repository files navigation

Diamond Auto: An Autonomous Application Based On Cyber RT

Action Status

On site commissioning

20201117175018

20201117175058

Environment Setup

Code Clone

Clone master branch: git clone git@github.com:HotzoneAuto/diamond-auto.git

setup Docker Container

bash docker/scripts/cyber_start.sh
bash docker/scripts/cyber_into.sh

Build

build cyber

bazel build //cyber/...

build all modules

bash apollo.sh build

Development ToolChain

Protobuf file generation :

python3 scripts/proto_build_generator.py modules/canbus/proto/BUILD

Coding style

C/C++ coding style: Apollo adopted the Google C++ Style Guide. Make sure your code conforms to this style guide. You can use command bash apollo.sh lint to check if your code has any style problem. Or C++ Code format:

bash scripts/clang-format.sh

Python coding style: Apollo adopted the Google Python Style Guide. You can use the yapf command yapf -i --style='{based_on_style: google}' foo.py to format a file foo.py.