Apollo has been initiated to provide an open, comprehensive, and reliable software platform for its partners in the automotive and autonomous-driving industries. Partners can use the Apollo software platform and the reference hardware that Apollo has certified as a template to customize in the development of their own autonomous vehicles.
This section includes:
- Download the Apollo Release Package
- Set up the Docker environment
- Support a new Vehicle in DreamView
- Install Apollo Kernel
- Run Apollo in Ubuntu 16
Before getting started, please make sure you have installed Ubuntu Linux 14.04.3 and the Apollo Kernel following the steps in the Apollo core Software Installation Guide.
-
Download Apollo source code from the github source and check out the correct branch:
git clone [email protected]:ApolloAuto/apollo.git cd apollo git checkout [release_branch_name]
-
Set up environment variable
APOLLO_HOME
by the following command:echo "export APOLLO_HOME=$(pwd)" >> ~/.bashrc && source ~/.bashrc
-
Open a new terminal or run
source ~/.bashrc
in an existing terminal.
In the following sections, it is assumed that the Apollo directory is located in $APOLLO_HOME
.
The Docker container is the simplest way to set up the build environment for Apollo.
For more information, see the detailed Docker tutorial here.
- Please follow the official guide to install the docker-ce 19.03+.
Don't forget the post-installation steps for Linux.
-
After the installation, log out and then log back into the system to enable Docker.
-
(Optional) If you already have Docker installed (before you installed the Apollo Kernel), add the following line in
/etc/default/docker
:DOCKER_OPTS = "-s overlay"
-
Install latest nvidia-container-toolkit by following the official doc.
We encourage you to continue the Build process using Build the Dev docker environment if you have not already set it up.
In order to support a new vehicle in DreamView, please follow the steps below:
-
Create a new folder for your vehicle under
modules/calibration/data
-
There is already a sample file in the
modules/calibration/data
folder namedmkz_example
. Refer to this structure and include all necessary configuration files in the same file structure as “mkz_example”. Remember to update the configuration files with your own parameters if needed. -
Restart DreamView and you will be able to see your new vehicle (name is the same as your newly created folder) in the selected vehicle.
The Apollo runtime in the vehicle requires the Apollo Kernel. It is strongly recommended to install the pre-built kernel.
You get access to and install the pre-built kernel using the following commands.
- Download the release packages from the release section on GitHub:
https://github.com/ApolloAuto/apollo-kernel/releases
- Install the kernel after having downloaded the release package:
tar zxvf linux-4.4.32-apollo-1.5.0.tar.gz
cd install
sudo bash install_kernel.sh
- Reboot your system using the
reboot
command. - [Optional - if you are using CAN card for interface] Build the CAN driver source code, according to the vendor's instructions
If you have modified the kernel, or the pre-built kernel is not the best for your platform, you can build your own kernel using the following steps:
- Clone the code from the repository
git clone https://github.com/ApolloAuto/apollo-kernel.git
cd apollo-kernel
- Add the CAN driver source code according to vendor's instruction
- Build the kernel using the following command:
bash build.sh
- Install the kernel using the steps for a pre-built Apollo Kernel as described in the previous section.
Please refer to How to run Apollo with Ubuntu 16