Apollo provides a method to run simulation if you do not have the required hardware.
Set up the docker release environment by following the instructions in the Install docker section of the Build and Release page.
Setup steps:
-
Start the docker release environment using the command:
bash docker/scripts/dev_start.sh
-
Enter the docker release environment:
bash docker/scripts/dev_into.sh
-
Build Apollo in the Container:
bash apollo.sh build
Note:
If you do not have a GPU, you can use the following script insteadbash apollo.sh build_cpu
-
Bootstrap to start ros call and Monitor module and Dreamview
bash scripts/bootstrap.sh
-
Now you can play the rosbag:
sudo python docs/demo_guide/rosbag_helper.py demo_2.0.bag #download rosbag rosbag play demo_2.0.bag --loop
The
--loop
option enables rosbag to keep playing the bag in a loop playback mode. -
Open Chrome and go to localhost:8888 to access Apollo Dreamview, which opens the screen below. The car in Dreamview is happy to move around!
Congratulations!