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#include <guunits/guunits.h>
90#include <gucoordinates/gucoordinates.h>
92#define LOCATION_GENERATED
93#define LOCATION_C_STRUCT wb_location
94#define LOCATION_NUMBER_OF_VARIABLES 5
96#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
97#define LOCATION_DESC_BUFFER_SIZE 108
98#define LOCATION_TO_STRING_BUFFER_SIZE 43
138#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
uint32_t distanceVariance
The variance of the distance.
uint32_t directionVariance
The variance of the direction.
int16_t direction
degrees, relative to the center of the nao torso.
uint8_t confidence
The type of sighting.
uint16_t distance
CM distance to the center point of the sighting.
size_t wb_location_to_network_serialised(const struct wb_location *self, char *dst)
Network stream serialisation.
const char * wb_location_description(const struct wb_location *self, char *descString, size_t bufferSize)
Convert to a description string.
const char * wb_location_to_string(const struct wb_location *self, char *toString, size_t bufferSize)
Convert to a string.
struct wb_location rr_coord_to_wb_location(const gu_relative_coordinate coord, const uint8_t confidence, const uint32_t distanceVariance, const uint32_t directionVariance)
WHITEBOARD_POSTER_STRING_CONVERSION.
struct gu_optional_relative_coordinate wb_location_to_opt_rr_coord(const struct wb_location location, const uint8_t confidence)
Converts a wb_location to a gu_optional_relative_coordinate.
struct wb_location * wb_location_from_string(struct wb_location *self, const char *str)
Convert from a string.
struct gu_relative_coordinate wb_location_to_rr_coord(const struct wb_location location)
Converts a wb_location to a gu_relative_coordinate.
size_t wb_location_from_network_serialised(const char *src, struct wb_location *dst)
Network stream deserialisation.