gusimplewhiteboard
wb_machine_filtered_vision.c
Go to the documentation of this file.
1/*
2 * file wb_machine_filtered_vision.c
3 *
4 * This file was generated by classgenerator from machine_filtered_vision.gen.
5 * DO NOT CHANGE MANUALLY!
6 *
7 * Copyright © 2021 Carl Lusty. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 *
16 * 2. Redistributions in binary form must reproduce the above
17 * copyright notice, this list of conditions and the following
18 * disclaimer in the documentation and/or other materials
19 * provided with the distribution.
20 *
21 * 3. All advertising materials mentioning features or use of this
22 * software must display the following acknowledgement:
23 *
24 * This product includes software developed by Carl Lusty.
25 *
26 * 4. Neither the name of the author nor the names of contributors
27 * may be used to endorse or promote products derived from this
28 * software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
34 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
36 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
37 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
38 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
39 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 * -----------------------------------------------------------------------
43 * This program is free software; you can redistribute it and/or
44 * modify it under the above terms or under the terms of the GNU
45 * General Public License as published by the Free Software Foundation;
46 * either version 2 of the License, or (at your option) any later version.
47 *
48 * This program is distributed in the hope that it will be useful,
49 * but WITHOUT ANY WARRANTY; without even the implied warranty of
50 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 * GNU General Public License for more details.
52 *
53 * You should have received a copy of the GNU General Public License
54 * along with this program; if not, see http://www.gnu.org/licenses/
55 * or write to the Free Software Foundation, Inc., 51 Franklin Street,
56 * Fifth Floor, Boston, MA 02110-1301, USA.
57 *
58 */
59
60#ifndef WHITEBOARD_POSTER_STRING_CONVERSION
61#define WHITEBOARD_POSTER_STRING_CONVERSION
62#endif // WHITEBOARD_POSTER_STRING_CONVERSION
63
65#include <stdio.h>
66#include <string.h>
67#include <stdlib.h>
68#include <ctype.h>
69#include <limits.h>
70
71/* Network byte order functions */
72#pragma clang diagnostic push
73#pragma clang diagnostic ignored "-Wunused-macros"
74#if defined(__linux)
75# include <endian.h>
76# include <byteswap.h>
77#elif defined(__APPLE__)
78# include <machine/endian.h> //Needed for __BYTE_ORDER
79# include <architecture/byte_order.h> //Needed for byte swap functions
80# define bswap_16(x) NXSwapShort(x)
81# define bswap_32(x) NXSwapInt(x)
82# define bswap_64(x) NXSwapLongLong(x)
83#elif defined(ESP8266)
84# define bswap_16(x) __builtin_bswap16(x)
85# define bswap_32(x) __builtin_bswap32(x)
86# define bswap_64(x) __builtin_bswap64(x)
87#else
88 //Manually define swap macros?
89#endif
90
91#if (!defined(__BYTE_ORDER) && !defined(__LITTLE_ENDIAN)) || (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN)
92# if !defined(htonll) && !defined(ntohll)
93# define htonll(x) bswap_64(x)
94# define ntohll(x) bswap_64(x)
95# endif
96# if !defined(htonl) && !defined(ntohl)
97# define htonl(x) bswap_32(x)
98# define ntohl(x) bswap_32(x)
99# endif
100# if !defined(htons) && !defined(ntohs)
101# define htons(x) bswap_16(x)
102# define ntohs(x) bswap_16(x)
103# endif
104#else
105# if !defined(htonll) && !defined(ntohll)
106# define htonll(x) (x)
107# define ntohll(x) (x)
108# endif
109# if !defined(htonl) && !defined(ntohl)
110# define htonl(x) (x)
111# define ntohl(x) (x)
112# endif
113# if !defined(htons) && !defined(ntohs)
114# define htons(x) (x)
115# define ntohs(x) (x)
116# endif
117#endif
118#pragma clang diagnostic pop
119
120
121
125const char* wb_machine_filtered_vision_description(const struct wb_machine_filtered_vision* self, char* descString, size_t bufferSize)
126{
127#pragma clang diagnostic push
128#pragma clang diagnostic ignored "-Wunused-variable"
129 size_t len = 0;
130 if (len >= bufferSize) {
131 return descString;
132 }
133 len += snprintf(descString + len, bufferSize - len, "ball_direction=%d", self->ball_direction);
134 if (len >= bufferSize) {
135 return descString;
136 }
137 len = gu_strlcat(descString, ", ", bufferSize);
138 if (len >= bufferSize) {
139 return descString;
140 }
141 len += snprintf(descString + len, bufferSize - len, "ball_distance=%u", self->ball_distance);
142 if (len >= bufferSize) {
143 return descString;
144 }
145 len = gu_strlcat(descString, ", ", bufferSize);
146 if (len >= bufferSize) {
147 return descString;
148 }
149 len = gu_strlcat(descString, self->ball_visible ? "ball_visible=true" : "ball_visible=false", bufferSize);
150 if (len >= bufferSize) {
151 return descString;
152 }
153 len = gu_strlcat(descString, ", ", bufferSize);
154 if (len >= bufferSize) {
155 return descString;
156 }
157 len += snprintf(descString + len, bufferSize - len, "goal_direction=%d", self->goal_direction);
158 if (len >= bufferSize) {
159 return descString;
160 }
161 len = gu_strlcat(descString, ", ", bufferSize);
162 if (len >= bufferSize) {
163 return descString;
164 }
165 len += snprintf(descString + len, bufferSize - len, "goal_distance=%u", self->goal_distance);
166 if (len >= bufferSize) {
167 return descString;
168 }
169 len = gu_strlcat(descString, ", ", bufferSize);
170 if (len >= bufferSize) {
171 return descString;
172 }
173 len = gu_strlcat(descString, self->goal_visible ? "goal_visible=true" : "goal_visible=false", bufferSize);
174 if (len >= bufferSize) {
175 return descString;
176 }
177 len = gu_strlcat(descString, ", ", bufferSize);
178 if (len >= bufferSize) {
179 return descString;
180 }
181 switch (self->goal_sightingType) {
182 case GoalSightingType:
183 {
184 len += snprintf(descString + len, bufferSize - len, "goal_sightingType=GoalSightingType");
185 break;
186 }
188 {
189 len += snprintf(descString + len, bufferSize - len, "goal_sightingType=LeftPostSightingType");
190 break;
191 }
192 case NoSightingType:
193 {
194 len += snprintf(descString + len, bufferSize - len, "goal_sightingType=NoSightingType");
195 break;
196 }
198 {
199 len += snprintf(descString + len, bufferSize - len, "goal_sightingType=RightPostSightingType");
200 break;
201 }
202 }
203 return descString;
204#pragma clang diagnostic pop
205}
206
210const char* wb_machine_filtered_vision_to_string(const struct wb_machine_filtered_vision* self, char* toString, size_t bufferSize)
211{
212#pragma clang diagnostic push
213#pragma clang diagnostic ignored "-Wunused-variable"
214 size_t len = 0;
215 if (len >= bufferSize) {
216 return toString;
217 }
218 len += snprintf(toString + len, bufferSize - len, "%d", self->ball_direction);
219 if (len >= bufferSize) {
220 return toString;
221 }
222 len = gu_strlcat(toString, ", ", bufferSize);
223 if (len >= bufferSize) {
224 return toString;
225 }
226 len += snprintf(toString + len, bufferSize - len, "%u", self->ball_distance);
227 if (len >= bufferSize) {
228 return toString;
229 }
230 len = gu_strlcat(toString, ", ", bufferSize);
231 if (len >= bufferSize) {
232 return toString;
233 }
234 len = gu_strlcat(toString, self->ball_visible ? "true" : "false", bufferSize);
235 if (len >= bufferSize) {
236 return toString;
237 }
238 len = gu_strlcat(toString, ", ", bufferSize);
239 if (len >= bufferSize) {
240 return toString;
241 }
242 len += snprintf(toString + len, bufferSize - len, "%d", self->goal_direction);
243 if (len >= bufferSize) {
244 return toString;
245 }
246 len = gu_strlcat(toString, ", ", bufferSize);
247 if (len >= bufferSize) {
248 return toString;
249 }
250 len += snprintf(toString + len, bufferSize - len, "%u", self->goal_distance);
251 if (len >= bufferSize) {
252 return toString;
253 }
254 len = gu_strlcat(toString, ", ", bufferSize);
255 if (len >= bufferSize) {
256 return toString;
257 }
258 len = gu_strlcat(toString, self->goal_visible ? "true" : "false", bufferSize);
259 if (len >= bufferSize) {
260 return toString;
261 }
262 len = gu_strlcat(toString, ", ", bufferSize);
263 if (len >= bufferSize) {
264 return toString;
265 }
266 switch (self->goal_sightingType) {
267 case GoalSightingType:
268 {
269 len += snprintf(toString + len, bufferSize - len, "GoalSightingType");
270 break;
271 }
273 {
274 len += snprintf(toString + len, bufferSize - len, "LeftPostSightingType");
275 break;
276 }
277 case NoSightingType:
278 {
279 len += snprintf(toString + len, bufferSize - len, "NoSightingType");
280 break;
281 }
283 {
284 len += snprintf(toString + len, bufferSize - len, "RightPostSightingType");
285 break;
286 }
287 }
288 return toString;
289#pragma clang diagnostic pop
290}
291
296{
297 size_t temp_length = strlen(str);
298 int length = (temp_length <= INT_MAX) ? ((int)((ssize_t)temp_length)) : -1;
299 if (length < 1 || length > MACHINE_FILTERED_VISION_DESC_BUFFER_SIZE) {
300 return self;
301 }
302 char var_str_buffer[MACHINE_FILTERED_VISION_DESC_BUFFER_SIZE + 1];
303 char* var_str = &var_str_buffer[0];
304 char key_buffer[18];
305 char* key = &key_buffer[0];
306 int bracecount = 0;
307 int startVar = 0;
308 int index = 0;
309 int startKey = 0;
310 int endKey = -1;
311 int varIndex = 0;
312 if (index == 0 && str[0] == '{') {
313 index = 1;
314 }
315 startVar = index;
316 startKey = startVar;
317 do {
318 for (int i = index; i < length; i++) {
319 index = i + 1;
320 if (bracecount == 0 && str[i] == '=') {
321 endKey = i - 1;
322 startVar = index;
323 continue;
324 }
325 if (bracecount == 0 && isspace(str[i])) {
326 startVar = index;
327 if (endKey == -1) {
328 startKey = index;
329 }
330 continue;
331 }
332 if (bracecount == 0 && str[i] == ',') {
333 index = i - 1;
334 break;
335 }
336 if (str[i] == '{') {
337 bracecount++;
338 continue;
339 }
340 if (str[i] == '}') {
341 bracecount--;
342 if (bracecount < 0) {
343 index = i - 1;
344 break;
345 }
346 }
347 if (i == length - 1) {
348 index = i;
349 }
350 }
351 if (endKey >= startKey && endKey - startKey < length) {
352 strncpy(key, str + startKey, ((size_t)(endKey - startKey) + 1));
353 key[(endKey - startKey) + 1] = 0;
354 } else {
355 key[0] = 0;
356 }
357 strncpy(var_str, str + startVar, ((size_t)(index - startVar) + 1));
358 var_str[(index - startVar) + 1] = 0;
359 bracecount = 0;
360 index += 2;
361 startVar = index;
362 startKey = startVar;
363 endKey = -1;
364 if (strlen(key) > 0) {
365 if (0 == strcmp("ball_direction", key)) {
366 varIndex = 0;
367 } else if (0 == strcmp("ball_distance", key)) {
368 varIndex = 1;
369 } else if (0 == strcmp("ball_visible", key)) {
370 varIndex = 2;
371 } else if (0 == strcmp("goal_direction", key)) {
372 varIndex = 3;
373 } else if (0 == strcmp("goal_distance", key)) {
374 varIndex = 4;
375 } else if (0 == strcmp("goal_visible", key)) {
376 varIndex = 5;
377 } else if (0 == strcmp("goal_sightingType", key)) {
378 varIndex = 6;
379 } else {
380 varIndex = -1;
381 }
382 }
383 switch (varIndex) {
384 case -1: { break; }
385 case 0:
386 {
387 self->ball_direction = ((int8_t)atoi(var_str));
388 break;
389 }
390 case 1:
391 {
392 self->ball_distance = ((uint16_t)atoi(var_str));
393 break;
394 }
395 case 2:
396 {
397 self->ball_visible = strcmp(var_str, "true") == 0 || strcmp(var_str, "1") == 0;
398 break;
399 }
400 case 3:
401 {
402 self->goal_direction = ((int8_t)atoi(var_str));
403 break;
404 }
405 case 4:
406 {
407 self->goal_distance = ((uint16_t)atoi(var_str));
408 break;
409 }
410 case 5:
411 {
412 self->goal_visible = strcmp(var_str, "true") == 0 || strcmp(var_str, "1") == 0;
413 break;
414 }
415 case 6:
416 {
417 if (strcmp("GoalSightingType", var_str) == 0) {
418#pragma clang diagnostic push
419#pragma clang diagnostic ignored "-Wbad-function-cast"
420 self->goal_sightingType = GoalSightingType;
421#pragma clang diagnostic pop
422 } else if (strcmp("LeftPostSightingType", var_str) == 0) {
423#pragma clang diagnostic push
424#pragma clang diagnostic ignored "-Wbad-function-cast"
425 self->goal_sightingType = LeftPostSightingType;
426#pragma clang diagnostic pop
427 } else if (strcmp("NoSightingType", var_str) == 0) {
428#pragma clang diagnostic push
429#pragma clang diagnostic ignored "-Wbad-function-cast"
430 self->goal_sightingType = NoSightingType;
431#pragma clang diagnostic pop
432 } else if (strcmp("RightPostSightingType", var_str) == 0) {
433#pragma clang diagnostic push
434#pragma clang diagnostic ignored "-Wbad-function-cast"
435 self->goal_sightingType = RightPostSightingType;
436#pragma clang diagnostic pop
437 } else {
438#pragma clang diagnostic push
439#pragma clang diagnostic ignored "-Wbad-function-cast"
440 self->goal_sightingType = ((enum GoalSightingType)atoi(var_str));
441#pragma clang diagnostic pop
442 }
443 break;
444 }
445 }
446 if (varIndex >= 0) {
447 varIndex++;
448 }
449 } while(index < length);
450 return self;
451}
452
453/*#ifdef WHITEBOARD_SERIALISATION*/
454
459{
460 uint16_t bit_offset = 0;
461 int8_t ball_direction_nbo = (self->ball_direction);
462 do {
463 int8_t b;
464 for (b = (8 - 1); b >= 0; b--) {
465 do {
466 uint16_t byte = bit_offset / 8;
467 uint16_t bit = 7 - (bit_offset % 8);
468 unsigned long newbit = !!((ball_direction_nbo >> b) & 1U);
469 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
470 bit_offset = bit_offset + 1;
471 } while(false);
472 }
473 } while(false);
474
475 uint16_t ball_distance_nbo = htons(self->ball_distance);
476 do {
477 int8_t b;
478 for (b = (16 - 1); b >= 0; b--) {
479 do {
480 uint16_t byte = bit_offset / 8;
481 uint16_t bit = 7 - (bit_offset % 8);
482 unsigned long newbit = !!((ball_distance_nbo >> b) & 1U);
483 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
484 bit_offset = bit_offset + 1;
485 } while(false);
486 }
487 } while(false);
488
489 do {
490 uint16_t byte = bit_offset / 8;
491 uint16_t bit = 7 - (bit_offset % 8);
492 unsigned long newbit = !!(self->ball_visible ? 1U : 0U);
493 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
494 bit_offset = bit_offset + 1;
495 } while(false);
496
497 int8_t goal_direction_nbo = (self->goal_direction);
498 do {
499 int8_t b;
500 for (b = (8 - 1); b >= 0; b--) {
501 do {
502 uint16_t byte = bit_offset / 8;
503 uint16_t bit = 7 - (bit_offset % 8);
504 unsigned long newbit = !!((goal_direction_nbo >> b) & 1U);
505 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
506 bit_offset = bit_offset + 1;
507 } while(false);
508 }
509 } while(false);
510
511 uint16_t goal_distance_nbo = htons(self->goal_distance);
512 do {
513 int8_t b;
514 for (b = (16 - 1); b >= 0; b--) {
515 do {
516 uint16_t byte = bit_offset / 8;
517 uint16_t bit = 7 - (bit_offset % 8);
518 unsigned long newbit = !!((goal_distance_nbo >> b) & 1U);
519 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
520 bit_offset = bit_offset + 1;
521 } while(false);
522 }
523 } while(false);
524
525 do {
526 uint16_t byte = bit_offset / 8;
527 uint16_t bit = 7 - (bit_offset % 8);
528 unsigned long newbit = !!(self->goal_visible ? 1U : 0U);
529 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
530 bit_offset = bit_offset + 1;
531 } while(false);
532
533 enum GoalSightingType goal_sightingType_nbo = htonl(self->goal_sightingType);
534 do {
535 int8_t b;
536 for (b = (32 - 1); b >= 0; b--) {
537 do {
538 uint16_t byte = bit_offset / 8;
539 uint16_t bit = 7 - (bit_offset % 8);
540 unsigned long newbit = !!((goal_sightingType_nbo >> b) & 1U);
541 dst[byte] ^= (-newbit ^ dst[byte]) & (1UL << bit);
542 bit_offset = bit_offset + 1;
543 } while(false);
544 }
545 } while(false);
546 //avoid unused variable warnings when you try to use an empty gen file or a gen file with no supported serialisation types.
547 (void)self;
548 (void)dst;
549 return bit_offset;
550}
551
556{
557 uint16_t bit_offset = 0;
558 do {
559 int8_t b;
560 for (b = (8 - 1); b >= 0; b--) {
561 do {
562 uint16_t byte = bit_offset / 8;
563 uint16_t bit = 7 - (bit_offset % 8);
564 char dataByte = src[byte];
565 unsigned char bitValue = (dataByte >> bit) & 1U;
566 dst->ball_direction ^= (-bitValue ^ dst->ball_direction) & (1UL << b);
567 bit_offset = bit_offset + 1;
568 } while(false);
569 }
570 } while(false);
571 dst->ball_direction = (dst->ball_direction);
572
573 do {
574 int8_t b;
575 for (b = (16 - 1); b >= 0; b--) {
576 do {
577 uint16_t byte = bit_offset / 8;
578 uint16_t bit = 7 - (bit_offset % 8);
579 char dataByte = src[byte];
580 unsigned char bitValue = (dataByte >> bit) & 1U;
581 dst->ball_distance ^= (-bitValue ^ dst->ball_distance) & (1UL << b);
582 bit_offset = bit_offset + 1;
583 } while(false);
584 }
585 } while(false);
586 dst->ball_distance = ntohs(dst->ball_distance);
587
588 do {
589 uint16_t byte = bit_offset / 8;
590 uint16_t bit = 7 - (bit_offset % 8);
591 char dataByte = src[byte];
592 unsigned char bitValue = (dataByte >> bit) & 1U;
593 dst->ball_visible = bitValue != 0;
594 bit_offset = bit_offset + 1;
595 } while(false);
596
597 do {
598 int8_t b;
599 for (b = (8 - 1); b >= 0; b--) {
600 do {
601 uint16_t byte = bit_offset / 8;
602 uint16_t bit = 7 - (bit_offset % 8);
603 char dataByte = src[byte];
604 unsigned char bitValue = (dataByte >> bit) & 1U;
605 dst->goal_direction ^= (-bitValue ^ dst->goal_direction) & (1UL << b);
606 bit_offset = bit_offset + 1;
607 } while(false);
608 }
609 } while(false);
610 dst->goal_direction = (dst->goal_direction);
611
612 do {
613 int8_t b;
614 for (b = (16 - 1); b >= 0; b--) {
615 do {
616 uint16_t byte = bit_offset / 8;
617 uint16_t bit = 7 - (bit_offset % 8);
618 char dataByte = src[byte];
619 unsigned char bitValue = (dataByte >> bit) & 1U;
620 dst->goal_distance ^= (-bitValue ^ dst->goal_distance) & (1UL << b);
621 bit_offset = bit_offset + 1;
622 } while(false);
623 }
624 } while(false);
625 dst->goal_distance = ntohs(dst->goal_distance);
626
627 do {
628 uint16_t byte = bit_offset / 8;
629 uint16_t bit = 7 - (bit_offset % 8);
630 char dataByte = src[byte];
631 unsigned char bitValue = (dataByte >> bit) & 1U;
632 dst->goal_visible = bitValue != 0;
633 bit_offset = bit_offset + 1;
634 } while(false);
635
636 do {
637 int8_t b;
638 for (b = (32 - 1); b >= 0; b--) {
639 do {
640 uint16_t byte = bit_offset / 8;
641 uint16_t bit = 7 - (bit_offset % 8);
642 char dataByte = src[byte];
643 unsigned char bitValue = (dataByte >> bit) & 1U;
644 dst->goal_sightingType ^= (-bitValue ^ dst->goal_sightingType) & (1UL << b);
645 bit_offset = bit_offset + 1;
646 } while(false);
647 }
648 } while(false);
650 //avoid unused variable warnings when you try to use an empty gen file or a gen file with no supported serialisation types.
651 (void)src;
652 (void)dst;
653 return bit_offset;
654}
655
656/*#endif // WHITEBOARD_SERIALISATION*/
WHITEBOARD_POSTER_STRING_CONVERSION.
uint16_t goal_distance
CM distance to the ball.
enum GoalSightingType goal_sightingType
The type of the goal sighting.
bool ball_visible
has the ball been seen enough by vision to be considered actually 'visible'.
bool goal_visible
has the ball been seen enough by vision to be considered actually 'visible'.
uint16_t ball_distance
CM distance to the ball.
int8_t goal_direction
degrees, relative to the center of the nao torso.
int8_t ball_direction
degrees, relative to the center of the nao torso.
size_t wb_machine_filtered_vision_to_network_serialised(const struct wb_machine_filtered_vision *self, char *dst)
Convert to a compressed, serialised, network byte order byte stream.
const char * wb_machine_filtered_vision_to_string(const struct wb_machine_filtered_vision *self, char *toString, size_t bufferSize)
Convert to a string.
#define htons(x)
struct wb_machine_filtered_vision * wb_machine_filtered_vision_from_string(struct wb_machine_filtered_vision *self, const char *str)
Convert from a string.
size_t wb_machine_filtered_vision_from_network_serialised(const char *src, struct wb_machine_filtered_vision *dst)
Convert from a compressed, serialised, network byte order byte stream.
#define ntohl(x)
const char * wb_machine_filtered_vision_description(const struct wb_machine_filtered_vision *self, char *descString, size_t bufferSize)
Convert to a description string.
#define ntohs(x)
#define htonl(x)
#define MACHINE_FILTERED_VISION_DESC_BUFFER_SIZE
@ LeftPostSightingType
@ RightPostSightingType