| 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, [email protected]. 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"cxx . . $ `<file>/tagCircle21h7.h`/ |
| 30 |
|
| 31 |
static uint64_tcxx . . $ uint64_t# codedatacxx . . $ 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 |
__attribute__((visibility("default"))) |
| 72 |
apriltag_family_tcxx . . $ apriltag_family_t# *tagCircle21h7_createcxx . . $ tagCircle21h7_create(caae9d924ba5d9e5).() |
| 73 |
{ |
| 74 |
apriltag_family_tcxx . . $ apriltag_family_t# *tf = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(apriltag_family_tcxx . . $ apriltag_family_t#)); |
| 75 |
tf->namecxx . . $ apriltag_family#name. = strdupcxx . . $ strdup(a8b8e32347182212).("tagCircle21h7"); |
| 76 |
tf->hcxx . . $ apriltag_family#h. = 7; |
| 77 |
tf->ncodescxx . . $ apriltag_family#ncodes. = 38; |
| 78 |
tf->codescxx . . $ apriltag_family#codes. = codedatacxx . . $ codedata.; |
| 79 |
tf->nbitscxx . . $ apriltag_family#nbits. = 21; |
| 80 |
tf->bit_xcxx . . $ apriltag_family#bit_x. = calloccxx . . $ calloc(63a7bf2941bfcd7a).(21, sizeof(uint32_tcxx . . $ uint32_t#)); |
| 81 |
tf->bit_ycxx . . $ apriltag_family#bit_y. = calloccxx . . $ calloc(63a7bf2941bfcd7a).(21, sizeof(uint32_tcxx . . $ uint32_t#)); |
| 82 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[0] = 1; |
| 83 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[0] = -2; |
| 84 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[1] = 2; |
| 85 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[1] = -2; |
| 86 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[2] = 3; |
| 87 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[2] = -2; |
| 88 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[3] = 1; |
| 89 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[3] = 1; |
| 90 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[4] = 2; |
| 91 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[4] = 1; |
| 92 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[5] = 6; |
| 93 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[5] = 1; |
| 94 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[6] = 6; |
| 95 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[6] = 2; |
| 96 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[7] = 6; |
| 97 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[7] = 3; |
| 98 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[8] = 3; |
| 99 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[8] = 1; |
| 100 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[9] = 3; |
| 101 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[9] = 2; |
| 102 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[10] = 3; |
| 103 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[10] = 6; |
| 104 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[11] = 2; |
| 105 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[11] = 6; |
| 106 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[12] = 1; |
| 107 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[12] = 6; |
| 108 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[13] = 3; |
| 109 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[13] = 3; |
| 110 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[14] = 2; |
| 111 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[14] = 3; |
| 112 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[15] = -2; |
| 113 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[15] = 3; |
| 114 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[16] = -2; |
| 115 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[16] = 2; |
| 116 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[17] = -2; |
| 117 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[17] = 1; |
| 118 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[18] = 1; |
| 119 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[18] = 3; |
| 120 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[19] = 1; |
| 121 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[19] = 2; |
| 122 |
tf->bit_xcxx . . $ apriltag_family#bit_x.[20] = 2; |
| 123 |
tf->bit_ycxx . . $ apriltag_family#bit_y.[20] = 2; |
| 124 |
tf->width_at_bordercxx . . $ apriltag_family#width_at_border. = 5; |
| 125 |
tf->total_widthcxx . . $ apriltag_family#total_width. = 9; |
| 126 |
tf->reversed_bordercxx . . $ apriltag_family#reversed_border. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 127 |
return tf; |
| 128 |
} |
| 129 |
|
| •130 |
__attribute__((visibility("default"))) |
| 131 |
void tagCircle21h7_destroycxx . . $ tagCircle21h7_destroy(f725702063eedb32).(apriltag_family_tcxx . . $ apriltag_family_t# *tf) |
| 132 |
{ |
| 133 |
freecxx . . $ free(5d22bdacc48458e8).(tf->bit_xcxx . . $ apriltag_family#bit_x.); |
| 134 |
freecxx . . $ free(5d22bdacc48458e8).(tf->bit_ycxx . . $ apriltag_family#bit_y.); |
| 135 |
freecxx . . $ free(5d22bdacc48458e8).(tf->namecxx . . $ apriltag_family#name.); |
| 136 |
freecxx . . $ free(5d22bdacc48458e8).(tf); |
| 137 |
} |