0dfea47a创建于 2025年4月14日历史提交

从源码编译 slam_gmapping

相关仓库:gitee仓库

克隆仓库并编译

mkdir slam_gmapping
cd slam_gmapping
git clone https://gitee.com/src-openeuler/slam_gmapping.git
git clone https://gitee.com/src-openeuler/openslam_gmapping.git
cd slam_gmapping
tar -xzf ros-humble-slam-gmapping_1.4.2.orig.tar.gz
cd ../openslam_gmapping
tar -xzf ros-humble-openslam-gmapping_0.2.1.orig.tar.gz
cd ../
colcon build
source install/setup.bash
ros2 pkg list | grep slam

修改

运行

ros2 launch slam_gmapping slam_gmapping.launch.py

出现报错

img_2.png

[ERROR] [launch]: Caught exception in launch (see debug for traceback): __init__() missing 1 required keyword-only argument: 'node_executable'

修改launch文件中 将node_executable=....改成executable

img.png

运行成功

img_3.png