news 2026/7/10 11:01:13

ros noetic使用pointcloud_to_laserscan 将2d激光雷达与深度摄像头数据融合

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
ros noetic使用pointcloud_to_laserscan 将2d激光雷达与深度摄像头数据融合

配置文件

src/wpb_home/wpb_home_tutorials/nav_depth/local_costmap_params.yaml

local_costmap: global_frame: odom robot_base_frame: base_footprint static_map: false rolling_window: true width: 3.0 height: 3.0 update_frequency: 10.0 publish_frequency: 10.0 transform_tolerance: 1.0 plugins: - {name: obstacle_layer, type: "costmap_2d::ObstacleLayer"} - {name: inflation_layer, type: "costmap_2d::InflationLayer"}

配置文件

src/wpb_home/wpb_home_tutorials/nav_depth/costmap_common_params.yaml

robot_radius: 0.25 obstacle_layer: obstacle_range: 3.0 raytrace_range: 6.0 observation_sources: base_lidar depth_scan base_lidar: data_type: LaserScan topic: /scan marking: true clearing: true depth_scan: data_type: LaserScan topic: /depth_scan marking: true clearing: true inflation_layer: inflation_radius: 0.5

配置文件

src/wpb_home/wpb_home_tutorials/nav_depth/global_costmap_params.yaml

global_costmap: global_frame: map robot_base_frame: base_footprint static_map: false rolling_window: true update_frequency: 1.0 publish_frequency: 1.0 transform_tolerance: 1.0 recovery_behaviors: - name: 'conservative_reset' type: 'clear_costmap_recovery/ClearCostmapRecovery' - name: 'rotate_recovery' type: 'rotate_recovery/RotateRecovery' - name: 'aggressive_reset' type: 'clear_costmap_recovery/ClearCostmapRecovery' conservative_reset: reset_distance: 2.0 layer_names: ["obstacle_layer"] aggressive_reset: reset_distance: 0.0 layer_names: ["obstacle_layer"]

配置文件

src/wpb_home/wpb_home_tutorials/nav_depth/depth_to_scan.yaml

target_frame: base_footprint transform_tolerance: 0.3 min_height: 0.10 max_height: 2.00 angle_min: -1.57 angle_max: 1.57 angle_increment: 0.005 scan_time: 0.1 range_min: 0.4 range_max: 6.0 use_inf: true

launch文件

<launch> <!-- 载入 机器人 和 RoboCup@Home 的仿真场景 --> <include file="$(find wpr_simulation)/launch/wpb_stage_robocup.launch"/> <!-- Gmapping --> <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping"/> <!-- Rviz --> <arg name="rvizconfig" default="$(find wpr_simulation)/rviz/slam.rviz" /> <node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /> <!-- 手柄控制 --> <node respawn="true" pkg="joy" type="joy_node" name="joy_node" > <param name="dev" type="string" value="/dev/input/js0" /> <param name="deadzone" value="0.12" /> </node> <param name="axis_linear" value="1" type="int"/> <param name="axis_angular" value="0" type="int"/> <param name="scale_linear" value="0.5" type="double"/> <param name="scale_angular" value="1" type="double"/> <node pkg="wpr_simulation" type="teleop_js_node" name="teleop_js_node"/> <node pkg="move_base" type="move_base" name="move_base"> <rosparam file="$(find wpb_home_tutorials)/nav_depth/costmap_common_params.yaml" command="load" ns="global_costmap" /> <rosparam file="$(find wpb_home_tutorials)/nav_depth/costmap_common_params.yaml" command="load" ns="local_costmap" /> <rosparam file="$(find wpb_home_tutorials)/nav_depth/global_costmap_params.yaml" command="load" /> <rosparam file="$(find wpb_home_tutorials)/nav_depth/local_costmap_params.yaml" command="load" /> <param name="base_global_planner" value="global_planner/GlobalPlanner" /> <param name="base_local_planner" value="wpbh_local_planner/WpbhLocalPlanner" /> </node> <node pkg="pointcloud_to_laserscan" type="pointcloud_to_laserscan_node" name="pointcloud_to_laserscan" output="screen"> <!-- name="pointcloud_to_laserscan" 将命名空间载入 rosparam,所以--> <!-- 载入参数 --> <rosparam file="$(find wpb_home_tutorials)/nav_depth/depth_to_scan.yaml" /> <!-- 输入点云 --> <remap from="cloud_in" to="/kinect2/sd/points"/> <!-- 输出 LaserScan --> <remap from="scan" to="/depth_scan"/> </node> <node pkg="wpr_simulation" type="demo_map.py" name="explore_then_return" output="screen" > </node> <node pkg="wpr_simulation" type="save_map_and_start_amcl.py" name="save_map_and_start_amcl" output="screen" > </node> <node pkg="wpr_simulation" type="initialpose_service.py" name="initialpose_service" output="screen" > </node> </launch>
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/9 15:00:32

内容解锁神器终极指南:5步轻松绕过付费墙限制

内容解锁神器终极指南&#xff1a;5步轻松绕过付费墙限制 【免费下载链接】bypass-paywalls-chrome-clean 项目地址: https://gitcode.com/GitHub_Trending/by/bypass-paywalls-chrome-clean 想要免费阅读被付费墙阻挡的精彩内容吗&#xff1f;在这个信息获取成本不断攀…

作者头像 李华
网站建设 2026/7/10 7:46:35

Honey Select 2 HF Patch终极优化指南:从入门到精通

Honey Select 2 HF Patch终极优化指南&#xff1a;从入门到精通 【免费下载链接】HS2-HF_Patch Automatically translate, uncensor and update HoneySelect2! 项目地址: https://gitcode.com/gh_mirrors/hs/HS2-HF_Patch 还在为Honey Select 2游戏体验不佳而困扰吗&…

作者头像 李华
网站建设 2026/7/10 0:02:14

Termius中文汉化版:移动端SSH客户端的本土化革命

Termius中文汉化版&#xff1a;移动端SSH客户端的本土化革命 【免费下载链接】Termius-zh_CN 汉化版的Termius安卓客户端 项目地址: https://gitcode.com/alongw/Termius-zh_CN 还在为移动端SSH客户端的英文界面而头疼吗&#xff1f;面对复杂的专业术语和操作提示&#…

作者头像 李华
网站建设 2026/7/9 10:21:13

WinFsp虚拟化技术企业级应用终极指南:快速部署与性能优化

WinFsp虚拟化技术企业级应用终极指南&#xff1a;快速部署与性能优化 【免费下载链接】winfsp 项目地址: https://gitcode.com/gh_mirrors/win/winfsp 你是否曾为办公室电脑管理而头疼&#xff1f;&#x1f914; 每次新员工入职都要花半天时间安装系统&#xff0c;软件…

作者头像 李华
网站建设 2026/7/9 9:13:49

ELK日志分析系统部署

前言 在当今大数据时代&#xff0c;日志数据已成为企业运维监控、业务分析和安全审计的核心资产。系统日志、应用程序日志、安全日志等蕴含着服务器运行状态、用户行为轨迹、潜在故障隐患等关键信息&#xff0c;是企业保障系统稳定运行、优化业务流程、防范安全风险的重要依据。…

作者头像 李华
网站建设 2026/7/8 20:34:30

HEIF格式转换利器:Windows平台高效批量照片处理解决方案

HEIF格式转换利器&#xff1a;Windows平台高效批量照片处理解决方案 【免费下载链接】HEIF-Utility HEIF Utility - View/Convert Apple HEIF images on Windows. 项目地址: https://gitcode.com/gh_mirrors/he/HEIF-Utility 还在为iPhone拍摄的HEIF格式照片在Windows电…

作者头像 李华