Autoware

Autoware V2X

Our lab is co-leading the AutowareV2X project, and has successfully set up smart intersection devices to enhance real-world testing environments. We've incorporated scenarios involving walking pedestrians to simulate realistic urban traffic conditions. Autoware V2X project aims to innovate vehicular communication systems, focusing on improving safety and efficiency at urban intersections through vehicle-to-everything (V2X) communications.

OpenAD Kit

We are also actively involved in the OpenAD Kit project, focusing on containerizing algorithms to facilitate rapid and timely updates. The OpenAD Kit project aims to democratize autonomous driving (AD) systems by enhancing integration between cloud and edge computing, thus bringing the best practices of Software Defined Vehicle (SDV) development into real world. This approach significantly lowers the threshold for developing and deploying the related software stack, making it more accessible for broader adoption and innovation in the field of autonomous driving technology.

AutowareUniverse-CARLA Bridge

The AutowareUniverse-CARLA Bridge connects the AutowareUniverse autonomous driving system with the CARLA simulator. It enables real-time data exchange between simulation and perception/planning modules. This bridge allows testing and development of autonomous driving features in a virtual environment. It serves as a foundation for integrating simulation-based workflows with real-world autonomous software stacks.

Mac tutorial:

Section A: docker installation link, and some other prerequisites

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install cmake coreutils wget git

brew install --cask docker

brew install –cask xquartz  # May not be necessary

conda create -n tutorial python==3.10 (mac doesn't support python version earlier than 3.7)

docker run hello-world

xhost +local:root

Settings - Resources - Advanced - Memory Limit, set to 16gb, otherwise the compilation will fail due to fatal error: cc1plus.

And please change the screen resolution as high as possible for better visualization.

unzip ~/Downloads/UDAutoware.zip -d ~/Desktop

unzip ~/Downloads/autoware_map.zip -d ~/Desktop

unzip ~/Downloads/AutowareUniverse-Carla.zip -d ~/Desktop

and use this command:

docker pull bytian/autoware_mac_aarch64:v1

docker run -it --rm \

-p 6080:80 \

--security-opt seccomp=unconfined \

--shm-size=512m \

-v ~/Desktop/UDAutoware:/home/carla/UDAutoware \

-v ~/Desktop/autoware_map:/home/carla/autoware_map \

-v ~/Desktop/AutowareUniverse-Carla:/home/carla/AutowareUniverse-Carla \

bytian/autoware_mac_aarch64:v1

colcon build –symlink-install –cmake-args -DCMAKE_BUILD_TYPE=Release –parallel-workers 2 (short of memory)

cd ../AutowareUniverse-Carla && colcon build

source /home/carla/UDAutoware/install/setup.bash && source /home/carla/AutowareUniverse-Carla/install/setup.bash

and start autoware using:

ros2 launch autoware_launch autoware.launch.xml map_path:=/home/carla/autoware_map/carla_map/Town10 vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit



Ubuntu tutorial:

Section A: docker installation link

sudo apt update

sudo apt install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo systemctl status docker

docker run hello-world

exit

to close this sample docker.

sudo apt-get install python3-rocker


Section B: CARLA and Autoware preparation and compilation

docker pull carlasim/carla:0.9.15

docker run --privileged --gpus all --net=host -e DISPLAY=$DISPLAY carlasim/carla:0.9.15 /bin/bash ./CarlaUE4.sh -carla-rpc-port=2000

docker pull williamhecoin/blueice:hydrau-env

Google drive link for Autoware, Autoware_map, AutowareUniverse-Carla 

xhost +local:root

rocker --x11 --nvidia --network=host --volume ~/autoware:/home/carla/autoware --volume ~/autoware_map:/home/carla/autoware_map --volume ~/AutowareUniverse-Carla:/home/carla/AutowareUniverse-Carla -- williamhecoin/blueice:hydrau-env 

pip3 install carla pynput pyzmq 

colcon build

And then, please source install/setup.bash

colcon build

And then, please source install/setup.bash

ros2 launch autoware_launch autoware.launch.xml map_path:=/home/carla/autoware_map/carla_map/Town10 vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit

xhost +local:root

docker ps

docker exec -it _____ /bin/bash

source /home/carla/autoware/install/setup.bash && source /home/carla/AutowareUniverse-Carla/install/setup.bash

to source the environment first.

ros2 run vehicle host_vehicle

And you may see a little vehicle spawned at a fixed point on the CARLA map, and Autoware.universe is publishing topics about surrounding environment.

Section D: CRI calculation demo