AprilRobotics / apriltag_ros

A ROS wrapper of the AprilTag 3 visual fiducial detector
Other
358 stars 338 forks source link

TF convention tag and bundles #156

Open miguelcastillon opened 1 year ago

miguelcastillon commented 1 year ago

Hi!

Following this issue, I would kindly recommend to clarify the convention used when defining the tag TF.

The only info I could find is here and says:

The tag's coordinate frame is centered at the center of the tag, with x-axis to the right, y-axis down, and z-axis into the tag.

However, this contradicts the observations when running the apriltag_ros detector.

When I print a tag and look at it with a camera, the tag TF from the position of the camera is:

Likewise, when I create a tag bundle with several tags, the coordinate system used by the detector is:

This is very important when defining the position of each tag in the tag_bundles of the yaml file. Following a wrong convention leads to a completely wrong pose estimation.