35 #ifndef SVHCONTROLLERFEEDBACK_H 36 #define SVHCONTROLLERFEEDBACK_H 98 feedbacks.push_back(feedback0);
99 feedbacks.push_back(feedback1);
100 feedbacks.push_back(feedback2);
101 feedbacks.push_back(feedback3);
102 feedbacks.push_back(feedback4);
103 feedbacks.push_back(feedback5);
104 feedbacks.push_back(feedback6);
105 feedbacks.push_back(feedback7);
106 feedbacks.push_back(feedback8);
118 feedbacks.insert(feedbacks.begin(), feedbacks.begin(), feedbacks.end());
169 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin();
176 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin();
192 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin();
199 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin();
213 for (std::vector<SVHControllerFeedback>::const_iterator it = cf.
feedbacks.begin();
217 o <<
"Chan " << i <<
" : " << *it;
225 #endif // SVHCONTROLLERFEEDBACK_H
bool operator==(const SVHControllerFeedbackAllChannels &other) const
Compares two SVHControllerFeedbackAllChannels objects.
int32_t position
Returned position value of the motor [Ticks].
SVHControllerFeedbackAllChannels(std::vector< SVHControllerFeedback > feedbacks)
Creates a SVHControllerFeedbackAllChannels structure from a vector.
driver_svh::ArrayBuilder & operator<<(driver_svh::ArrayBuilder &ab, const SVHControlCommand &data)
std::vector< SVHControllerFeedback > feedbacks
Vector holding multiple channels.
bool operator==(const SVHControllerFeedback &other) const
Compares two SVHControllerFeedback objects.
The SVHControllerFeedback saves the feedback of a single motor.
driver_svh::ArrayBuilder & operator>>(driver_svh::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
int16_t current
Returned current value of the motor [mA].
SVHControllerFeedbackAllChannels()
Constructs an empty SVHControllerFeedbackAllChannels objects, prefilled with 9 default channel feedba...
The SVHControllerFeedbackAllChannes saves the feedback of a all motors.
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...
SVHControllerFeedback(const int32_t &position=0, const int16_t ¤t=0)
standard constructor