gusimplewhiteboard
wb_gu_vr_teleop_vulkan_control.h File Reference
#include <gu_util.h>
#include <stdint.h>
Include dependency graph for wb_gu_vr_teleop_vulkan_control.h:
This graph shows which files directly or indirectly include this file:

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_controlwb_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...
 

Macro Definition Documentation

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   700

Definition at line 72 of file wb_gu_vr_teleop_vulkan_control.h.

◆ GU_VR_TELEOP_VULKAN_CONTROL_C_STRUCT

#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.

◆ GU_VR_TELEOP_VULKAN_CONTROL_DESC_BUFFER_SIZE

#define GU_VR_TELEOP_VULKAN_CONTROL_DESC_BUFFER_SIZE   1058

Definition at line 109 of file wb_gu_vr_teleop_vulkan_control.h.

◆ GU_VR_TELEOP_VULKAN_CONTROL_GENERATED

#define GU_VR_TELEOP_VULKAN_CONTROL_GENERATED

Definition at line 104 of file wb_gu_vr_teleop_vulkan_control.h.

◆ GU_VR_TELEOP_VULKAN_CONTROL_NUMBER_OF_VARIABLES

#define GU_VR_TELEOP_VULKAN_CONTROL_NUMBER_OF_VARIABLES   2

Definition at line 106 of file wb_gu_vr_teleop_vulkan_control.h.

◆ GU_VR_TELEOP_VULKAN_CONTROL_TO_STRING_BUFFER_SIZE

#define GU_VR_TELEOP_VULKAN_CONTROL_TO_STRING_BUFFER_SIZE   1027

Definition at line 110 of file wb_gu_vr_teleop_vulkan_control.h.

Enumeration Type Documentation

◆ VRControlMovementOptions

Enumerator
VRResting 
VRStanding 
VRWalking 

Definition at line 88 of file wb_gu_vr_teleop_vulkan_control.h.

◆ VRControlWalkingOptions

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.

Function Documentation

◆ wb_gu_vr_teleop_vulkan_control_description()

const char * wb_gu_vr_teleop_vulkan_control_description ( const struct wb_gu_vr_teleop_vulkan_control self,
char *  descString,
size_t  bufferSize 
)

◆ wb_gu_vr_teleop_vulkan_control_from_network_serialised()

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.

◆ wb_gu_vr_teleop_vulkan_control_from_string()

◆ wb_gu_vr_teleop_vulkan_control_to_network_serialised()

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.

◆ wb_gu_vr_teleop_vulkan_control_to_string()

const char * wb_gu_vr_teleop_vulkan_control_to_string ( const struct wb_gu_vr_teleop_vulkan_control self,
char *  toString,
size_t  bufferSize 
)