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

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
my_tf1.inverseTimes(my_tf2)

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

Comments

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
0

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

Question Tools

1 follower

Stats

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

Seen: 2,288 times

Last updated: Jun 15 '15