How to properly use TF2 transform python interface

asked 2018-11-26 14:42:02 -0500

mwrighte38 gravatar image

I'm trying transform a point in my cameras FOV to the coordinate system of my world.

I have calculated a distance in meters from the camera in x,y,z. How can I make the correct data type from the the x/y/z position and xyzw rotation of my camera?

I've tried to input a transformStamped() data type but I receive the error.

File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/", line 65, in transform do_transform = self.registration.get(type(object_stamped)) File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/", line 204, in get raise TypeException('Type %s if not loaded or supported'% str(key)) tf2_ros.buffer_interface.TypeException

What type of data type am I supposed to be using?

edit retag flag offensive close merge delete


I am also having this problem, did you manage to solve it?

mateusguilherme gravatar image mateusguilherme  ( 2021-02-01 10:02:38 -0500 )edit