gusimplewhiteboard
|
#include <gu_util.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | wb_landmark_sighting |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Macros | |
#define | _XOPEN_SOURCE 700 |
#define | LANDMARK_SIGHTING_GENERATED |
#define | LANDMARK_SIGHTING_C_STRUCT wb_landmark_sighting |
#define | LANDMARK_SIGHTING_NUMBER_OF_VARIABLES 3 |
#define | LANDMARK_SIGHTING_DESC_BUFFER_SIZE 560 |
#define | LANDMARK_SIGHTING_TO_STRING_BUFFER_SIZE 528 |
Functions | |
const char * | wb_landmark_sighting_description (const struct wb_landmark_sighting *self, char *descString, size_t bufferSize) |
Convert to a description string. More... | |
const char * | wb_landmark_sighting_to_string (const struct wb_landmark_sighting *self, char *toString, size_t bufferSize) |
Convert to a string. More... | |
struct wb_landmark_sighting * | wb_landmark_sighting_from_string (struct wb_landmark_sighting *self, const char *str) |
Convert from a string. More... | |
size_t | wb_landmark_sighting_to_network_serialised (const struct wb_landmark_sighting *self, char *dst) |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
size_t | wb_landmark_sighting_from_network_serialised (const char *src, struct wb_landmark_sighting *dst) |
Network stream deserialisation. More... | |
#define _XOPEN_SOURCE 700 |
Definition at line 72 of file wb_landmark_sighting.h.
#define LANDMARK_SIGHTING_C_STRUCT wb_landmark_sighting |
Definition at line 103 of file wb_landmark_sighting.h.
#define LANDMARK_SIGHTING_DESC_BUFFER_SIZE 560 |
Definition at line 107 of file wb_landmark_sighting.h.
#define LANDMARK_SIGHTING_GENERATED |
Definition at line 102 of file wb_landmark_sighting.h.
#define LANDMARK_SIGHTING_NUMBER_OF_VARIABLES 3 |
Definition at line 104 of file wb_landmark_sighting.h.
#define LANDMARK_SIGHTING_TO_STRING_BUFFER_SIZE 528 |
Definition at line 108 of file wb_landmark_sighting.h.
enum LandmarkSightingType |
Definition at line 88 of file wb_landmark_sighting.h.
const char * wb_landmark_sighting_description | ( | const struct wb_landmark_sighting * | self, |
char * | descString, | ||
size_t | bufferSize | ||
) |
Convert to a description string.
Definition at line 125 of file wb_landmark_sighting.c.
References BallSightingType, CornerHorizonSightingType, CornerLineSightingType, CrossLineSightingType, GenericGoalPostSightingType, GoalLandmarkSightingType, LeftGoalPostSightingType, LineHorizonSightingType, RightGoalPostSightingType, StraightLineSightingType, and TIntersectionLineSightingType.
Referenced by guWhiteboard::LandmarkSighting::description(), and wb_machine_filtered_localisation_vision_description().
size_t wb_landmark_sighting_from_network_serialised | ( | const char * | src, |
struct wb_landmark_sighting * | dst | ||
) |
Network stream deserialisation.
Network stream deserialisation.
Definition at line 524 of file wb_landmark_sighting.c.
References wb_landmark_sighting::direction, wb_landmark_sighting::distance, ntohl, ntohs, and wb_landmark_sighting::sightingType.
struct wb_landmark_sighting * wb_landmark_sighting_from_string | ( | struct wb_landmark_sighting * | self, |
const char * | str | ||
) |
Convert from a string.
Definition at line 301 of file wb_landmark_sighting.c.
References BallSightingType, CornerHorizonSightingType, CornerLineSightingType, CrossLineSightingType, GenericGoalPostSightingType, GoalLandmarkSightingType, LANDMARK_SIGHTING_DESC_BUFFER_SIZE, LeftGoalPostSightingType, LineHorizonSightingType, RightGoalPostSightingType, StraightLineSightingType, and TIntersectionLineSightingType.
Referenced by wb_machine_filtered_localisation_vision_from_string().
size_t wb_landmark_sighting_to_network_serialised | ( | const struct wb_landmark_sighting * | self, |
char * | dst | ||
) |
WHITEBOARD_POSTER_STRING_CONVERSION.
Network stream serialisation
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 471 of file wb_landmark_sighting.c.
const char * wb_landmark_sighting_to_string | ( | const struct wb_landmark_sighting * | self, |
char * | toString, | ||
size_t | bufferSize | ||
) |
Convert to a string.
Definition at line 213 of file wb_landmark_sighting.c.
References BallSightingType, CornerHorizonSightingType, CornerLineSightingType, CrossLineSightingType, GenericGoalPostSightingType, GoalLandmarkSightingType, LeftGoalPostSightingType, LineHorizonSightingType, RightGoalPostSightingType, StraightLineSightingType, and TIntersectionLineSightingType.
Referenced by guWhiteboard::LandmarkSighting::to_string(), and wb_machine_filtered_localisation_vision_to_string().