10 #ifndef PROJECT_CONTROLPARAMETERINTERFACE_H 11 #define PROJECT_CONTROLPARAMETERINTERFACE_H 29 u64 requestNumber = UINT64_MAX;
35 std::string result =
"Request(" + std::to_string(requestNumber) +
") " +
39 " " + std::string(name) +
" ";
40 switch (requestKind) {
42 result +=
"user is: ";
46 result +=
"user to: ";
50 result +=
"robot is: ";
54 result +=
"robot to: ";
58 return result +
" unknown request type!";
65 u64 requestNumber = UINT64_MAX;
74 std::string(name) == std::string(request.
name);
78 std::string result =
"Response(" + std::to_string(requestNumber) +
") " +
82 " " + std::string(name) +
" ";
84 switch (requestKind) {
86 result +=
"user to: ";
90 result +=
"user is: ";
94 result +=
"robot to: ";
98 result +=
"robot is: ";
102 return result +
" unknown request type!";
107 #endif // PROJECT_CONTROLPARAMETERINTERFACE_H ControlParameterRequestKind requestKind
ControlParameterValueKind parameterKind
ControlParameterValueKind
std::string controlParameterValueKindToString(ControlParameterValueKind valueKind)
ControlParameterValue value
ControlParameterRequestKind requestKind
bool isResponseTo(ControlParameterRequest &request)
char name[CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH]
ControlParameterValueKind parameterKind
#define CONTROL_PARAMETER_MAXIMUM_NAME_LENGTH
std::string controlParameterRequestKindToString(ControlParameterRequestKind request)
ControlParameterRequestKind
std::string controlParameterValueToString(ControlParameterValue v, ControlParameterValueKind kind)
ControlParameterValue value
Interface to set gains/control parameters for simulator and robot These are designed to be updated in...