moveit的环境感知功能+realsense

1.panda_moveit_config
在这里插入图片描述打开后出现
在这里插入图片描述进入config,修改sensors_kinect_pointcloud.yaml文件

sensors:
  - sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
    point_cloud_topic: /camera/depth/color/points //此处修改为rs相机的pointclound话题名称
    max_range: 5.0
    point_subsample: 1
    padding_offset: 0.1
    padding_scale: 1.0
    max_update_rate: 1.0
    filtered_cloud_topic: filtered_cloud

2.通过案例测试
打开moveit_tutorials -> doc -> perception_pipeline ->obstacle_avoidance_demo.launch

<launch>
  <include file="$(find panda_moveit_config)/launch/demo.launch" />

  <!-- Play the rosbag that contains the pointcloud data -->
  <!--node pkg="moveit_tutorials" type="bag_publisher_maintain_time" name="point_clouds" />  -->
  #此处使用rosbag播放,而我使用realsense测试,可以这句

  <!-- If needed, broadcast static tf for robot root -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="to_panda" args="0 0 0 0 0 0  world panda_link0" />
  <node pkg="tf2_ros" type="static_transform_publisher" name="to_camera" args="0.4 0.427 0.570 0 0.2 1.92 camera_rgb_optical_frame world" />

</launch>

3.修改rs的launch文件
在文件的末尾添加静态坐标转换信息相机坐标系与机器人底部坐标系转换关系

 <node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="-0.07315 0.0250 -0.0420 1.488 -0.009 -3.139 panda_link0 camera_link 100" />

4.tf树如图所示
在这里插入图片描述

四元数转换网站

这里

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值