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

Go to the source code of this file.

Classes

struct  wb_vision_control_status
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 

Macros

#define _XOPEN_SOURCE   700
 
#define VISION_CONTROL_STATUS_GENERATED
 
#define VISION_CONTROL_STATUS_C_STRUCT   wb_vision_control_status
 
#define VISION_CONTROL_STATUS_NUMBER_OF_VARIABLES   19
 
#define VISION_CONTROL_STATUS_DESC_BUFFER_SIZE   4555
 
#define VISION_CONTROL_STATUS_TO_STRING_BUFFER_SIZE   4291
 

Enumerations

enum  Resolutions {
  QQVGA , QVGA , VGA , HD_4VGA ,
  SVGA
}
 Resolutions Supported by Vision. More...
 
enum  VisionCamera { Top = 0 , Bottom , NUM_VISION_CAMERAS }
 Enum of available camera's that can be used by vision. More...
 
enum  NamedPipeline {
  Soccer , OpenChallenge , Streaming , Neural_Network ,
  OpenCVFaces , HTWK
}
 Enum listing available vision pipelines. More...
 
enum  StreamingType { Normal , Classified , Recognized }
 Streaming modes available in vision. More...
 
enum  SaveFileType { AI2 , AI3 , JPG , None }
 List of file types that vision can save images as. More...
 
enum  NeuralNetworkType { v2 , Vanilla , VGANet , BallOnly }
 List of neural network architectures that vision can run. More...
 

Functions

const char * wb_vision_control_status_description (const struct wb_vision_control_status *self, char *descString, size_t bufferSize)
 Convert to a description string. More...
 
const char * wb_vision_control_status_to_string (const struct wb_vision_control_status *self, char *toString, size_t bufferSize)
 Convert to a string. More...
 
struct wb_vision_control_statuswb_vision_control_status_from_string (struct wb_vision_control_status *self, const char *str)
 Convert from a string. More...
 
size_t wb_vision_control_status_to_network_serialised (const struct wb_vision_control_status *self, char *dst)
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 
size_t wb_vision_control_status_from_network_serialised (const char *src, struct wb_vision_control_status *dst)
 Network stream deserialisation. More...
 

Macro Definition Documentation

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   700

Definition at line 72 of file wb_vision_control_status.h.

◆ VISION_CONTROL_STATUS_C_STRUCT

#define VISION_CONTROL_STATUS_C_STRUCT   wb_vision_control_status

Definition at line 151 of file wb_vision_control_status.h.

◆ VISION_CONTROL_STATUS_DESC_BUFFER_SIZE

#define VISION_CONTROL_STATUS_DESC_BUFFER_SIZE   4555

Definition at line 155 of file wb_vision_control_status.h.

◆ VISION_CONTROL_STATUS_GENERATED

#define VISION_CONTROL_STATUS_GENERATED

Definition at line 150 of file wb_vision_control_status.h.

◆ VISION_CONTROL_STATUS_NUMBER_OF_VARIABLES

#define VISION_CONTROL_STATUS_NUMBER_OF_VARIABLES   19

Definition at line 152 of file wb_vision_control_status.h.

◆ VISION_CONTROL_STATUS_TO_STRING_BUFFER_SIZE

#define VISION_CONTROL_STATUS_TO_STRING_BUFFER_SIZE   4291

Definition at line 156 of file wb_vision_control_status.h.

Enumeration Type Documentation

◆ NamedPipeline

Enum listing available vision pipelines.

Enumerator
Soccer 

Soccer Pipeline.

OpenChallenge 

2013 Open Challange Pipeline

Streaming 

Pipeline that just streams images.

Neural_Network 

Pipeline to rec objects with a nn.

OpenCVFaces 

Pipeline to recognise faces.

HTWK 

Pipeline that runs htwk's image algorithms and post soccer object info to mipal whiteboard.

Definition at line 112 of file wb_vision_control_status.h.

◆ NeuralNetworkType

List of neural network architectures that vision can run.

Enumerator
v2 

Current default (separable convolutions)

Vanilla 

PB_FCN.

VGANet 

PB_FCN on VGA resolution.

BallOnly 

PB_FCN v2 binary classifier.

Definition at line 143 of file wb_vision_control_status.h.

◆ Resolutions

Resolutions Supported by Vision.

Enumerator
QQVGA 

160 x 120

QVGA 

320 x 240

VGA 

640 x 480

HD_4VGA 

1280x960

SVGA 

800 x 600

Definition at line 92 of file wb_vision_control_status.h.

◆ SaveFileType

List of file types that vision can save images as.

Enumerator
AI2 

Raw YUV422 Image.

AI3 

Raw YUV422 Image, with JSON image info blob.

JPG 

Compressed JPEG.

None 

Definition at line 133 of file wb_vision_control_status.h.

◆ StreamingType

Streaming modes available in vision.

Enumerator
Normal 

Images straight from camera.

Classified 

Images that has been segmented into recognised colours.

Recognized 

Image showing only objects that have been recognised NYI.

Definition at line 124 of file wb_vision_control_status.h.

◆ VisionCamera

Enum of available camera's that can be used by vision.

Enumerator
Top 

Top Camera on the nao.

Bottom 

Bottom Camera on the nao.

NUM_VISION_CAMERAS 

Number of cameras used in vision.

Definition at line 103 of file wb_vision_control_status.h.

Function Documentation

◆ wb_vision_control_status_description()

const char * wb_vision_control_status_description ( const struct wb_vision_control_status self,
char *  descString,
size_t  bufferSize 
)

◆ wb_vision_control_status_from_network_serialised()

◆ wb_vision_control_status_from_string()

struct wb_vision_control_status * wb_vision_control_status_from_string ( struct wb_vision_control_status self,
const char *  str 
)

◆ wb_vision_control_status_to_network_serialised()

size_t wb_vision_control_status_to_network_serialised ( const struct wb_vision_control_status self,
char *  dst 
)

WHITEBOARD_POSTER_STRING_CONVERSION.

Network stream serialisation

WHITEBOARD_POSTER_STRING_CONVERSION.

Definition at line 1140 of file wb_vision_control_status.c.

References htonl, and htonll.

◆ wb_vision_control_status_to_string()

const char * wb_vision_control_status_to_string ( const struct wb_vision_control_status self,
char *  toString,
size_t  bufferSize 
)