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

static_transform_publisher and robot_state_publisher

asked 2017-10-19 09:21:42 -0500

tanasis gravatar image

Hello,

I am a bit confused about the static_transform_publisher and the robot_state_publisher (or at least I think I am). So we are setting up a robot with sensor at all, and before we used the urdf approach we were using the static_transform_publisher to get the TF between sensors.

Now we want to use the urdf approach, i.e. robot_state_publisher. This is also publishing TF. So this should be now our source for tf, right? No need for the static_transform_publisher? (I think it will even interfere)

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-10-19 10:25:40 -0500

gvdhoorn gravatar image

Now we want to use the urdf approach, i.e. robot_state_publisher. This is also publishing TF. So this should be now our source for tf, right? No need for the static_transform_publisher? (I think it will even interfere)

In short: yes, TF frames should preferably have only one backing publisher.

If you have a urdf, robot_state_publisher (RSP) can do that for you, no need for static_transform_publisher (STP).

You're not required to use RSP though, you can use URDF and still use STP as well.

One advantage of the RSP over STP is that the former will listen to JointState msgs (on the joint_states topic) and update the frames it knows about (from your urdf) using FK. That is something STP cannot do.

edit flag offensive delete link more

Comments

Btw: we have an expression here in the lab: if you are using ROS for your robot and don't have a urdf, you're "doing it wrong".

gvdhoorn gravatar image gvdhoorn  ( 2017-10-19 10:26:18 -0500 )edit

haha totally agree! I like your lab! I just wanted to clarify this as it is not 100% clear from the documentation. Thx!

tanasis gravatar image tanasis  ( 2017-10-19 11:31:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-10-19 09:21:42 -0500

Seen: 888 times

Last updated: Oct 19 '17