当前位置:网站首页>TF coordinate transformation of common components of ros-9 ROS
TF coordinate transformation of common components of ros-9 ROS
2022-07-05 08:45:00 【m0_ forty-six million ninety-three thousand eight hundred and t】
One 、 Concept
Coordinate transformation is simply normalization , That is, the measured position information between other objects and sensors on the robot is replaced by the information between the object and the origin of the robot .
According to what we learned in high school , As long as the relative relationship between different coordinate systems is clear , Any coordinate point can be converted between different coordinate systems , But this computing implementation is commonly used , And the algorithm is a little complicated , So in ROS The related modules are directly encapsulated in : Coordinate transformation (TF).TF Coordinate transformation is used in ROS Realize the transformation of points or vectors between different coordinate systems .
TF Coordinate transformation through broadcast TF Transform and monitor TF Transformation to achieve
Two 、 Check whether the current coordinate systems in the system are connected
rosrun tf view_frames
Running the above specification will generate .gv and .pdf2 File , It is used to display the connectivity of various coordinate systems in the current system
For example, running ros Medium turtle_tf_demo, Three coordinate systems are defined in the of this routine : Coordinate origin ,turtle1,turtle2.turtle2 Will listen turtle1d be relative to world The position of , And then change your position . Follow in real time turtle1.
Before that, install the package :
sudo apt-get install ros-melodic-turtle-tf
The running routine code is as follows :
roslaunch turtle_tf turtle_tf_demo.launch
And then run :rosrun tf view_frames You can view the relationship between coordinate systems in the current system .
3、 ... and 、 Real-time query tf The positional relationship between any two coordinate systems of tree species :
rosrun tf tf_echo Root coordinate system Target coordinate system
for example : I'm still running turtle_tf_demo.launch routine , Next run
rosrun tf tf_echo turtle1 turtle 2
When I keyboard control the first turtle to move , The coordinate position relationship between the second turtle and the first turtle is as follows :
among Translation Is translation , Is the target coordinate relative to the root coordinate x,y,z Translation in three directions
rotation It's rotation , Indicates how the target coordinate system can be rotated to the root coordinate system .Rotation There are three representations
Four 、 adopt rviz Check the positional relationship between coordinate systems
function
rosrun rviz rviz 'rospack find turtle_tf' /rviz/turtle_rviz.rviz
You can see world,turtle1,turtl2 The process of making coordinate changes between
边栏推荐
- 319. 灯泡开关
- Guess riddles (4)
- Halcon affine transformations to regions
- One dimensional vector transpose point multiplication np dot
- Bluebridge cup internet of things competition basic graphic tutorial - clock selection
- 696. Count binary substring
- C#【必备技能篇】ConfigurationManager 类的使用(文件App.config的使用)
- 多元线性回归(梯度下降法)
- My university
- 猜谜语啦(3)
猜你喜欢
每日一题——替换空格
Example 007: copy data from one list to another list.
Typical low code apaas manufacturer cases
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
Old Wang's esp8266 and old Wu's ws2818 light strip
Lori remote control LEGO motor
Mathematical modeling: factor analysis
RT-Thread内核快速入门,内核实现与应用开发学习随笔记
Halcon clolor_ pieces. Hedv: classifier_ Color recognition
微信H5公众号获取openid爬坑记
随机推荐
猜谜语啦(8)
猜谜语啦(10)
猜谜语啦(142)
Example 010: time to show
Dynamic dimensions required for input: input, but no shapes were provided. Automatically overriding
C语言标准函数scanf不安全的原因
【日常训练】1200. 最小绝对差
Search data in geo database
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
MATLAB小技巧(28)模糊综合评价
Example 007: copy data from one list to another list.
整形的分类:short in long longlong
Guess riddles (5)
TypeScript手把手教程,简单易懂
ECMAScript6介绍及环境搭建
Basic number theory - fast power
MATLAB小技巧(28)模糊綜合評價
某公司文件服务器迁移方案
【日常训练--腾讯精选50】557. 反转字符串中的单词 III
ABC#237 C