Transform pose from one frame to another

asked 2019-06-24 13:58:42 -0500

pring gravatar image

I'm using a tensorflow object detector to find and reproject pose estimates for objects in 3D (via a Realsense). I am publishing the local transforms, i.e. /object_n -> /camera_link, but would like to have the 3D locations persist in a SLAM map a la rtabmap. Thus I would like /object_n -> /map

I have looked into tf.TransformROS and tf.TransformListener, but the documentation doesn't include full examples and the examples that do exist are incomplete / misleading.

Currently, I'm not sure how Transform[ROS/Listener] operates. I'm runningif self.tf_listener.frameExists("/camera_link"): ..., which returns false. Running rostopic echo /tf shows that /camera_link is in fact a valid frame.

edit retag flag offensive close merge delete

Comments

you can use, tf2::doTransform function.

nd gravatar image nd  ( 2019-06-25 03:56:29 -0500 )edit