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

How do you use inverseTimes()?

asked 2015-06-15 08:43:32 -0600

CatherineH gravatar image

How do you use inverseTimes?

From reading the docs, it looks like it should be a member function of Transform(), and take another Transform() as the argument.

However, the following code:

from geometry_msgs.msg import Transform
my_tf1 = Transform()
my_tf2 = Transform()
my_tf1.translation.x = 2
my_tf2.translation.x = 5

produces the error:

AttributeError: 'Transform' object has no attribute 'inverseTimes'

Is there a different object in tf called Transform that I should be using instead?

edit retag flag offensive close merge delete


I've noticed that some tf functions from c++ are not available in python... I can't think of a workaround that is quicker than implementing this function yourself :-(

timster gravatar image timster  ( 2015-06-15 10:05:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-15 09:58:09 -0600

inverseTimes is a member of tf::Transform in the C++ API. I don't see any equivalent in Python. I'm sure you can do the same thing with numpy (or possibly PyKDL) though.

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: 2015-06-15 08:43:32 -0600

Seen: 1,931 times

Last updated: Jun 15 '15