0
$\begingroup$

Rosanswers logo

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


Originally posted by pr2rp on ROS Answers with karma: 36 on 2013-11-06

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Maybe the axis are not aligned, I'm just guessing. I'm working now on the same problem and I noticed the same as you. If you got an answer to this problem (since you worked on it two years ago) please answer me.


Originally posted by pulver with karma: 51 on 2016-04-14

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.