tagCircle21h7.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 "
tagCircle21h7.h
"
30
31
static
uint64_t
codedata
[38] = {
32
0x0000000000157863UL,
33
0x0000000000047e28UL,
34
0x00000000001383edUL,
35
0x000000000000953cUL,
36
0x00000000000da68bUL,
37
0x00000000001cac50UL,
38
0x00000000000bb215UL,
39
0x000000000016ceeeUL,
40
0x000000000005d4b3UL,
41
0x00000000001ff751UL,
42
0x00000000000efd16UL,
43
0x0000000000072b3eUL,
44
0x0000000000163103UL,
45
0x0000000000106e56UL,
46
0x00000000001996b9UL,
47
0x00000000000c0234UL,
48
0x00000000000624d2UL,
49
0x00000000001fa985UL,
50
0x00000000000344a5UL,
51
0x00000000000762fbUL,
52
0x000000000019e92bUL,
53
0x0000000000043755UL,
54
0x000000000001a4f4UL,
55
0x000000000010fad8UL,
56
0x0000000000001b52UL,
57
0x000000000017e59fUL,
58
0x00000000000e6f70UL,
59
0x00000000000ed47aUL,
60
0x00000000000c9931UL,
61
0x0000000000014df2UL,
62
0x00000000000a06f1UL,
63
0x00000000000e5041UL,
64
0x000000000012ec03UL,
65
0x000000000016724eUL,
66
0x00000000000af1a5UL,
67
0x000000000008a8acUL,
68
0x0000000000015b39UL,
69
0x00000000001ec1e3UL,
70
};
71
apriltag_family_t
*
tagCircle21h7_create
()
72
{
73
apriltag_family_t
*tf = calloc(1,
sizeof
(
apriltag_family_t
));
74
tf->
name
= strdup(
"tagCircle21h7"
);
75
tf->
h
= 7;
76
tf->
ncodes
= 38;
77
tf->
codes
=
codedata
;
78
tf->
nbits
= 21;
79
tf->
bit_x
= calloc(21,
sizeof
(uint32_t));
80
tf->
bit_y
= calloc(21,
sizeof
(uint32_t));
81
tf->
bit_x
[0] = 1;
82
tf->
bit_y
[0] = -2;
83
tf->
bit_x
[1] = 2;
84
tf->
bit_y
[1] = -2;
85
tf->
bit_x
[2] = 3;
86
tf->
bit_y
[2] = -2;
87
tf->
bit_x
[3] = 1;
88
tf->
bit_y
[3] = 1;
89
tf->
bit_x
[4] = 2;
90
tf->
bit_y
[4] = 1;
91
tf->
bit_x
[5] = 6;
92
tf->
bit_y
[5] = 1;
93
tf->
bit_x
[6] = 6;
94
tf->
bit_y
[6] = 2;
95
tf->
bit_x
[7] = 6;
96
tf->
bit_y
[7] = 3;
97
tf->
bit_x
[8] = 3;
98
tf->
bit_y
[8] = 1;
99
tf->
bit_x
[9] = 3;
100
tf->
bit_y
[9] = 2;
101
tf->
bit_x
[10] = 3;
102
tf->
bit_y
[10] = 6;
103
tf->
bit_x
[11] = 2;
104
tf->
bit_y
[11] = 6;
105
tf->
bit_x
[12] = 1;
106
tf->
bit_y
[12] = 6;
107
tf->
bit_x
[13] = 3;
108
tf->
bit_y
[13] = 3;
109
tf->
bit_x
[14] = 2;
110
tf->
bit_y
[14] = 3;
111
tf->
bit_x
[15] = -2;
112
tf->
bit_y
[15] = 3;
113
tf->
bit_x
[16] = -2;
114
tf->
bit_y
[16] = 2;
115
tf->
bit_x
[17] = -2;
116
tf->
bit_y
[17] = 1;
117
tf->
bit_x
[18] = 1;
118
tf->
bit_y
[18] = 3;
119
tf->
bit_x
[19] = 1;
120
tf->
bit_y
[19] = 2;
121
tf->
bit_x
[20] = 2;
122
tf->
bit_y
[20] = 2;
123
tf->
width_at_border
= 5;
124
tf->
total_width
= 9;
125
tf->
reversed_border
=
true
;
126
return
tf;
127
}
128
129
void
tagCircle21h7_destroy
(
apriltag_family_t
*tf)
130
{
131
free(tf->
bit_x
);
132
free(tf->
bit_y
);
133
free(tf->
name
);
134
free(tf);
135
}
apriltag_family::ncodes
uint32_t ncodes
Definition:
apriltag.h:64
apriltag_family::reversed_border
bool reversed_border
Definition:
apriltag.h:71
tagCircle21h7_create
apriltag_family_t * tagCircle21h7_create()
Definition:
tagCircle21h7.c:71
apriltag_family::codes
uint64_t * codes
Definition:
apriltag.h:67
tagCircle21h7.h
tagCircle21h7_destroy
void tagCircle21h7_destroy(apriltag_family_t *tf)
Definition:
tagCircle21h7.c:129
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
codedata
static uint64_t codedata[38]
Definition:
tagCircle21h7.c:31
apriltag_family::bit_x
uint32_t * bit_x
Definition:
apriltag.h:75
apriltag_family::bit_y
uint32_t * bit_y
Definition:
apriltag.h:76
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 Sun Apr 20 2025 02:08:20