Cheetah Software  1.0
ControlParameterRequest Struct Reference

#include <ControlParameterInterface.h>

+ Collaboration diagram for ControlParameterRequest:

Public Member Functions

std::string toString ()
 

Public Attributes

char name [CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH]
 
u64 requestNumber = UINT64_MAX
 
ControlParameterValue value
 
ControlParameterValueKind parameterKind
 
ControlParameterRequestKind requestKind
 

Detailed Description

Definition at line 26 of file ControlParameterInterface.h.

Member Function Documentation

std::string ControlParameterRequest::toString ( )
inline

Definition at line 34 of file ControlParameterInterface.h.

References controlParameterRequestKindToString(), controlParameterValueKindToString(), controlParameterValueToString(), GET_ROBOT_PARAM_BY_NAME, GET_USER_PARAM_BY_NAME, SET_ROBOT_PARAM_BY_NAME, and SET_USER_PARAM_BY_NAME.

34  {
35  std::string result = "Request(" + std::to_string(requestNumber) + ") " +
37  " " +
39  " " + std::string(name) + " ";
40  switch (requestKind) {
42  result += "user is: ";
44  return result;
46  result += "user to: ";
48  return result;
50  result += "robot is: ";
52  return result;
54  result += "robot to: ";
56  return result;
57  default:
58  return result + " unknown request type!";
59  }
60  }
ControlParameterValueKind parameterKind
std::string controlParameterValueKindToString(ControlParameterValueKind valueKind)
ControlParameterRequestKind requestKind
char name[CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH]
std::string controlParameterRequestKindToString(ControlParameterRequestKind request)
std::string controlParameterValueToString(ControlParameterValue v, ControlParameterValueKind kind)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

char ControlParameterRequest::name[CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH]
Initial value:
=
""

Definition at line 27 of file ControlParameterInterface.h.

ControlParameterValueKind ControlParameterRequest::parameterKind

Definition at line 31 of file ControlParameterInterface.h.

ControlParameterRequestKind ControlParameterRequest::requestKind

Definition at line 32 of file ControlParameterInterface.h.

u64 ControlParameterRequest::requestNumber = UINT64_MAX

Definition at line 29 of file ControlParameterInterface.h.

ControlParameterValue ControlParameterRequest::value

Definition at line 30 of file ControlParameterInterface.h.


The documentation for this struct was generated from the following file: