Struct SVHControllerFeedbackAllChannels

Struct Documentation

struct SVHControllerFeedbackAllChannels

The SVHControllerFeedbackAllChannes saves the feedback of a all motors.

Public Functions

inline SVHControllerFeedbackAllChannels(const SVHControllerFeedback &feedback0, const SVHControllerFeedback &feedback1, const SVHControllerFeedback &feedback2, const SVHControllerFeedback &feedback3, const SVHControllerFeedback &feedback4, const SVHControllerFeedback &feedback5, const SVHControllerFeedback &feedback6, const SVHControllerFeedback &feedback7, const SVHControllerFeedback &feedback8)

Constructs a SVHControllerFeedbackAllChannels data structure from explicit ffedback elements.

Parameters:
  • _feedback0 – Feedback for the Thumb_Flexion

  • _feedback1 – Feedback for the Thumb_Opposition

  • _feedback2 – Feedback for the Index_Finger_Distal

  • _feedback3 – Feedback for the Index_Finger_Proximal

  • _feedback4 – Feedback for the Middle_Finger_Distal

  • _feedback5 – Feedback for the Middle_Finger_Proximal

  • _feedback6 – Feedback for the Ring_Finger

  • _feedback7 – Feedback for the Pinky

  • _feedback8 – Feedback for the Finger_Spread

inline SVHControllerFeedbackAllChannels(std::vector<SVHControllerFeedback> feedbacks)

Creates a SVHControllerFeedbackAllChannels structure from a vector.

Note

Alhough it is possible to create a feedback vector with more than 9 elements, that would be rather pointles as we only have 9 chanels less than 9 channels will result in only partial feedback

Parameters:

_feedbacks – Vector filled with SVHControllerFeedback elements.

inline SVHControllerFeedbackAllChannels()

Constructs an empty SVHControllerFeedbackAllChannels objects, prefilled with 9 default channel feedbacks, mainly usefull for deserialization.

inline bool operator==(const SVHControllerFeedbackAllChannels &other) const

Compares two SVHControllerFeedbackAllChannels objects.

Public Members

std::vector<SVHControllerFeedback> feedbacks

Vector holding multiple channels.