ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Get information of tf/tf2 by code

asked 2021-08-20 04:09:34 -0500

Irobo gravatar image

updated 2021-08-20 10:16:17 -0500

Hi you guys,

I'm quite new to ROS. I'm making a fake robot in Gazebo and I'm done with creating the model.

After execute "rostopic list", I saw /tf. And "rostopic echo -n 1 /tf" returns some information about position and orientation like in this image.

How can I get that information of a specific link by code, not all link at the same time?

How can I publish the new pose of a specific link by code and display it in Gazebo?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Thanks, I'll try

Irobo gravatar image Irobo  ( 2021-08-20 07:29:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-08-20 05:31:03 -0500

gvdhoorn gravatar image

Please see whether the TF2 tutorials can help you get an understanding of what's going on.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-08-20 04:07:07 -0500

Seen: 53 times

Last updated: Aug 20 '21