60#ifndef wb_vision_detection_ball_h
61#define wb_vision_detection_ball_h
63#pragma clang diagnostic push
64#pragma clang diagnostic ignored "-Wreserved-id-macro"
68# define _POSIX_SOURCE 200112L
72# define _XOPEN_SOURCE 700
75# ifndef _DARWIN_C_SOURCE
76# define _DARWIN_C_SOURCE 200112L
78# ifndef __DARWIN_C_LEVEL
79# define __DARWIN_C_LEVEL 200112L
83#pragma clang diagnostic pop
89#ifndef BALL_OPTIONS_ENUM
90#define BALL_OPTIONS_ENUM
98#include <guunits/guunits.h>
99#include <gucoordinates/gucoordinates.h>
101#define VISION_DETECTION_BALL_GENERATED
102#define VISION_DETECTION_BALL_C_STRUCT wb_vision_detection_ball
103#define VISION_DETECTION_BALL_NUMBER_OF_VARIABLES 4
105#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
106#define VISION_DETECTION_BALL_DESC_BUFFER_SIZE 1097
107#define VISION_DETECTION_BALL_TO_STRING_BUFFER_SIZE 1041
144#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
WHITEBOARD_POSTER_STRING_CONVERSION.
struct wb_pixel_coordinate coordinate
The pixel coordinate.
uint16_t verticalRadius
The vertical radius in pixels.
enum BallOptions sightingType
Ball detection details.
uint16_t horizontalRadius
The horizontal radius in pixels.
size_t wb_vision_detection_ball_to_network_serialised(const struct wb_vision_detection_ball *self, char *dst)
Network stream serialisation.
size_t wb_vision_detection_ball_from_network_serialised(const char *src, struct wb_vision_detection_ball *dst)
Network stream deserialisation.
@ BallDetected
Ball Found.
@ NoBallDetected
No Ball Found.
struct wb_vision_detection_ball * wb_vision_detection_ball_from_string(struct wb_vision_detection_ball *self, const char *str)
Convert from a string.
const char * wb_vision_detection_ball_to_string(const struct wb_vision_detection_ball *self, char *toString, size_t bufferSize)
Convert to a string.
gu_pixel_coordinate wb_vision_detection_ball_coordinate_px_coord(const struct wb_vision_detection_ball self, const uint16_t resWidth, const uint16_t resHeight)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_vision_detection_ball_description(const struct wb_vision_detection_ball *self, char *descString, size_t bufferSize)
Convert to a description string.