forked from AprilRobotics/apriltag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tagCustom20h6.c
130 lines (128 loc) · 3.97 KB
/
tagCustom20h6.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#include <stdlib.h>
#include "tagCustom20h6.h"
apriltag_family_t *tagCustom20h6_create()
{
apriltag_family_t *tf = calloc(1, sizeof(apriltag_family_t));
tf->name = strdup("tagCustom20h6");
tf->h = 6;
tf->ncodes = 63;
tf->codes = calloc(63, sizeof(uint64_t));
tf->codes[0] = 0x00000000000f6351UL;
tf->codes[1] = 0x00000000000b7a65UL;
tf->codes[2] = 0x0000000000088bb4UL;
tf->codes[3] = 0x000000000006973eUL;
tf->codes[4] = 0x000000000002ae52UL;
tf->codes[5] = 0x00000000000ec566UL;
tf->codes[6] = 0x00000000000adc7aUL;
tf->codes[7] = 0x000000000005f953UL;
tf->codes[8] = 0x00000000000655a3UL;
tf->codes[9] = 0x0000000000055b68UL;
tf->codes[10] = 0x00000000000366f2UL;
tf->codes[11] = 0x000000000004bd7dUL;
tf->codes[12] = 0x00000000000bf16aUL;
tf->codes[13] = 0x000000000009fcf4UL;
tf->codes[14] = 0x00000000000a5944UL;
tf->codes[15] = 0x00000000000ab594UL;
tf->codes[16] = 0x00000000000efad0UL;
tf->codes[17] = 0x00000000000a73f9UL;
tf->codes[18] = 0x000000000004f2e7UL;
tf->codes[19] = 0x00000000000e1b4aUL;
tf->codes[20] = 0x00000000000a325eUL;
tf->codes[21] = 0x00000000000a8eaeUL;
tf->codes[22] = 0x00000000000be539UL;
tf->codes[23] = 0x000000000009e492UL;
tf->codes[24] = 0x00000000000465d3UL;
tf->codes[25] = 0x0000000000052cf7UL;
tf->codes[26] = 0x000000000005a64fUL;
tf->codes[27] = 0x0000000000069459UL;
tf->codes[28] = 0x00000000000c5959UL;
tf->codes[29] = 0x00000000000bb636UL;
tf->codes[30] = 0x000000000007dbceUL;
tf->codes[31] = 0x00000000000cf45fUL;
tf->codes[32] = 0x0000000000046e8dUL;
tf->codes[33] = 0x00000000000d26e4UL;
tf->codes[34] = 0x00000000000db89eUL;
tf->codes[35] = 0x00000000000add17UL;
tf->codes[36] = 0x000000000003de94UL;
tf->codes[37] = 0x00000000000ae663UL;
tf->codes[38] = 0x0000000000011addUL;
tf->codes[39] = 0x0000000000092dbeUL;
tf->codes[40] = 0x000000000002c59bUL;
tf->codes[41] = 0x00000000000dca12UL;
tf->codes[42] = 0x00000000000cf7ecUL;
tf->codes[43] = 0x00000000000f17eeUL;
tf->codes[44] = 0x000000000006ee6cUL;
tf->codes[45] = 0x000000000006eb87UL;
tf->codes[46] = 0x000000000007354aUL;
tf->codes[47] = 0x00000000000d49d7UL;
tf->codes[48] = 0x000000000006474bUL;
tf->codes[49] = 0x00000000000ed8bcUL;
tf->codes[50] = 0x00000000000a4b89UL;
tf->codes[51] = 0x00000000000d590eUL;
tf->codes[52] = 0x00000000000c8d5aUL;
tf->codes[53] = 0x000000000008d548UL;
tf->codes[54] = 0x00000000000154beUL;
tf->codes[55] = 0x00000000000d3855UL;
tf->codes[56] = 0x000000000004af9eUL;
tf->codes[57] = 0x00000000000d328bUL;
tf->codes[58] = 0x00000000000fb958UL;
tf->codes[59] = 0x00000000000c15b5UL;
tf->codes[60] = 0x00000000000395aaUL;
tf->codes[61] = 0x00000000000a909aUL;
tf->codes[62] = 0x00000000000fcf3fUL;
tf->nbits = 20;
tf->bit_x = calloc(20, sizeof(uint32_t));
tf->bit_y = calloc(20, sizeof(uint32_t));
tf->bit_x[0] = 1;
tf->bit_y[0] = 1;
tf->bit_x[1] = 2;
tf->bit_y[1] = 1;
tf->bit_x[2] = 3;
tf->bit_y[2] = 1;
tf->bit_x[3] = 4;
tf->bit_y[3] = 1;
tf->bit_x[4] = 5;
tf->bit_y[4] = 1;
tf->bit_x[5] = 6;
tf->bit_y[5] = 1;
tf->bit_x[6] = 6;
tf->bit_y[6] = 2;
tf->bit_x[7] = 6;
tf->bit_y[7] = 3;
tf->bit_x[8] = 6;
tf->bit_y[8] = 4;
tf->bit_x[9] = 6;
tf->bit_y[9] = 5;
tf->bit_x[10] = 6;
tf->bit_y[10] = 6;
tf->bit_x[11] = 5;
tf->bit_y[11] = 6;
tf->bit_x[12] = 4;
tf->bit_y[12] = 6;
tf->bit_x[13] = 3;
tf->bit_y[13] = 6;
tf->bit_x[14] = 2;
tf->bit_y[14] = 6;
tf->bit_x[15] = 1;
tf->bit_y[15] = 6;
tf->bit_x[16] = 1;
tf->bit_y[16] = 5;
tf->bit_x[17] = 1;
tf->bit_y[17] = 4;
tf->bit_x[18] = 1;
tf->bit_y[18] = 3;
tf->bit_x[19] = 1;
tf->bit_y[19] = 2;
tf->width_at_border = 8;
tf->total_width = 10;
tf->reversed_border = false;
return tf;
}
void tagCustom20h6_destroy(apriltag_family_t *tf)
{
free(tf->codes);
free(tf->bit_x);
free(tf->bit_y);
free(tf->name);
free(tf);
}