gusimplewhiteboard
|
#include <gu_util.h>
#include <stdint.h>
#include <sys/time.h>
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_status * | wb_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... | |
#define _XOPEN_SOURCE 700 |
Definition at line 72 of file wb_vision_control_status.h.
#define VISION_CONTROL_STATUS_C_STRUCT wb_vision_control_status |
Definition at line 151 of file wb_vision_control_status.h.
#define VISION_CONTROL_STATUS_DESC_BUFFER_SIZE 4555 |
Definition at line 155 of file wb_vision_control_status.h.
#define VISION_CONTROL_STATUS_GENERATED |
Definition at line 150 of file wb_vision_control_status.h.
#define VISION_CONTROL_STATUS_NUMBER_OF_VARIABLES 19 |
Definition at line 152 of file wb_vision_control_status.h.
#define VISION_CONTROL_STATUS_TO_STRING_BUFFER_SIZE 4291 |
Definition at line 156 of file wb_vision_control_status.h.
enum NamedPipeline |
Enum listing available vision pipelines.
Definition at line 112 of file wb_vision_control_status.h.
enum 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.
enum 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.
enum 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.
enum 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.
enum 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.
const char * wb_vision_control_status_description | ( | const struct wb_vision_control_status * | self, |
char * | descString, | ||
size_t | bufferSize | ||
) |
Convert to a description string.
Definition at line 125 of file wb_vision_control_status.c.
References AI2, AI3, BallOnly, Bottom, Classified, HD_4VGA, HTWK, JPG, Neural_Network, None, Normal, NUM_VISION_CAMERAS, OpenChallenge, OpenCVFaces, QQVGA, QVGA, Recognized, Soccer, Streaming, SVGA, Top, v2, Vanilla, VGA, and VGANet.
Referenced by guWhiteboard::VisionControlStatus::description().
size_t wb_vision_control_status_from_network_serialised | ( | const char * | src, |
struct wb_vision_control_status * | dst | ||
) |
Network stream deserialisation.
Network stream deserialisation.
Definition at line 1379 of file wb_vision_control_status.c.
References wb_vision_control_status::cameraResolution, wb_vision_control_status::chooseCamera, wb_vision_control_status::colourCalibration, wb_vision_control_status::frameNumber, wb_vision_control_status::frameRate, wb_vision_control_status::imageInput, wb_vision_control_status::jpegStreamQuality, wb_vision_control_status::jpegStreamStride, wb_vision_control_status::networkBottom, wb_vision_control_status::networkTop, ntohl, ntohll, wb_vision_control_status::pipeline, wb_vision_control_status::pipelineRunning, wb_vision_control_status::runPipelineOnce, wb_vision_control_status::saveClassifiedImage, wb_vision_control_status::saveImage, wb_vision_control_status::selectedCamera, and wb_vision_control_status::streamingSource.
struct wb_vision_control_status * wb_vision_control_status_from_string | ( | struct wb_vision_control_status * | self, |
const char * | str | ||
) |
Convert from a string.
Definition at line 741 of file wb_vision_control_status.c.
References AI2, AI3, BallOnly, Bottom, Classified, HD_4VGA, HTWK, JPG, Neural_Network, None, Normal, NUM_VISION_CAMERAS, OpenChallenge, OpenCVFaces, QQVGA, QVGA, Recognized, Soccer, Streaming, SVGA, Top, v2, Vanilla, VGA, VGANet, and VISION_CONTROL_STATUS_DESC_BUFFER_SIZE.
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.
const char * wb_vision_control_status_to_string | ( | const struct wb_vision_control_status * | self, |
char * | toString, | ||
size_t | bufferSize | ||
) |
Convert to a string.
Definition at line 433 of file wb_vision_control_status.c.
References AI2, AI3, BallOnly, Bottom, Classified, HD_4VGA, HTWK, JPG, Neural_Network, None, Normal, NUM_VISION_CAMERAS, OpenChallenge, OpenCVFaces, QQVGA, QVGA, Recognized, Soccer, Streaming, SVGA, Top, v2, Vanilla, VGA, and VGANet.
Referenced by guWhiteboard::VisionControlStatus::to_string().