环境:Ubuntu 22.04
ROS:Humble
安装依赖
1 2 3 4
| sudo apt update sudo apt install libusb-dev ros-humble-desktop-full ros-humble-joy ros-humble-gazebo-msgs \ ros-humble-gazebo-plugins ros-humble-gazebo-ros ros-humble-gazebo-ros2-control \ ros-humble-gazebo-ros-pkgs python3-colcon-common-extensions
|
如果是Ubuntu 22.04 ROS为jazzy需要安装下面的依赖
1 2
| sudo apt update sudo apt install ros-jazzy-desktop-full ros-jazzy-pcl-ros libpcl-dev
|
克隆代码
1 2 3
| cd ~/ros2_ws/src git clone https://github.com/HongbiaoZ/autonomous_exploration_development_environment.git git checkout humble
|
部署仿真环境
1
| ./src/vehicle_simulator/mesh/download_environments.sh
|
如果下载失败,可以手动下载
https://drive.google.com/file/d/1GMT8tptb3nAb87F8eFfmIgjma6Bu0reV/view?usp=sharing
解压到src/vehicle_simulator/mesh/
目录下
正确解压目录结构如下:
1 2 3 4 5 6
| src/vehicle_simulator/mesh/ indoor/ forest/ garage/ campus/ tunnel/
|
部署FAR_Planner
1 2 3 4
| cd ~/ros2_ws/src/autonomous_exploration_development_environment/src/ git clone https://github.com/MichaelFYang/far_planner.git git checkout humble-jazzy
|
编译
1 2
| cd ~/ros2_ws colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
|
运行
1 2 3
| source install/setup.bash ros2 launch vehicle_simulator system_garage.launch ros2 launch far_planner far_planner.launch.py
|
参考
https://drive.google.com/file/d/1a01RSrPFan9SV2g2BFP_8GGtnamAdGIc/view