ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Where's the official Python API documentation for TF?

asked 2018-04-07 08:33:27 -0600

nbro gravatar image

updated 2018-04-07 09:55:33 -0600

The web article only seems to point to the C++ API documentation (e.g. the following sub-article only contains C++ examples). I would like to use Python instead. I would like to read the official Python documentation for tf. Where can I find it?

In other ROS Wiki pages, there's usually the possibility to see both the Python and C++ version of the code or documentation. Why doesn't provide such a duality?

I know there are a few tf tutorials (e.g. ) which use Python, but I would like to see all other examples and documentation in Python. There's this page , but it doesn't seem to be official.

I have also seen that there's also a new Python interface to the new tf library, i.e. to tf2, which is called tf2_ros. However, the documentation is pretty much empty. For example, the class TransformBroadcaster is not documented. Why? Why aren't people putting some effort on the documentation?

Furthermore, there's also the following article , but there's no link from the web page to it, besides being very poorly written and very incomplete.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2018-04-08 03:00:05 -0600

gvdhoorn gravatar image

updated 2018-04-12 10:09:11 -0600

All of the pages listed by @nbro are linked directly from the Package Links linkbox to the right of the Package Summary header on the tf2_ros wiki page:

package links

which takes you to:

tf2 doc

All ROS pkgs with (Doxygen) API docs should have those links.

You should not need to search yourself (but you can, of course).

Edit1: there is actually a tutorial about this: Navigating the ROS wiki.

edit flag offensive delete link more


It's incredible I have never noticed "Code API" on that side of a ROS wiki article. If I am the only one who missed it, then shame on me, but if there are many other people in my situation, shame on the designers of the ROS wiki.

nbro gravatar image nbro  ( 2018-04-10 10:31:09 -0600 )edit

"shame"? Really?

gvdhoorn gravatar image gvdhoorn  ( 2018-04-10 13:37:50 -0600 )edit

@gvdhoorn FYI I've given @nbro an official warning relating to this and a few other posts.

tfoote gravatar image tfoote  ( 2018-04-10 13:39:33 -0600 )edit

To be clear: I don't mind frank discussions and stating of opinions (I'm Dutch, I actually appreciate it). I do believe however that one needs to be careful not to come off as harsh or abrasive. This could just be a matter of the 'email effect', but expressions such as "shame on .." are a bit much.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-10 13:52:45 -0600 )edit

Yes, I understand that there may be a tutorial. My point is: there should not exist the need for a tutorial for such a basic functionality. Don't you also think?

nbro gravatar image nbro  ( 2018-04-12 10:57:59 -0600 )edit

Every person is different. What may be apparent or intuitive to one could be opaque to another. I guess the tutorial / guide exists to explain how the wiki is layed out so that it becomes easier to find what you are looking for.

I can't comment on whether or not the current layout is bad or not, ..

gvdhoorn gravatar image gvdhoorn  ( 2018-04-12 11:08:33 -0600 )edit

.. as I feel I'm too accustomed to all of this already to really have an objective opinion.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-12 11:09:00 -0600 )edit

There are fields like human-computer interaction (HCI) and user-experience design (UXD) which exist to solve this kind of problems.

nbro gravatar image nbro  ( 2018-04-12 12:08:59 -0600 )edit

answered 2018-04-07 12:12:09 -0600

jayess gravatar image

updated 2018-04-08 15:10:54 -0600

Here's the official documentation for tf's Python API and here's the link for tf2's Python API documentation (both for Kinetic).

The URL structure is<ros-distro>/api/tf/html/python/tf_python.html

for tf and<ros-distro>/api/tf2/html/

for tf2.

Just change the <ros-distro> portion of the URL to get your desired version of the docs.

edit flag offensive delete link more


@jayess The documentation exists for different ROS versions. I would encourage you to edit your answer and include the documentation for each ROS distribution and not just for kinetic (even though I added the tag only for kinetic, but apparently I can't add more tags).

nbro gravatar image nbro  ( 2018-04-07 13:28:08 -0600 )edit

Note that the second template URL is equal to the first one!

nbro gravatar image nbro  ( 2018-04-07 14:57:48 -0600 )edit

answered 2018-04-07 14:53:48 -0600

nbro gravatar image

updated 2018-04-07 14:56:52 -0600

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-04-07 08:33:27 -0600

Seen: 1,393 times

Last updated: Apr 12 '18