Autoware learning and demo operation of NVIDIA Jetson Nano host - Chapter 7 - Autoware source code installation

Autoware source installation

create workspace

mkdir-p autoware.ai/src
cd autoware.ai

insert image description here

This is to download a file named autoware.ai.repos, which is a Python script developed for the convenience of managing multiple git libraries

wget -O autoware.ai.repos "https://gitlab.com/autowarefoundation/autoware.ai/autoware/raw/1.14.0/autoware.ai.repos?inline=false"

insert image description here


Download the git library file in autoware.ai.repos to the src folder

vcs import src < autoware.ai.repos

insert image description here

Initialize (here uses the small fish source in Chapter 2 of this series of articles)

sudo rosdepc init
rosdepc update

compile

rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO

insert image description here
It will take a little longer, wait a moment

AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release

insert image description here

But there may be problems during the operation
insert image description here


The solution is to install the corresponding ROS package, use the command

sudo apt-get install ros-melodic-(缺少的包的名字)


However, some error-reporting packages are generally not used. You can add the parameter [–continue-on-error] after the command to ignore the error report, and add it later if necessary.
Don't waste too much time where you don't need it.

AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --continue-on-error

insert image description here

The waiting time is also relatively long.
During this process, the machine crashed once and stuck twice. The computing power of the nano host is weak, so be patient. It is recommended to
add the parameter [-j 2] after the compilation command to only use the two cores of the CPU for compilation. It's slow, but it's not dead.
insert image description here

After completion, you can run autoware to see if the installation is successful

cd autaware.ai/
source install/setup.bash
roslaunch runtime_manager runtime_manager.launch

insert image description here

At this point, another Autoware terminal will be started
insert image description here

Autoware interface
insert image description here

At this point, the autoware installation is complete.

Guess you like

Origin blog.csdn.net/Xiong2840/article/details/124968945