ar_pose : interprete output of 'ar_pose_marker' && transform
Hello.
I want to track a object that is moving inside a room and color the pixel in the cam-image, where the object has moved to. Instead of detect colors etc. I want to do this with markers from ar_pose.
My setup is a simple web_cam and one printed marker. I can start tracking and I do get values on the topic "ar_pose_marker". My problem is that I do not understand what the values "ar_pose_marker" is publishing to me. Yes, I did read that "The current pose of the marker relative to the camera." My interpretation is that the cam is located at (0,0.0) and the values are the offset to that origin (in world coordinates). Is that correct?
One example: Lets say my setup is running with a 640x480px image. When i move the marker to the most left: {ar_pose_marker}.x = -1.16 The the rightmost place {ar_pose_marker}.x = -0.75
This values change when i increase/decrease the distance: marker<->camera. Whay?
- What does the values ^^ tell me?
- How do I transform a detected marker position to a specific pixel position in the cam-image?
Thanks for any hints