How to properly use TF2 transform python interface

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

mwrighte38 gravatar image

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

https://github.com/ros/geometry2/blob...

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/buffer_interface.py", line 65, in transform do_transform = self.registration.get(type(object_stamped)) File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/buffer_interface.py", 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