ROS tf

一、节点中使用(cpp,python)

1. ros wiki 提供的tutorials

2. https://blog.csdn.net/start_from_scratch/article/details/50762293/

重点理解 tf广播 和 tf监听 方法!

 

二、命令行使用

tf_monitor:  monitors transforms between frames. 可以查看参考坐标系之间的转换关系和发布频率

rosrun tf tf_monitor
rosrun tf tf_monitor <source_frame> <target_frame>

tf_echo: prints specified transform to screen. 查看参考坐标系之间的转换矩阵

rosrun tf tf_echo <source frame> <target frame>

view_frame: visualizes the full tree of coordinate transforms

rosrun tf view_frames
evince frames.pdf

static_transform_publish

static_transform_publisher x y z yaw pitch roll frame_id child_frame_id period_in_ms

  • Publish a static coordinate transform to tf using an x/y/z offset in meters and yaw/pitch/roll in radians. (yaw is rotation about Z, pitch is rotation about Y, and roll is rotation about X). The period, in milliseconds, specifies how often to send a transform. 100ms (10hz) is a good value.

static_transform_publisher x y z qx qy qz qw frame_id child_frame_id  period_in_ms

  • Publish a static coordinate transform to tf using an x/y/z offset in meters and quaternion. The period, in milliseconds, specifies how often to send a transform. 100ms (10hz) is a good value.

转载于:https://www.cnblogs.com/gdut-gordon/p/10403685.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值