60#ifndef wb_data_logger_h
61#define wb_data_logger_h
63#pragma clang diagnostic push
64#pragma clang diagnostic ignored "-Wreserved-id-macro"
68# define _POSIX_SOURCE 200112L
72# define _XOPEN_SOURCE 700
75# ifndef _DARWIN_C_SOURCE
76# define _DARWIN_C_SOURCE 200112L
78# ifndef __DARWIN_C_LEVEL
79# define __DARWIN_C_LEVEL 200112L
83#pragma clang diagnostic pop
88#define DATA_LOGGER_GENERATED
89#define DATA_LOGGER_C_STRUCT wb_data_logger
90#define DATA_LOGGER_NUMBER_OF_VARIABLES 7
92#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
93#define DATA_LOGGER_DESC_BUFFER_SIZE 197
94#define DATA_LOGGER_TO_STRING_BUFFER_SIZE 116
195#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
uint8_t dataSet
Enables selection of a data set to be logged (default = 0, joints and sensors) (NYI)
bool shouldExit
Switch to cause DataLogger to exit.
bool loggerRunning
Starts/Stops logging.
char machineName[40]
Name of the machine being monitored, but could be anything.
uint32_t currentSection
Section within the state (e.g.
char comment[30]
Comment to be attached to the logged data (NYI)
uint32_t currentState
The machine's currently executing state (use integer rather than the state's name)
const char * wb_data_logger_description(const struct wb_data_logger *self, char *descString, size_t bufferSize)
Convert to a description string.
size_t wb_data_logger_to_network_serialised(const struct wb_data_logger *self, char *dst)
WHITEBOARD_POSTER_STRING_CONVERSION.
struct wb_data_logger * wb_data_logger_from_string(struct wb_data_logger *self, const char *str)
Convert from a string.
const char * wb_data_logger_to_string(const struct wb_data_logger *self, char *toString, size_t bufferSize)
Convert to a string.
size_t wb_data_logger_from_network_serialised(const char *src, struct wb_data_logger *dst)
Network stream deserialisation.