A meta-repository for the new Autoware architecture feasibility study created by Tier IV. For more details about the architecture itself, please read this overview.
WARNING: All source code relating to this meta-repository is intended solely to demonstrate a potential new architecture for Autoware, and should not be used to autonomously drive a real car!
NOTE: Some, but not all of the features within the AutowareArchitectureProposal.iv repository are planned to be merged into Autoware.Auto (the reason being that Autoware.Auto has its own scope and ODD which it needs to achieve, and so not all the features in this architecture proposal will be required).
- x86 CPU (8 cores)
- 16GB RAM
- [Optional] Nvidia GPU (4GB RAM)
- Although not required to run basic functionality, a GPU is mandatory in order to run the following components:
- lidar_apollo_instance_segmentation
- traffic_light_ssd_fine_detector
- cnn_classifier
- Although not required to run basic functionality, a GPU is mandatory in order to run the following components:
Performance will be improved with more cores, RAM and a higher-spec graphics card.
- Ubuntu 18.04
- Nvidia driver
The following software will be installed during the installation process, so please confirm their licenses first before proceeding.
If the CUDA or TensorRT frameworks have already been installed, we strongly recommend uninstalling them first.
- Set up the Autoware repository
sudo apt install -y python3-vcstool
mkdir -p ~/workspace
cd ~/workspace
git clone [email protected]:tier4/AutowareArchitectureProposal.proj.git
cd AutowareArchitectureProposal.proj
mkdir -p src
vcs import src < autoware.proj.repos
- Run the setup script to install CUDA, cuDNN 7, osqp, ROS and TensorRT 7, entering 'y' when prompted (this step will take around 45 minutes)
./setup_ubuntu18.04.sh
ROS installation alone takes around 20 minutes and may fail during this step. In that event, please follow steps 1.2 to 1.4 of the ROS Melodic installation guide and then re-run the script in step 2 above.
- Build the source code (this will take around 15 minutes)
source ~/.bashrc
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-skip-building-tests
Several modules will report stderror output, but these are just warnings and can be safely ignored.
Prepare launch and vehicle description files according to the sensor configuration of your hardware.
The following files are provided as samples:
- Download the sample pointcloud and vector maps, unpack the zip archive and copy the two map files to the same folder.
- Download the sample rosbag.
- Open a terminal and launch Autoware
cd ~/workspace/AutowareArchitectureProposal.proj
source install/setup.bash
roslaunch autoware_launch logging_simulator.launch map_path:=/path/to/map_folder vehicle_model:=lexus sensor_model:=aip_xx1 rosbag:=true
- Open a second terminal and play the sample rosbag file
cd ~/workspace/AutowareArchitectureProposal.proj
source install/setup.bash
rosbag play --clock -r 0.2 /path/to/sample.bag
- Focus the view on the ego vehicle by changing the
Target Frame
in the RViz Views panel fromviewer
tobase_link
.
- Sample map and rosbag: © 2020 Tier IV, Inc.
- Due to privacy concerns, the rosbag does not contain image data, and so traffic light recognition functionality cannot be tested with this sample rosbag. As a further consequence, object detection accuracy is decreased.
- Download the sample pointcloud and vector maps, unpack the zip archive and copy the two map files to the same folder.
- Open a terminal and launch Autoware
cd ~/workspace/AutowareArchitectureProposal.proj
source install/setup.bash
roslaunch autoware_launch planning_simulator.launch map_path:=/path/to/map_folder vehicle_model:=lexus sensor_model:=aip_xx1
- Set an initial pose for the ego vehicle
- a) Click the
2D Pose estimate
button in the toolbar, or hit theP
key - b) In the 3D View pane, click and hold the left-mouse button, and then drag to set the direction for the initial pose.
- a) Click the
- Set a goal pose for the ego vehicle
- a) Click the
2D Nav Goal
button in the toolbar, or hit theG
key - b) In the 3D View pane, click and hold the left-mouse button, and then drag to set the direction for the goal pose.
- a) Click the
- Engage the ego vehicle.
- a) Open the autoware_web_controller in a browser.
- b) Click the
Engage
button.
- Sample map: © 2020 Tier IV, Inc.
For more information about running the AutowareArchitectureProposal code, along with more verbose instructions and screenshots, please refer to the detailed tutorials here. These tutorials were originally created for a workshop given at the 2020 Arm DevSummit, and have been adapted for use here.
For anyone who would like to use the features of this architecture proposal with existing Autoware.Auto modules right now, ros_bridge can be used.
Until the two architectures become more aligned, message type conversions are required to enable communication between the Autoware.Auto and AutowareArchitectureProposal modules and these will need to be added manually.
- To set up Autoware.Auto, please refer to the Autoware.Auto installation guide.
- To set up ros_bridge, please follow the installation instructions on the ros_bridge GitHub repository.