Robotics StackExchange | Archived questions

ar_kinect marker coordinates

Hi guys,

I'm using ar_kinect for marker detection on ros hydro, as far it works perfectly and can visualize it on Rviz. But How would I get the coordinates (x,y,z) of the marker and the distant between the marker and the camera

Thanks for your help

Asked by MSYazeed on 2015-03-09 07:10:12 UTC

Comments

Answers

From the ar_kinect wiki page:

ar_pose_markers (ar_pose/ARMarkers) An array of markers, each marker describe the current pose relative to the camera.

visualization_marker (visualization_msgs/Marker) Visualization marker for rviz

So you should be able to get the positions from the ar_pose_markers messages. These poses will be in camera space, so you will need to define the transformation from camera space to world frame if you want the ar marker coordinates in world space. You could do this by making publishing a transform from your camera to the world space.

Asked by Adam Allevato on 2015-05-01 10:45:47 UTC

Comments