- 时间:2024.11.5
- 作者:Unirobot
- 简介:哈哈哈,让世界都开源吧!
- 环境:
- 硬件:树霉派,编码电机*2,PC机(虚拟机ubuntu20.04),路由器(局域网)
- 软件:【下位机:Ubuntu20.04,Ros-noetic】【上位机:虚拟机VMware,Ubuntu20.04,Ros-noetic】
- 故事背景:我是unirobot第一款小车,名为Wr2,我会Gmapping-Hector-Cartographer导航哦,信我,不挂科。
- HardWare: PCB原理图
- 3D_Shell: 添加了3D打印文件地址
- catkin_ws: 小车底层代码(双轮差速小车,使用了PID调速)
- uni_robot: 上位机虚拟机导航相关代码(Gmapping,Hector,Cartographer)
- cartographer_ws:cartographer导航包(涵盖了Cartographer导航的算法,依赖包)
===================================================================================
- 远程启动底层驱动
roslaunch device uni_car.launch
- 启动gmapping建图服务
roslaunch slam uni_slam_gmapping.launch
- 启动键盘
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
- 遥控小车在环境中走一圈
- 生成2D地图
roslaunch slam save_gmapping_map.launch
- 远程启动底层驱动
roslaunch device uni_car.launch
- 启动导航
roslaunch navi uni_car_navigation_gmapping.launch
=================================================================================
- 远程启动底层驱动
roslaunch device device_actual.launch
- 启动hector建图服务
roslaunch slam uni_gmapping_hector.launch
- 启动键盘
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
- 遥控小车在环境中走一圈
- 生成2D地图
roslaunch slam save_hector_map.launch
- 远程启动底层驱动
roslaunch device device_actual.launch
- 启动导航
roslaunch navi uni_car_navigation_hector.launch
=================================================================================
- 远程启动底层驱动
roslaunch device device.launch
- 录制雷达包
roslaunch slam uni_record_bag.launch
- 启动键盘
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
- 遥控小车在环境中走一圈
- 处理bao包数据
roslaunch cartographer_ros uni_process_minimap.launch
- 停止建图
rosservice call /finish_trajectory 0
- 保存建图过程文件
rosservice call /write_state "{filename: '${HOME}/uni_robot/src/slam/bag/data.bag.pbstream', include_unfinished_submaps: "true"}"
- 生成2D地图
roslaunch cartographer_ros uni_create_minimap.launch
- 远程启动底层驱动
roslaunch device device_actual.launch
- 启动导航
roslaunch navi uni_car_navigation_cartographer.launch
=================================================================================