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

Best practices for tf?

asked 2017-08-15 12:52:51 -0600

seanarm gravatar image

I see other similar questions here, but nothing that answered my specific inquiries about tf:

  1. Is it recommended to use a separate tf server (as in its own node)?

  2. Should URDF be used for statically-linked robots like quadcopters with a few attached sensors?

  3. When is a tf_state_publisher used (from a launch file, say), as opposed to a tf broadcaster in code?
edit retag flag offensive close merge delete

Comments

2

PS as a meta comment. Please try to ask your questions separately. I was able to answer all your questions, but in general different questions might have different people who will know the answer but you can only accept one answer.

tfoote gravatar image tfoote  ( 2017-08-15 14:04:13 -0600 )edit

Thanks. Will do.

seanarm gravatar image seanarm  ( 2017-08-15 15:44:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2017-08-15 14:02:46 -0600

tfoote gravatar image

Is it recommended to use a separate tf server (as in its own node)?

It's not the default way to do things. There are use cases when this can be valuable. In particular when you have something that only needs to query for transforms at a low rate, and can afford higher latency in your queries. You can use a tf2_ros::BufferServer class or the standalone buffer_server node in conjunction with a tf2_ros::BufferClient in python or C++ to query the BufferServer. Using this when remote can save a lot of bandwidth and computation cycles.

Should URDF be used for statically-linked robots like quadcopters with a few attached sensors?

It can be quite convenient as the URDF captures more than just the joints. There are a lot of examples of this already. Take a look here: https://github.com/ethz-asl/rotors_si...

When is a tf_state_publisher used (from a launch file, say), as opposed to a tf broadcaster in code?

If you're publishing with a standalone command line tool where you pass the arguments to it at startup the transform must be fixed and unchanging. If you have it in code, the transform can updated based on information/logic in the code.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-08-15 12:52:51 -0600

Seen: 285 times

Last updated: Aug 15 '17