elevation_mapping使用笔记_elevation mapping-程序员宅基地

技术标签: legged robot  

节点相关介绍: elevation_mapping

这是该工程最主要的节点,该节点主要使用距离传感器,机器人姿态、方差信息,建立一个具有方差的高程图

订阅话题:

发布话题:

  • elevation_map (grid_map_msg/GridMap)

    整个(融合)高程图。 它会定期发布(请参阅fused_map_publishing_rate参数)或者在调用trigger_fusion服务之后发布。

  • elevation_map_raw (grid_map_msg/GridMap)

    融合之前的原始地图

Services

  • trigger_fusion (std_srvs/Empty)

    触发整个高程图的融合过程并将其发布。 例如,您可以从控制台触发地图融合步骤

      rosservice call /elevation_mapping/trigger_fusion
    
  • get_submap (grid_map_msg/GetGridMap)

    获取所请求位置和大小的融合高程子图。 例如,您可以在位置(-0.5,0.0)和大小(0.5,1.2)处获取融合高程子图

      rosservice call -- /elevation_mapping/get_submap -0.5 0.0 0.5 1.2 []
    
  • clear_map (std_srvs/Empty)

    启动清除整个地图以进行重置

      rosservice call /elevation_mapping/clear_map
    
  • save_map (grid_map_msgs/ProcessFile)

    将当前融合的网格图和原始网格图保存到rosbag文件中。 字段topic_name必须是基本名称,即没有前导斜杠字符(/)。 如果字段topic_name为空,则默认使用elevation_map。

      rosservice call /elevation_mapping/save_map "file_path: '/home/integration/elevation_map.bag' topic_name: ''"
    

参数:

  • point_cloud_topic (string, default: "/points")

    距离测量话题的名称

  • robot_pose_topic (string, default: "/robot_state/pose")

    机器人姿势和协方差话题的名称

  • base_frame_id (string, default: "/robot")

    The id of the robot base tf frame.

  • map_frame_id (string, default: "/map")

    The id of the tf frame of the elevation map.

  • track_point_frame_id (string, default: "/robot")

    The elevation map is moved along with the robot following a track point. This is the id of the tf frame in which the track point is defined.

  • track_point_xtrack_point_ytrack_point_z (double, default: 0.0, 0.0, 0.0)

    The elevation map is moved along with the robot following a track point. This is the position of the track point in the track_point_frame_id.

  • robot_pose_cache_size (int, default: 200, min: 0)

    机器人位姿缓存的大小

  • min_update_rate (double, default: 2.0)

    从机器人姿态估计的新测量值更新高程图的最小更新速率(以Hz为单位)

  • fused_map_publishing_rate (double, default: 1.0)

    The rate for publishing the entire (fused) elevation map.

  • relocate_rate (double, default: 3.0)

    The rate (in Hz) at which the elevation map is checked for relocation following the tracking point.

  • length_in_xlength_in_y (double, default: 1.5, min: 0.0)

    The size (in m) of the elevation map.

  • position_xposition_y (double, default: 0.0)

    高程图中心的位置,在高程图框架中。 此参数设置生成的高程图与其发布的帧之间的平面位置偏移(map_frame_id)。 仅在未使用track_point_frame_id参数时才有用。

  • resolution (double, default: 0.01, min: 0.0)

    The resolution (cell size in m/cell) of the elevation map.

  • min_variancemax_variance (double, default: 9.0e-6, 0.01)

    高程图方差数据的最小值和最大值。

  • mahalanobis_distance_threshold (double, default: 2.5)

    高程图中的每个单元格的高度值都存在不确定性。 根据现有高度分布的Mahalonobis距离和新测量值,输入数据与现有估计值融合,覆盖或忽略。 此参数确定马哈拉诺比斯距离的阈值,该阈值确定如何处理传入的测量。

  • sensor_processor/ignore_points_above (double, default: 0.4)    深度传感器引入的点高度的硬阈值。 在数据收集步骤中,高度超过此阈值的点将被视为无效。

  • multi_height_noise (double, default: 9.0e-7)

    噪声添加到高于该特定位置的当前高程图的测量值。 仅当点落在马哈拉诺比斯距离阈值上时才执行此噪声添加过程。 较高的值对于更快地适应动态环境(例如,移动物体)是有用的,但是可能在高度估计中引起更多噪声。

  • min_horizontal_variancemax_horizontal_variance (double, default: pow(resolution / 2.0, 2), 0.5)

    高程图水平方差数据的最小值和最大值。

  • enable_visibility_cleanup (bool, default: true)

    启用/禁用单独的线程,该线程通过光线跟踪从传感器帧中删除不再可见的地图中的元素。

  • visibility_cleanup_rate (double, default: 1.0)

    The rate (in Hz) at which the visibility constraint is performed.

  • scanning_duration (double, default: 1.0)

    The sensor's scanning duration (in s) which is used for the visibility cleanup. Set this roughly to the duration it takes between two consecutive full scans (e.g. 0.033 for a ToF camera with 30 Hz, or 3 s for a rotating laser scanner). Depending on how dense or sparse your scans are, increase or reduce the scanning duration. Smaller values lead to faster dynamic object removal and bigger values help to reduce faulty map cleanups.传感器的扫描持续时间(以s为单位),用于清除可见性。 将其大致设置为两次连续完整扫描之间的持续时间(例如,对于30Hz的ToF相机为0.033,对于旋转激光扫描仪为3s)。 根据扫描的密集程度或稀疏程度,增加或减少扫描持续时间。 较小的值可以更快地移除动态对象,更大的值有助于减少错误的映射清理。

  • sensor_cutoff_min_depthsensor_cutoff_max_depth (double, default: 0.2, 2.0)

    距离传感器测量长度的最小值和最大值。 超出此间隔的测量值将被忽略。

  • sensor_model_normal_factor_asensor_model_normal_factor_bsensor_model_normal_factor_csensor_model_lateral_factor (double)

    传感器噪声模型的数据。



基本用法——学习使用demo

使用simple_demo.launch学习

打开simple_demo.launch

<launch>

  <!-- Elevation mapping node -->
  <node pkg="elevation_mapping" type="elevation_mapping" name="elevation_mapping" output="screen">
    <rosparam command="load" file="$(find elevation_mapping_demos)/config/robots/simple_demo_robot.yaml" />
    <rosparam command="load" file="$(find elevation_mapping_demos)/config/elevation_maps/simple_demo_map.yaml" />
    <rosparam command="load" file="$(find elevation_mapping)/config/sensor_processors/kinect_nguyen_et_al.yaml" />
  </node>

  <!-- Launch visualizations for the resulting elevation map -->
  <include file="$(find elevation_mapping_demos)/launch/visualization.launch" />

  <!-- Launch RViz with the demo configuration -->
  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find elevation_mapping_demos)/rviz/elevation_map_visualization.rviz" />

</launch>

可以看到主要执行的node为elevation_mapping节点,需要传入的参数为

  • simple_demo_robot.yaml
point_cloud_topic: "/points"  # 距离测量话题的名称
map_frame_id: "map"           # The id of the tf frame of the elevation map.
robot_base_frame_id: "base"     
robot_pose_with_covariance_topic: "/pose"  
robot_pose_cache_size: 200    # 机器人位姿缓存的大小
track_point_frame_id: "base"  # The elevation map is moved along with the robot following a track point. This is the id of the tf frame in which the track point is defined.
track_point_x: 0.0
track_point_y: 0.0
track_point_z: 0.0

需要传入点云的话题名称/points,位姿的协方差矩阵/pose

  • simple_demo_map.yaml
length_in_x: 2.5   # The size (in m) of the elevation map.
length_in_y: 2.5   # The size (in m) of the elevation map.


# 高程图中心的位置,在高程图框架中。 此参数设置生成的高程图与其发布的帧之间的平面位置偏移(map_frame_id)仅在未使用track_point_frame_id参数时才有用。
position_x: 0.0
position_y: 0.0
resolution: 0.01
min_variance: 0.000009
max_variance: 0.01

# 高程图中的每个单元格的高度值都存在不确定性。 根据现有高度分布的Mahalonobis距离和新测量值,输入数据与现有估计值融合,覆盖或忽略。 此参数确定马哈拉诺比斯距离的阈值,该阈值确定如何处理传入的测量。
mahalanobis_distance_threshold: 2.5

# 噪声添加到高于该特定位置的当前高程图的测量值。 仅当点落在马哈拉诺比斯距离阈值上时才执行此噪声添加过程。 较高的值对于更快地适应动态环境(例如,移动物体)是有用的,但是可能在高度估计中引起更多噪声。
multi_height_noise: 0.0000009

传入地图初始化相关参数

  • kinect_nguyen_et_al.yaml
# Kinect (short-range mode) model taken from:
# Nguyen, C. V., Izadi, S., & Lovell, D. (2012).
# Modeling Kinect Sensor Noise for Improved 3D Reconstruction and Tracking.
sensor_processor/type: structured_light

# 距离传感器测量长度的最小值和最大值。 超出此间隔的测量值将被忽略。
sensor_processor/cutoff_min_depth: 0.35
sensor_processor/cutoff_max_depth: 3.0

# 传感器噪声模型的数据。
sensor_processor/normal_factor_a: 0.0012
sensor_processor/normal_factor_b: 0.0019
sensor_processor/normal_factor_c: 0.4
sensor_processor/normal_factor_d: 0
sensor_processor/normal_factor_e: 1
sensor_processor/lateral_factor: 0.001376915 # for theta = 45°: 0.835 * 0.00780 [mm/px] / 4.73 [mm]

传入kinect传感器噪声模型相关参数

 

 

 

 

 

 

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/BetterEthan/article/details/89332956

智能推荐

oracle 12c 集群安装后的检查_12c查看crs状态-程序员宅基地

文章浏览阅读1.6k次。安装配置gi、安装数据库软件、dbca建库见下:http://blog.csdn.net/kadwf123/article/details/784299611、检查集群节点及状态:[root@rac2 ~]# olsnodes -srac1 Activerac2 Activerac3 Activerac4 Active[root@rac2 ~]_12c查看crs状态

解决jupyter notebook无法找到虚拟环境的问题_jupyter没有pytorch环境-程序员宅基地

文章浏览阅读1.3w次,点赞45次,收藏99次。我个人用的是anaconda3的一个python集成环境,自带jupyter notebook,但在我打开jupyter notebook界面后,却找不到对应的虚拟环境,原来是jupyter notebook只是通用于下载anaconda时自带的环境,其他环境要想使用必须手动下载一些库:1.首先进入到自己创建的虚拟环境(pytorch是虚拟环境的名字)activate pytorch2.在该环境下下载这个库conda install ipykernelconda install nb__jupyter没有pytorch环境

国内安装scoop的保姆教程_scoop-cn-程序员宅基地

文章浏览阅读5.2k次,点赞19次,收藏28次。选择scoop纯属意外,也是无奈,因为电脑用户被锁了管理员权限,所有exe安装程序都无法安装,只可以用绿色软件,最后被我发现scoop,省去了到处下载XXX绿色版的烦恼,当然scoop里需要管理员权限的软件也跟我无缘了(譬如everything)。推荐添加dorado这个bucket镜像,里面很多中文软件,但是部分国外的软件下载地址在github,可能无法下载。以上两个是官方bucket的国内镜像,所有软件建议优先从这里下载。上面可以看到很多bucket以及软件数。如果官网登陆不了可以试一下以下方式。_scoop-cn

Element ui colorpicker在Vue中的使用_vue el-color-picker-程序员宅基地

文章浏览阅读4.5k次,点赞2次,收藏3次。首先要有一个color-picker组件 <el-color-picker v-model="headcolor"></el-color-picker>在data里面data() { return {headcolor: ’ #278add ’ //这里可以选择一个默认的颜色} }然后在你想要改变颜色的地方用v-bind绑定就好了,例如:这里的:sty..._vue el-color-picker

迅为iTOP-4412精英版之烧写内核移植后的镜像_exynos 4412 刷机-程序员宅基地

文章浏览阅读640次。基于芯片日益增长的问题,所以内核开发者们引入了新的方法,就是在内核中只保留函数,而数据则不包含,由用户(应用程序员)自己把数据按照规定的格式编写,并放在约定的地方,为了不占用过多的内存,还要求数据以根精简的方式编写。boot启动时,传参给内核,告诉内核设备树文件和kernel的位置,内核启动时根据地址去找到设备树文件,再利用专用的编译器去反编译dtb文件,将dtb还原成数据结构,以供驱动的函数去调用。firmware是三星的一个固件的设备信息,因为找不到固件,所以内核启动不成功。_exynos 4412 刷机

Linux系统配置jdk_linux配置jdk-程序员宅基地

文章浏览阅读2w次,点赞24次,收藏42次。Linux系统配置jdkLinux学习教程,Linux入门教程(超详细)_linux配置jdk

随便推点

matlab(4):特殊符号的输入_matlab微米怎么输入-程序员宅基地

文章浏览阅读3.3k次,点赞5次,收藏19次。xlabel('\delta');ylabel('AUC');具体符号的对照表参照下图:_matlab微米怎么输入

C语言程序设计-文件(打开与关闭、顺序、二进制读写)-程序员宅基地

文章浏览阅读119次。顺序读写指的是按照文件中数据的顺序进行读取或写入。对于文本文件,可以使用fgets、fputs、fscanf、fprintf等函数进行顺序读写。在C语言中,对文件的操作通常涉及文件的打开、读写以及关闭。文件的打开使用fopen函数,而关闭则使用fclose函数。在C语言中,可以使用fread和fwrite函数进行二进制读写。‍ Biaoge 于2024-03-09 23:51发布 阅读量:7 ️文章类型:【 C语言程序设计 】在C语言中,用于打开文件的函数是____,用于关闭文件的函数是____。

Touchdesigner自学笔记之三_touchdesigner怎么让一个模型跟着鼠标移动-程序员宅基地

文章浏览阅读3.4k次,点赞2次,收藏13次。跟随鼠标移动的粒子以grid(SOP)为partical(SOP)的资源模板,调整后连接【Geo组合+point spirit(MAT)】,在连接【feedback组合】适当调整。影响粒子动态的节点【metaball(SOP)+force(SOP)】添加mouse in(CHOP)鼠标位置到metaball的坐标,实现鼠标影响。..._touchdesigner怎么让一个模型跟着鼠标移动

【附源码】基于java的校园停车场管理系统的设计与实现61m0e9计算机毕设SSM_基于java技术的停车场管理系统实现与设计-程序员宅基地

文章浏览阅读178次。项目运行环境配置:Jdk1.8 + Tomcat7.0 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)。项目技术:Springboot + mybatis + Maven +mysql5.7或8.0+html+css+js等等组成,B/S模式 + Maven管理等等。环境需要1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。_基于java技术的停车场管理系统实现与设计

Android系统播放器MediaPlayer源码分析_android多媒体播放源码分析 时序图-程序员宅基地

文章浏览阅读3.5k次。前言对于MediaPlayer播放器的源码分析内容相对来说比较多,会从Java-&amp;amp;gt;Jni-&amp;amp;gt;C/C++慢慢分析,后面会慢慢更新。另外,博客只作为自己学习记录的一种方式,对于其他的不过多的评论。MediaPlayerDemopublic class MainActivity extends AppCompatActivity implements SurfaceHolder.Cal..._android多媒体播放源码分析 时序图

java 数据结构与算法 ——快速排序法-程序员宅基地

文章浏览阅读2.4k次,点赞41次,收藏13次。java 数据结构与算法 ——快速排序法_快速排序法