|
gusimplewhiteboard
|
#include <gu_util.h>#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | wb_gu_vr_teleop_vulkan_control |
| WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Macros | |
| #define | _XOPEN_SOURCE 700 |
| #define | GU_VR_TELEOP_VULKAN_CONTROL_GENERATED |
| #define | GU_VR_TELEOP_VULKAN_CONTROL_C_STRUCT wb_gu_vr_teleop_vulkan_control |
| #define | GU_VR_TELEOP_VULKAN_CONTROL_NUMBER_OF_VARIABLES 2 |
| #define | GU_VR_TELEOP_VULKAN_CONTROL_DESC_BUFFER_SIZE 1058 |
| #define | GU_VR_TELEOP_VULKAN_CONTROL_TO_STRING_BUFFER_SIZE 1027 |
Enumerations | |
| enum | VRControlMovementOptions { VRResting = 0 , VRStanding , VRWalking } |
| enum | VRControlWalkingOptions { VRMovementForward = 0 , VRMovementBack , VRMovementLeft , VRMovementRight , VRMovementRotateLeft , VRMovementRotateRight , NUM_VR_CONTROL_WALKING_OPTIONS } |
Functions | |
| const char * | wb_gu_vr_teleop_vulkan_control_description (const struct wb_gu_vr_teleop_vulkan_control *self, char *descString, size_t bufferSize) |
| Convert to a description string. More... | |
| const char * | wb_gu_vr_teleop_vulkan_control_to_string (const struct wb_gu_vr_teleop_vulkan_control *self, char *toString, size_t bufferSize) |
| Convert to a string. More... | |
| struct wb_gu_vr_teleop_vulkan_control * | wb_gu_vr_teleop_vulkan_control_from_string (struct wb_gu_vr_teleop_vulkan_control *self, const char *str) |
| Convert from a string. More... | |
| size_t | wb_gu_vr_teleop_vulkan_control_to_network_serialised (const struct wb_gu_vr_teleop_vulkan_control *self, char *dst) |
| WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
| size_t | wb_gu_vr_teleop_vulkan_control_from_network_serialised (const char *src, struct wb_gu_vr_teleop_vulkan_control *dst) |
| Network stream deserialisation. More... | |
| #define _XOPEN_SOURCE 700 |
Definition at line 72 of file wb_gu_vr_teleop_vulkan_control.h.
| #define GU_VR_TELEOP_VULKAN_CONTROL_C_STRUCT wb_gu_vr_teleop_vulkan_control |
Definition at line 105 of file wb_gu_vr_teleop_vulkan_control.h.
| #define GU_VR_TELEOP_VULKAN_CONTROL_DESC_BUFFER_SIZE 1058 |
Definition at line 109 of file wb_gu_vr_teleop_vulkan_control.h.
| #define GU_VR_TELEOP_VULKAN_CONTROL_GENERATED |
Definition at line 104 of file wb_gu_vr_teleop_vulkan_control.h.
| #define GU_VR_TELEOP_VULKAN_CONTROL_NUMBER_OF_VARIABLES 2 |
Definition at line 106 of file wb_gu_vr_teleop_vulkan_control.h.
| #define GU_VR_TELEOP_VULKAN_CONTROL_TO_STRING_BUFFER_SIZE 1027 |
Definition at line 110 of file wb_gu_vr_teleop_vulkan_control.h.
| Enumerator | |
|---|---|
| VRResting | |
| VRStanding | |
| VRWalking | |
Definition at line 88 of file wb_gu_vr_teleop_vulkan_control.h.
| Enumerator | |
|---|---|
| VRMovementForward | |
| VRMovementBack | |
| VRMovementLeft | |
| VRMovementRight | |
| VRMovementRotateLeft | |
| VRMovementRotateRight | |
| NUM_VR_CONTROL_WALKING_OPTIONS | |
Definition at line 94 of file wb_gu_vr_teleop_vulkan_control.h.
| const char * wb_gu_vr_teleop_vulkan_control_description | ( | const struct wb_gu_vr_teleop_vulkan_control * | self, |
| char * | descString, | ||
| size_t | bufferSize | ||
| ) |
Convert to a description string.
Definition at line 125 of file wb_gu_vr_teleop_vulkan_control.c.
References NUM_VR_CONTROL_WALKING_OPTIONS, VRMovementBack, VRMovementForward, VRMovementLeft, VRMovementRight, VRMovementRotateLeft, VRMovementRotateRight, VRResting, VRStanding, and VRWalking.
Referenced by guWhiteboard::GuVrTeleopVulkanControl::description().
| size_t wb_gu_vr_teleop_vulkan_control_from_network_serialised | ( | const char * | src, |
| struct wb_gu_vr_teleop_vulkan_control * | dst | ||
| ) |
Network stream deserialisation.
Network stream deserialisation.
Definition at line 479 of file wb_gu_vr_teleop_vulkan_control.c.
References wb_gu_vr_teleop_vulkan_control::movementOptions, ntohl, and wb_gu_vr_teleop_vulkan_control::walkingOptions.
| struct wb_gu_vr_teleop_vulkan_control * wb_gu_vr_teleop_vulkan_control_from_string | ( | struct wb_gu_vr_teleop_vulkan_control * | self, |
| const char * | str | ||
| ) |
Convert from a string.
Definition at line 277 of file wb_gu_vr_teleop_vulkan_control.c.
References GU_VR_TELEOP_VULKAN_CONTROL_DESC_BUFFER_SIZE, NUM_VR_CONTROL_WALKING_OPTIONS, VRMovementBack, VRMovementForward, VRMovementLeft, VRMovementRight, VRMovementRotateLeft, VRMovementRotateRight, VRResting, VRStanding, and VRWalking.
| size_t wb_gu_vr_teleop_vulkan_control_to_network_serialised | ( | const struct wb_gu_vr_teleop_vulkan_control * | self, |
| char * | dst | ||
| ) |
WHITEBOARD_POSTER_STRING_CONVERSION.
Network stream serialisation
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 440 of file wb_gu_vr_teleop_vulkan_control.c.
References htonl.
| const char * wb_gu_vr_teleop_vulkan_control_to_string | ( | const struct wb_gu_vr_teleop_vulkan_control * | self, |
| char * | toString, | ||
| size_t | bufferSize | ||
| ) |
Convert to a string.
Definition at line 201 of file wb_gu_vr_teleop_vulkan_control.c.
References NUM_VR_CONTROL_WALKING_OPTIONS, VRMovementBack, VRMovementForward, VRMovementLeft, VRMovementRight, VRMovementRotateLeft, VRMovementRotateRight, VRResting, VRStanding, and VRWalking.
Referenced by guWhiteboard::GuVrTeleopVulkanControl::to_string().