60#ifndef wb_vision_detection_goal_post_h
61#define wb_vision_detection_goal_post_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
103#include <guunits/guunits.h>
104#include <gucoordinates/gucoordinates.h>
107#include <guunits/guunits.h>
108#include <gucoordinates/gucoordinates.h>
111#include <guunits/guunits.h>
112#include <gucoordinates/gucoordinates.h>
115#include <guunits/guunits.h>
116#include <gucoordinates/gucoordinates.h>
118#define VISION_DETECTION_GOAL_POST_GENERATED
119#define VISION_DETECTION_GOAL_POST_C_STRUCT wb_vision_detection_goal_post
120#define VISION_DETECTION_GOAL_POST_NUMBER_OF_VARIABLES 6
122#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
123#define VISION_DETECTION_GOAL_POST_DESC_BUFFER_SIZE 3188
124#define VISION_DETECTION_GOAL_POST_TO_STRING_BUFFER_SIZE 3083
171#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
WHITEBOARD_POSTER_STRING_CONVERSION.
struct wb_pixel_coordinate topLeftCoordinate
The top left pixel coordinate.
enum GoalPostOptions sightingType
Goal post details.
enum GoalPostOrientation orientation
Goal post orientation.
struct wb_pixel_coordinate bottomRightCoordinate
The bottom right pixel coordinate.
struct wb_pixel_coordinate bottomLeftCoordinate
The bottom left pixel coordinate.
struct wb_pixel_coordinate topRightCoordinate
The top right pixel coordinate.
@ FullPostSeen
Saw the entire post.
@ PartialPostSeen
Saw part of a post. Part in the image, part out.
@ NoPostDetected
Didn't see a post.
size_t wb_vision_detection_goal_post_from_network_serialised(const char *src, struct wb_vision_detection_goal_post *dst)
Network stream deserialisation.
const char * wb_vision_detection_goal_post_to_string(const struct wb_vision_detection_goal_post *self, char *toString, size_t bufferSize)
Convert to a string.
gu_pixel_coordinate wb_vision_detection_goal_post_topRightCoordinate_px_coord(const struct wb_vision_detection_goal_post self, const uint16_t resWidth, const uint16_t resHeight)
gu_pixel_coordinate wb_vision_detection_goal_post_topLeftCoordinate_px_coord(const struct wb_vision_detection_goal_post self, const uint16_t resWidth, const uint16_t resHeight)
WHITEBOARD_POSTER_STRING_CONVERSION.
@ RightPost
This is the right post of a goal.
@ GenericPost
Could not determine post orientation.
@ LeftPost
This is the left post of a goal.
gu_pixel_coordinate wb_vision_detection_goal_post_bottomLeftCoordinate_px_coord(const struct wb_vision_detection_goal_post self, const uint16_t resWidth, const uint16_t resHeight)
gu_pixel_coordinate wb_vision_detection_goal_post_bottomRightCoordinate_px_coord(const struct wb_vision_detection_goal_post self, const uint16_t resWidth, const uint16_t resHeight)
struct wb_vision_detection_goal_post * wb_vision_detection_goal_post_from_string(struct wb_vision_detection_goal_post *self, const char *str)
Convert from a string.
size_t wb_vision_detection_goal_post_to_network_serialised(const struct wb_vision_detection_goal_post *self, char *dst)
Network stream serialisation.
const char * wb_vision_detection_goal_post_description(const struct wb_vision_detection_goal_post *self, char *descString, size_t bufferSize)
Convert to a description string.