- A computer powerful enogh for running Apollo+LGSVL. (Or two computers: one for Apollo, one for LGSVL)
- antlr4
- rtamt
- python3
Make sure installation of version antlr-4.8(the latest version is not supported): Install By Package
Please refer to the github page for installation of RTAMT.
Please refer to the detailed documentation for co-simulation of Apollo with LGSVL. Set the LGSVL to API-Only mode.
-
Download and go to the root. Note that the source code should be downloaded and set up on the computer running Apollo.
git clone https://github.com/lawbreaker2021/LawBreaker-SourceCode.git cd LawBreaker-SourceCode
-
Connect our bridge to the LGSVL and Apollo: Go the bridge in the folder:/LawBreaker-SourceCode/bridge
cd /root_of_LawBreaker-SourceCode/bridge
Find file: bridge.py. There is class
Server
in bridge.py.Modify the
SIMULATOR_HOST
andSIMULATOR_PORT
ofServer
to your IP and port of LGSVL. Modify theBRIDGE_HOST
andBRIDGE_PORT
ofServer
to your IP and port of Apollo. -
Test the parser: If the support for parser is properly installed, we can test it by running:
cd /root_of_LawBreaker-SourceCode python3 monitor.py
If there is no errors and warnings, the parser is correct.
Open a terminal on the computer running Apollo.
cd /root_of_LawBreaker-SourceCode/bridge
python3 bridge.py
Keep it Running.
Open another terminal on the computer running Apollo.
cd /root_of_LawBreaker-SourceCode
python3 Law_Breaking_Fuzzing.py
If the brige is set properly, you will see the LGSVL and Apollo running. The results will be put into a folder: The_Results.