tag25h9.c
Go to the documentation of this file.
1
/* Copyright (C) 2013-2016, The Regents of The University of Michigan.
2
All rights reserved.
3
This software was developed in the APRIL Robotics Lab under the
4
direction of Edwin Olson, ebolson@umich.edu. This software may be
5
available under alternative licensing terms; contact the address above.
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are met:
8
1. Redistributions of source code must retain the above copyright notice, this
9
list of conditions and the following disclaimer.
10
2. Redistributions in binary form must reproduce the above copyright notice,
11
this list of conditions and the following disclaimer in the documentation
12
and/or other materials provided with the distribution.
13
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
17
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
The views and conclusions contained in the software and documentation are those
24
of the authors and should not be interpreted as representing official policies,
25
either expressed or implied, of the Regents of The University of Michigan.
26
*/
27
28
#include <stdlib.h>
29
#include "
tag25h9.h
"
30
31
static
uint64_t
codedata
[35] = {
32
0x000000000156f1f4UL,
33
0x0000000001f28cd5UL,
34
0x00000000016ce32cUL,
35
0x0000000001ea379cUL,
36
0x0000000001390f89UL,
37
0x000000000034fad0UL,
38
0x00000000007dcdb5UL,
39
0x000000000119ba95UL,
40
0x0000000001ae9daaUL,
41
0x0000000000df02aaUL,
42
0x000000000082fc15UL,
43
0x0000000000465123UL,
44
0x0000000000ceee98UL,
45
0x0000000001f17260UL,
46
0x00000000014429cdUL,
47
0x00000000017248a8UL,
48
0x00000000016ad452UL,
49
0x00000000009670adUL,
50
0x00000000016f65b2UL,
51
0x0000000000b8322bUL,
52
0x00000000005d715bUL,
53
0x0000000001a1c7e7UL,
54
0x0000000000d7890dUL,
55
0x0000000001813522UL,
56
0x0000000001c9c611UL,
57
0x000000000099e4a4UL,
58
0x0000000000855234UL,
59
0x00000000017b81c0UL,
60
0x0000000000c294bbUL,
61
0x000000000089fae3UL,
62
0x000000000044df5fUL,
63
0x0000000001360159UL,
64
0x0000000000ec31e8UL,
65
0x0000000001bcc0f6UL,
66
0x0000000000a64f8dUL,
67
};
68
apriltag_family_t
*
tag25h9_create
()
69
{
70
apriltag_family_t
*tf = calloc(1,
sizeof
(
apriltag_family_t
));
71
tf->
name
= strdup(
"tag25h9"
);
72
tf->
h
= 9;
73
tf->
ncodes
= 35;
74
tf->
codes
=
codedata
;
75
tf->
nbits
= 25;
76
tf->
bit_x
= calloc(25,
sizeof
(uint32_t));
77
tf->
bit_y
= calloc(25,
sizeof
(uint32_t));
78
tf->
bit_x
[0] = 1;
79
tf->
bit_y
[0] = 1;
80
tf->
bit_x
[1] = 2;
81
tf->
bit_y
[1] = 1;
82
tf->
bit_x
[2] = 3;
83
tf->
bit_y
[2] = 1;
84
tf->
bit_x
[3] = 4;
85
tf->
bit_y
[3] = 1;
86
tf->
bit_x
[4] = 2;
87
tf->
bit_y
[4] = 2;
88
tf->
bit_x
[5] = 3;
89
tf->
bit_y
[5] = 2;
90
tf->
bit_x
[6] = 5;
91
tf->
bit_y
[6] = 1;
92
tf->
bit_x
[7] = 5;
93
tf->
bit_y
[7] = 2;
94
tf->
bit_x
[8] = 5;
95
tf->
bit_y
[8] = 3;
96
tf->
bit_x
[9] = 5;
97
tf->
bit_y
[9] = 4;
98
tf->
bit_x
[10] = 4;
99
tf->
bit_y
[10] = 2;
100
tf->
bit_x
[11] = 4;
101
tf->
bit_y
[11] = 3;
102
tf->
bit_x
[12] = 5;
103
tf->
bit_y
[12] = 5;
104
tf->
bit_x
[13] = 4;
105
tf->
bit_y
[13] = 5;
106
tf->
bit_x
[14] = 3;
107
tf->
bit_y
[14] = 5;
108
tf->
bit_x
[15] = 2;
109
tf->
bit_y
[15] = 5;
110
tf->
bit_x
[16] = 4;
111
tf->
bit_y
[16] = 4;
112
tf->
bit_x
[17] = 3;
113
tf->
bit_y
[17] = 4;
114
tf->
bit_x
[18] = 1;
115
tf->
bit_y
[18] = 5;
116
tf->
bit_x
[19] = 1;
117
tf->
bit_y
[19] = 4;
118
tf->
bit_x
[20] = 1;
119
tf->
bit_y
[20] = 3;
120
tf->
bit_x
[21] = 1;
121
tf->
bit_y
[21] = 2;
122
tf->
bit_x
[22] = 2;
123
tf->
bit_y
[22] = 4;
124
tf->
bit_x
[23] = 2;
125
tf->
bit_y
[23] = 3;
126
tf->
bit_x
[24] = 3;
127
tf->
bit_y
[24] = 3;
128
tf->
width_at_border
= 7;
129
tf->
total_width
= 9;
130
tf->
reversed_border
=
false
;
131
return
tf;
132
}
133
134
void
tag25h9_destroy
(
apriltag_family_t
*tf)
135
{
136
free(tf->
bit_x
);
137
free(tf->
bit_y
);
138
free(tf->
name
);
139
free(tf);
140
}
apriltag_family::ncodes
uint32_t ncodes
Definition:
apriltag.h:64
apriltag_family::reversed_border
bool reversed_border
Definition:
apriltag.h:71
apriltag_family::codes
uint64_t * codes
Definition:
apriltag.h:67
tag25h9_create
apriltag_family_t * tag25h9_create()
Definition:
tag25h9.c:68
tag25h9.h
apriltag_family
Definition:
apriltag.h:61
apriltag_family::h
uint32_t h
Definition:
apriltag.h:79
apriltag_family::name
char * name
Definition:
apriltag.h:82
apriltag_family::nbits
uint32_t nbits
Definition:
apriltag.h:74
tag25h9_destroy
void tag25h9_destroy(apriltag_family_t *tf)
Definition:
tag25h9.c:134
codedata
static uint64_t codedata[35]
Definition:
tag25h9.c:31
apriltag_family::bit_y
uint32_t * bit_y
Definition:
apriltag.h:76
apriltag_family::bit_x
uint32_t * bit_x
Definition:
apriltag.h:75
apriltag_family::width_at_border
int width_at_border
Definition:
apriltag.h:69
apriltag_family::total_width
int total_width
Definition:
apriltag.h:70
apriltag
Author(s): Edwin Olson
, Max Krogius
autogenerated on Mon Jun 26 2023 02:26:12