Generador y hojas AprilTag
Renderiza hojas vectoriales AprilTag desde las definiciones C oficiales de AprilRobotics en las 6 familias clásicas y de borde invertido AprilTag 3, diferenciando width_at_border y total_width.
Los archivos codifican dimensiones físicas objetivo (1 mm = 72/25,4 pt). Imprime el PDF siempre al 100 % / Tamaño real (desactiva «Ajustar a la página») y mide las reglas X e Y con una regla o calibre físico antes de calibrar.
# apriltag_ros (ROS 2) parameters
# size MUST be the width_at_border (black/white boundary) in meters — NOT total_width.
# For tag36h11: width_at_border = 100.00 mm (0.1 m), full grid = 125.00 mm
apriltag:
ros__parameters:
family: "36h11"
size: 0.1
max_hamming: 0
Comprender width_at_border frente a total_width
El error de escala más habitual con AprilTag consiste en confundir el límite de detección blanco/negro (width_at_border) con el ancho completo de la rejilla (total_width). En familias AprilTag 3 de borde invertido como tagStandard41h12 los bits sobresalen del marco negro (9 / 5): introducir el ancho exterior como tag_size causa un error de distancia de 1,8×.
| Familia | IDs | Bits | width_at_border | total_width | reversed_border | Relación |
|---|---|---|---|---|---|---|
| tag36h11 | 587 | 36 | 8 | 10 | false | 1.25× |
| tag25h9 | 35 | 25 | 7 | 9 | false | 1.29× |
| tag16h5 | 30 | 16 | 6 | 8 | false | 1.33× |
| tagStandard41h12 | 2115 | 41 | 5 | 9 | true | 1.80× |
| tagCircle21h7 | 38 | 21 | 5 | 9 | true | 1.80× |
| tagCustom48h12 | 42211 | 48 | 6 | 10 | true | 1.67× |
Convención de 180°: OpenCV vs. AprilRobotics
Movid renderiza AprilTags de forma idéntica a AprilRobotics/apriltag (apriltag_to_image()) y a los PNG de apriltag-imgs. Los diccionarios integrados DICT_APRILTAG_16h5/25h9/36h11 de OpenCV rotan el mismo patrón 180° y no soportan familias extendidas de borde invertido como tagStandard41h12.