Ask Your Question
0

ar_kinect marker coordinates

asked 2015-03-09 07:10:12 -0600

MSYazeed gravatar image

updated 2015-03-09 09:13:26 -0600

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-01 10:45:47 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-09 07:10:12 -0600

Seen: 95 times

Last updated: May 01 '15