class TrajectoryErrorElement

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
error_typeuint32Error type
error_identifieruint32This field is deprecated and will be removed in a future release.
error_valuefloat32Erroneous value
min_valuefloat32Minimum permitted value
max_valuefloat32Maximum permitted value
indexuint32Actuator index
messagestringClarification message for the error
waypoint_indexuint32Waypoint index (if it applies)

Member functions

Function nameReturn typeInput typeDescription
error_type() constuint32voidReturns the current value of error_type. If the error_type is not set, returns 0.
set_error_type()voiduint32Sets the value of error_type. After calling this, error_type() will return value.
clear_error_type()voidvoidClears the value of error_type. After calling this, error_type() will return the empty string/empty bytes.
error_identifier() constuint32voidReturns the current value of error_identifier. If the error_identifier is not set, returns 0.
set_error_identifier()voiduint32Sets the value of error_identifier. After calling this, error_identifier() will return value.
clear_error_identifier()voidvoidClears the value of error_identifier. After calling this, error_identifier() will return the empty string/empty bytes.
error_value()float32voidReturns the current value of error_value. If the error_value is not set, returns 0.
set_error_value()voidfloat32Sets the value of error_value. After calling this, error_value() will return value.
clear_error_value()voidvoidClears the value of error_value. After calling this, error_value() will return 0.
min_value()float32voidReturns the current value of min_value. If the min_value is not set, returns 0.
set_min_value()voidfloat32Sets the value of min_value. After calling this, min_value() will return value.
clear_min_value()voidvoidClears the value of min_value. After calling this, min_value() will return 0.
max_value()float32voidReturns the current value of max_value. If the max_value is not set, returns 0.
set_max_value()voidfloat32Sets the value of max_value. After calling this, max_value() will return value.
clear_max_value()voidvoidClears the value of max_value. After calling this, max_value() will return 0.
index()uint32voidReturns the current value of index. If the index is not set, returns 0.
set_index()voiduint32Sets the value of index. After calling this, index() will return value.
clear_index()voidvoidClears the value of index. After calling this, index() will return 0.
message()const string&voidReturns the current value of message. If message is not set, returns the empty string/empty bytes.
set_message()voidconst string&Sets the value of message. After calling this, message() will return a copy of value.
set_message()voidstring&&(C++11 and beyond): Sets the value of message, moving from the passed string. After calling this, message() will return a copy of value.
set_message()voidconst char*Sets the value of message using a C-style null-terminated string. After calling this, message() will return a copy of value.
mutable_message()string *voidReturns a pointer to the mutable string object that stores message's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, message() will return whatever value is written into the given string.
clear_message()voidvoidClears the value of message. After calling this, message() will return the empty string/empty bytes.
set_allocated_message()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_message().
release_message()string *voidReleases the ownership of message and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and message() will return the empty string/empty bytes.
waypoint_index()uint32voidReturns the current value of waypoint_index. If the waypoint_index is not set, returns 0.
set_waypoint_index()voiduint32Sets the value of waypoint_index. After calling this, waypoint_index() will return value.
clear_waypoint_index()voidvoidClears the value of waypoint_index. After calling this, waypoint_index() will return 0.

Parent topic: Base (C++)