60#ifndef wb_filtered_vision_object_h
61#define wb_filtered_vision_object_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
88#define FILTERED_VISION_OBJECT_GENERATED
89#define FILTERED_VISION_OBJECT_C_STRUCT wb_filtered_vision_object
90#define FILTERED_VISION_OBJECT_NUMBER_OF_VARIABLES 9
92#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
93#define FILTERED_VISION_OBJECT_DESC_BUFFER_SIZE 161
94#define FILTERED_VISION_OBJECT_TO_STRING_BUFFER_SIZE 88
154#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
bool pad1
16 bit padding .
int16_t x
centre x-coordinate in image (0,0) is the centre of the image, positive is to the right
int32_t frameCounter
incremented every time we do not see the object.
int16_t distance
distance to landmark in cm
uint64_t visibilityHistory
a 64-bit history of whether vision said visible 1 or not visible 0.
int16_t yaw
the Yaw in Degrees when the object was last used to generated filtered values.
int16_t ray_angle
In degrees, position of the object, positive is left, negative is right, with distance polar position...
int16_t y
centre y-coordinate in image, positive is upwards
bool isVisible
is this a credible sighting.
const char * wb_filtered_vision_object_to_string(const struct wb_filtered_vision_object *self, char *toString, size_t bufferSize)
Convert to a string.
const char * wb_filtered_vision_object_description(const struct wb_filtered_vision_object *self, char *descString, size_t bufferSize)
Convert to a description string.
struct wb_filtered_vision_object * wb_filtered_vision_object_from_string(struct wb_filtered_vision_object *self, const char *str)
Convert from a string.
size_t wb_filtered_vision_object_from_network_serialised(const char *src, struct wb_filtered_vision_object *dst)
Network stream deserialisation.
size_t wb_filtered_vision_object_to_network_serialised(const struct wb_filtered_vision_object *self, char *dst)
WHITEBOARD_POSTER_STRING_CONVERSION.