class Feedback

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
feedback_idMessageIdMessageId
status_flagsuint32Status flags
jitter_commuint32Jitter from the communication (in microseconds)
imu_acceleration_xfloat32IMU Measured acceleration (X-Axis) of the interface module (in meters per second ^ squared)
imu_acceleration_yfloat32IMU Measured acceleration (Y-Axis) of the interface module (in meters per second ^ squared)
imu_acceleration_zfloat32IMU Measured acceleration (Z-Axis) of the interface module (in meters per second ^ squared)
imu_angular_velocity_xfloat32IMU Measured angular velocity (X-Axis) of the interface module (in degrees per second)
imu_angular_velocity_yfloat32IMU Measured angular velocity (Y-Axis) of the interface module (in degrees per second)
imu_angular_velocity_zfloat32IMU Measured angular velocity (Z-Axis) of the interface module (in degrees per second)
voltagefloat32Voltage of the main board (in Volt)
temperature_corefloat32Microcontroller temperature (in degrees Celsius)
fault_bank_auint32Fault bank A (see InterconnectConfig.SafetyIdentifier)
fault_bank_buint32Fault bank B (see InterconnectConfig.SafetyIdentifier)
warning_bank_auint32Warning bank A (see InterconnectConfig.SafetyIdentifier)
warning_bank_buint32Warning bank B (see InterconnectConfig.SafetyIdentifier)
gripper_feedbackoneof:tool_feedback FeedbackGripper model tool feedback

Member functions

Function nameReturn typeInput typeDescription
has_feedback_id() constboolvoidReturns true if feedback_id is set.
feedback_id()const MessageId&voidReturns the current value of feedback_id. If feedback_id is not set, returns a MessageId with none of its fields set (possibly feedback_id::default_instance()).
mutable_feedback_id()MessageId *voidReturns a pointer to the mutable MessageId object that stores the field's value. If the field was not set prior to the call, then the returned MessageId will have none of its fields set (i.e. it will be identical to a newly-allocated MessageId). After calling this, has_feedback_id() will return true and feedback_id() will return a reference to the same instance of MessageId.
clear_feedback_id()voidvoidClears the value of the field. After calling this, has_feedback_id() will return false and feedback_id() will return the default value.
set_allocated_feedback_id()voidMessageId *Sets the MessageId object to the field and frees the previous field value if it exists. If the MessageId pointer is not NULL, the message takes ownership of the allocated MessageId object and has_ MessageId() will return true. Otherwise, if the feedback_id is NULL, the behavior is the same as calling clear_feedback_id().
release_feedback_id()MessageId *voidReleases the ownership of the field and returns the pointer of the MessageId object. After calling this, caller takes the ownership of the allocated MessageId object, has_feedback_id() will return false, and feedback_id() will return the default value.
status_flags()uint32voidReturns the current value of status_flags. If the status_flags is not set, returns 0.
set_status_flags()voiduint32Sets the value of status_flags. After calling this, status_flags() will return value.
clear_status_flags()voidvoidClears the value of status_flags. After calling this, status_flags() will return 0.
jitter_comm()uint32voidReturns the current value of jitter_comm. If the jitter_comm is not set, returns 0.
set_jitter_comm()voiduint32Sets the value of jitter_comm. After calling this, jitter_comm() will return value.
clear_jitter_comm()voidvoidClears the value of jitter_comm. After calling this, jitter_comm() will return 0.
imu_acceleration_x()float32voidReturns the current value of imu_acceleration_x. If the imu_acceleration_x is not set, returns 0.
set_imu_acceleration_x()voidfloat32Sets the value of imu_acceleration_x. After calling this, imu_acceleration_x() will return value.
clear_imu_acceleration_x()voidvoidClears the value of imu_acceleration_x. After calling this, imu_acceleration_x() will return 0.
imu_acceleration_y()float32voidReturns the current value of imu_acceleration_y. If the imu_acceleration_y is not set, returns 0.
set_imu_acceleration_y()voidfloat32Sets the value of imu_acceleration_y. After calling this, imu_acceleration_y() will return value.
clear_imu_acceleration_y()voidvoidClears the value of imu_acceleration_y. After calling this, imu_acceleration_y() will return 0.
imu_acceleration_z()float32voidReturns the current value of imu_acceleration_z. If the imu_acceleration_z is not set, returns 0.
set_imu_acceleration_z()voidfloat32Sets the value of imu_acceleration_z. After calling this, imu_acceleration_z() will return value.
clear_imu_acceleration_z()voidvoidClears the value of imu_acceleration_z. After calling this, imu_acceleration_z() will return 0.
imu_angular_velocity_x()float32voidReturns the current value of imu_angular_velocity_x. If the imu_angular_velocity_x is not set, returns 0.
set_imu_angular_velocity_x()voidfloat32Sets the value of imu_angular_velocity_x. After calling this, imu_angular_velocity_x() will return value.
clear_imu_angular_velocity_x()voidvoidClears the value of imu_angular_velocity_x. After calling this, imu_angular_velocity_x() will return 0.
imu_angular_velocity_y()float32voidReturns the current value of imu_angular_velocity_y. If the imu_angular_velocity_y is not set, returns 0.
set_imu_angular_velocity_y()voidfloat32Sets the value of imu_angular_velocity_y. After calling this, imu_angular_velocity_y() will return value.
clear_imu_angular_velocity_y()voidvoidClears the value of imu_angular_velocity_y. After calling this, imu_angular_velocity_y() will return 0.
imu_angular_velocity_z()float32voidReturns the current value of imu_angular_velocity_z. If the imu_angular_velocity_z is not set, returns 0.
set_imu_angular_velocity_z()voidfloat32Sets the value of imu_angular_velocity_z. After calling this, imu_angular_velocity_z() will return value.
clear_imu_angular_velocity_z()voidvoidClears the value of imu_angular_velocity_z. After calling this, imu_angular_velocity_z() will return 0.
voltage()float32voidReturns the current value of voltage. If the voltage is not set, returns 0.
set_voltage()voidfloat32Sets the value of voltage. After calling this, voltage() will return value.
clear_voltage()voidvoidClears the value of voltage. After calling this, voltage() will return 0.
temperature_core()float32voidReturns the current value of temperature_core. If the temperature_core is not set, returns 0.
set_temperature_core()voidfloat32Sets the value of temperature_core. After calling this, temperature_core() will return value.
clear_temperature_core()voidvoidClears the value of temperature_core. After calling this, temperature_core() will return 0.
fault_bank_a()uint32voidReturns the current value of fault_bank_a. If the fault_bank_a is not set, returns 0.
set_fault_bank_a()voiduint32Sets the value of fault_bank_a. After calling this, fault_bank_a() will return value.
clear_fault_bank_a()voidvoidClears the value of fault_bank_a. After calling this, fault_bank_a() will return 0.
fault_bank_b()uint32voidReturns the current value of fault_bank_b. If the fault_bank_b is not set, returns 0.
set_fault_bank_b()voiduint32Sets the value of fault_bank_b. After calling this, fault_bank_b() will return value.
clear_fault_bank_b()voidvoidClears the value of fault_bank_b. After calling this, fault_bank_b() will return 0.
warning_bank_a()uint32voidReturns the current value of warning_bank_a. If the warning_bank_a is not set, returns 0.
set_warning_bank_a()voiduint32Sets the value of warning_bank_a. After calling this, warning_bank_a() will return value.
clear_warning_bank_a()voidvoidClears the value of warning_bank_a. After calling this, warning_bank_a() will return 0.
warning_bank_b()uint32voidReturns the current value of warning_bank_b. If the warning_bank_b is not set, returns 0.
set_warning_bank_b()voiduint32Sets the value of warning_bank_b. After calling this, warning_bank_b() will return value.
clear_warning_bank_b()voidvoidClears the value of warning_bank_b. After calling this, warning_bank_b() will return 0.
has_gripper_feedback() constvoidvoidReturns the current value of the field if oneof case is kGripper_feedback. Otherwise, returns oneof:tool_feedback Feedback::default_instance()
gripper_feedback() constconst oneof:tool_feedback Feedback&voidReturns the current value of the field if oneof case is kGripper_feedback
mutable_gripper_feedback()oneof:tool_feedback Feedback*voidIf any other oneof field in the same oneof is set, calls clear_tool_feedback(). Sets the oneof case to kGripper_feedback and returns a pointer to the mutable oneof:tool_feedback Feedback object that stores the field's value. If the oneof case was not kGripper_feedback prior to the call, then the returned oneof:tool_feedback Feedback will have none of its fields set (i.e. it will be identical to a newly-allocated oneof:tool_feedback Feedback). After calling this, has_gripper_feedback() will return true, gripper_feedback() will return a reference to the same instance of oneof:tool_feedback Feedback and tool_feedback_case() will return kGripper_feedback
clear_gripper_feedback()voidvoidNothing will be changed if the oneof case is not kGripper_feedback. If the oneof case equals kGripper_feedback, frees the field and clears the oneof case. has_gripper_feedback() will return false, gripper_feedback() will return the default value and tool_feedback_case() will return TOOL_FEEDBACK_NOT_SET.
set_allocated_gripper_feedback()voidoneof:tool_feedback Feedback*Calls clear_tool_feedback(). If the oneof:tool_feedback Feedback pointer is not NULL: Sets the oneof:tool_feedback Feedback object to the field and sets the oneof case to kGripper_feedback. The message takes ownership of the allocated oneof:tool_feedback Feedback object, has_gripper_feedback() will return true and tool_feedback_case() will return kGripper_feedback. If the pointer is NULL, has_gripper_feedback() will return false and tool_feedback_case() will return TOOL_FEEDBACK_NOT_SET. (The behavior is like calling clear_tool_feedback())
release_gripper_feedback()oneof:tool_feedback Feedback*voidReturns NULL if oneof case is not kGripper_feedback. If the oneof case is kGripper_feedback, clears the oneof case, releases the ownership of the field and returns the pointer of the tool_feedback object. After calling this, caller takes the ownership of the allocated tool_feedback object, has_gripper_feedback() will return false, gripper_feedback() will return the default value and tool_feedback_case() will return TOOL_FEEDBACK_NOT_SET.

Parent topic: InterconnectCyclic (C++)