60#ifndef wb_vision_detection_horizon_h
61#define wb_vision_detection_horizon_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
98#include <guunits/guunits.h>
99#include <gucoordinates/gucoordinates.h>
102#include <guunits/guunits.h>
103#include <gucoordinates/gucoordinates.h>
106#include <guunits/guunits.h>
107#include <gucoordinates/gucoordinates.h>
109#define VISION_DETECTION_HORIZON_GENERATED
110#define VISION_DETECTION_HORIZON_C_STRUCT wb_vision_detection_horizon
111#define VISION_DETECTION_HORIZON_NUMBER_OF_VARIABLES 4
113#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
114#define VISION_DETECTION_HORIZON_DESC_BUFFER_SIZE 2115
115#define VISION_DETECTION_HORIZON_TO_STRING_BUFFER_SIZE 2055
158#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
WHITEBOARD_POSTER_STRING_CONVERSION.
enum HorizonOptions horizonType
Type of Horizon.
struct wb_pixel_coordinate leftCoordinate
Left horizon point pixel coordinate.
struct wb_pixel_coordinate rightCoordinate
Right horizon point pixel coordinate.
struct wb_pixel_coordinate centerCoordinate
Center horizon point pixel coordinate.
size_t wb_vision_detection_horizon_from_network_serialised(const char *src, struct wb_vision_detection_horizon *dst)
Network stream deserialisation.
gu_pixel_coordinate wb_vision_detection_horizon_leftCoordinate_px_coord(const struct wb_vision_detection_horizon self, const uint16_t resWidth, const uint16_t resHeight)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_vision_detection_horizon_to_string(const struct wb_vision_detection_horizon *self, char *toString, size_t bufferSize)
Convert to a string.
struct wb_vision_detection_horizon * wb_vision_detection_horizon_from_string(struct wb_vision_detection_horizon *self, const char *str)
Convert from a string.
gu_pixel_coordinate wb_vision_detection_horizon_rightCoordinate_px_coord(const struct wb_vision_detection_horizon self, const uint16_t resWidth, const uint16_t resHeight)
const char * wb_vision_detection_horizon_description(const struct wb_vision_detection_horizon *self, char *descString, size_t bufferSize)
Convert to a description string.
gu_pixel_coordinate wb_vision_detection_horizon_centerCoordinate_px_coord(const struct wb_vision_detection_horizon self, const uint16_t resWidth, const uint16_t resHeight)
size_t wb_vision_detection_horizon_to_network_serialised(const struct wb_vision_detection_horizon *self, char *dst)
Network stream serialisation.