You have several options:
-
To build apollo on your computer, start by reviewing the README.md
-
To run the Apollo demo offline, go to: Apollo README.md.
-
To install and build Apollo on a vehicle, go to: Apollo 2.0 quick start.
-
To build the Apollo Kernel, the Robot Operating System (ROS), and Apollo, go to: apollo/docs/quickstart/apollo_1_0_quick_start_developer.md and refer to build kernel.
-
Carefully review the instructions in the documentation for the option that you selected to get started with the Apollo project.
-
Make sure that you follow the steps in the document exactly as they are written.
-
Use Ubuntu 14.04 as the build can only be implemented using Linux.
-
Verify that the Internet setting is correct on your computer.
-
Allocate more than 1GB of memory, at the recommended minimum, for your computer.
-
If roscore cannot start in apollo docker, you may need to tune the master start timeout value in ROS. You may want to check a related user-reported issue for more details.
Many build problems are related to the environment settings.
-
Run the script to get your environment:
bash scripts/env.sh >& env.txt
-
Provide the content of env.txt in your post.
Use these ports for HMI and Dreamview:
- 8888: Dreamview
The ROS package is downloaded when you start to build apollo:
bash apollo.sh build
.
-
Run the following command inside Docker to set up the ROS environment after the build is complete:
source /apollo/scripts/apollo_base.sh
-
Run ROS-related commands such as rosbag, rostopic and so on.
Follow these steps:
-
Log into Docker using the command:
bash docker/scripts/dev_into.sh
-
Run the command:
bash apollo.sh clean
Follow these steps:
-
Log into Docker using the command:
bash docker/scripts/dev_into.sh
-
Run the command:
bazel clean --expunge
The build command,bash apollo.sh build
, then downloads all of the dependent packages according to the WORKSPACE file.