官方部署文档:Source installation - Autoware Documentation (autowarefoundation.github.io)
在执行./setup-dev-env.sh 安装ansible隔离环境是报错如下
Installing to existing venv 'ansible'
Fatal error from pip prevented installation. Full pip output in file:
/home/xxx/.local/pipx/logs/cmd_2023-11-08_21.07.19_1_pip_errors.log
Not removing existing venv /home/xxx/.local/pipx/venvs/ansible because it was not created in this session
Error installing ansible from spec 'ansible==6.*'.
查看log文件报错如下
PIP STDOUT
----------
PIP STDERR
----------
/home/xxx/.local/pipx/venvs/ansible/bin/python: No module named pip
可以看到在ansible/bin/python这个环境下没有 pip
可以使用./python -m ensurepip --default-pip安装pip
colcon单独编译一个模块
例如单独编译behavior_path_planner这个模块 参数 --packages-up-to 是包括其依赖
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to behavior_path_planner
colcon内存爆满时可选择单线程编译增加参数
--executor sequential
rosdep update --include-eol-distros
编译时需要安装的依赖:
sudo apt install ros-galactic-point-cloud-msg-wrapper os-galactic-filters libpacp-dev ros-galactic-diagnostic-updater ros-galactic-osqp-vendor
libpcl-de librange-v3-dev ros-galactic-geographic-msgs libpugixml-dev ros-galactic-nav2-msgs libgeographic-dev libcpprest-dev ros-galactic-lanelet2
ros-galactic-pcl-ros ros-galactic-osrf-testing-tools-cpp libyaml-cpp-dev ros-galactic-octomap-* nlohmann-json3-dev libcgal-dev ros-galactic-diagnostic-aggregato
ros-galactic-nav2-costmap-2d
标签:ubuntu20,galactic,--,auto,dev,ansible,autoware,pip,ros From: https://www.cnblogs.com/duzw/p/17812401.html