Baidu Apollo autonomous driving platform install and offline demo show on ubuntu 16.04 / 14.04 - For Apollo 3.0
Install Dependence:
Dependence:
Ubuntu
ROS
Docker
Git-LFS
Apollo code
Step 1: Install the ubuntu 16.04 (or dual system)
Step 1: Install the ubuntu 16.04 (or dual system)
(if you already have the system of ubuntu 14.04, you need to install ROS indigo, Other installation steps are the same to ubuntu 16.04. )
Step 2: Install ROS (Many tutorials on the internet)
Step 2: Install ROS (Many tutorials on the website)
(ROS indigo edition for ubuntu 14.04, ROS Kinetic edition for ubuntu 16.04)
Step 3: Install Apollo 3.0
Step 3: Install Apollo 3.0 (Apollo 3.5 is different from the Apollo 3.0, Apollo 3.5 use the Cyber RT substitute the ROS that is used in previous versions,this a business decision.)
Download the Apollo code :
You can git clone Apollo code or download directly.
https://github.com/ApolloAuto/apollo/tree/v3.0.0
Install the Git LFS :
sudo apt-get update
sudo apt-get install curl
#Required for Ubuntu 14.04 / 16.04.
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
#Ubuntu 14.04 / 16.04 / 18.04.
sudo apt-get install -y git-lfs
Install the docker environment :
bash docker/setup_host/install_docker.sh
docker ps
Then run the following steps: (These steps will spend several hours, be patient.)
#Start container
bash docker/scripts/dev_start.sh
#Get into the container
bash docker/scripts/dev_into.sh
#Build modules
bash apollo.sh build
#open the HMI
bash scripts/bootstrap.sh
#run roabag
rosbag play -l ./docs/demo_guide/demo_2.5.bag
Run Offline Demo
(Every time when we run the offline demo, we need to run the following steps. It will spend several minutes.)
First you need to use the linux command “cd” to the Apollo directory. (cd path/to/apollo)
Then :
bash docker/scripts/dev_start.sh
bash docker/scripts/dev_into.sh
bash apollo.sh build
#Start Apollo
bash scripts/bootstrap.sh
Then :
Open the web link: http://localhost:8888/
Then Run demo:
rosbag play -l ./docs/demo_guide/demo_2.5.bag
(you need to download the package to the directory of ” /docs/demo_guide “.
You can find the download links of demo 1.0 ~ 2.5 from https://github.com/ApolloAuto/apollo/blob/v3.0.0/docs/demo_guide/rosbag_helper.py)
Apollo 3.0 demo data format is rosbag. (demo_2.5.bag)
Apollo 3.5 demo data format is different from the prior editions. (demo_3.5.record)
Baidu Apollo simulation scenarios
Many simulation scenarios you can login and find from the following link:
http://apollo.auto/platform/simulation.html
FYI about Apollo installation:
- For Apollo demo, we don’t need to install Apollo Kernel. But for a car ,we must install Apollo kernel.
- We don’t need to install the apollo-platform for ubuntu 16.04. maybe we still don’t need to install Apollo-platform for ubuntu 14.04. We just show offline demo.
https://github.com/ApolloAuto/apollo-platform - Many errors during the installation are mainly related to the computer hardware platform.(various strange problems)