The documentation about Apollo project from github is vague and misleading. It wastes a lot of time to find where to run the command and how to solve the problems for me.
The source of the project is here.
(This is mainly based on this doc on github)
bash docker/scripts/dev_start.sh
bash docker/scripts/dev_into.sh
sudo
in this container): bash apollo build_opt_gpu
bash scripts/bootstrap.sh
cd docs/demo_guide/
python3 rosbag_helper.py demo_3.5.record
source cyber/setup.bash
mainboard: error while loading shared libraries: libboost_system.so.1.54.0: cannot open shared object file: No such file or directory
Add the path of boost
library into dynamic library path LD_LIBRARY_PATH
in cyber/setup.bash
. Now the LD_LIBRARY_PATH
should look like:root@in_dev_docker:/apollo# echo $LD_LIBRARY_PATH
/usr/local/Qt5.5.1/5.5/gcc_64/lib:/usr/local/Qt5.5.1/5.5/gcc_64/lib:/usr/local/Qt5.5.1/5.5/gcc_64/lib:/usr/local/Qt5.5.1/5.5/gcc_64/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:./usr/local/apollo/boost/lib/:/usr/local/apollo/boost/lib/:/usr/local/apollo/boost/lib/
Don’t forget to source cyber/setup.bash
.cyber_recorder play -f docs/demo_guide/demo_3.5.record --loop
sudo apt install nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker