28 #ifndef SVHCONTROLLERFEEDBACK_H 29 #define SVHCONTROLLERFEEDBACK_H 31 #include <icl_comm/ByteOrderConversion.h> 88 feedbacks.push_back(_feedback0);
89 feedbacks.push_back(_feedback1);
90 feedbacks.push_back(_feedback2);
91 feedbacks.push_back(_feedback3);
92 feedbacks.push_back(_feedback4);
93 feedbacks.push_back(_feedback5);
94 feedbacks.push_back(_feedback6);
95 feedbacks.push_back(_feedback7);
96 feedbacks.push_back(_feedback8);
106 feedbacks.insert(feedbacks.begin(),_feedbacks.begin(),_feedbacks.end());
153 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin() ; it != data.
feedbacks.end(); ++it)
158 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin() ; it != data.
feedbacks.end(); ++it)
170 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin() ; it != data.
feedbacks.end(); ++it)
175 for (std::vector<SVHControllerFeedback>::iterator it = data.
feedbacks.begin() ; it != data.
feedbacks.end(); ++it)
187 for (std::vector<SVHControllerFeedback>::const_iterator it = cf.
feedbacks.begin() ; it != cf.
feedbacks.end(); ++it,++i)
189 o <<
"Chan " << i <<
" : "<< *it;
197 #endif // SVHCONTROLLERFEEDBACK_H
int32_t position
Returned position value of the motor [Ticks].
icl_comm::ArrayBuilder & operator>>(icl_comm::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
std::vector< SVHControllerFeedback > feedbacks
Vector holding multiple channels.
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...
The SVHControllerFeedback saves the feedback of a single motor.
icl_comm::ArrayBuilder & operator<<(icl_comm::ArrayBuilder &ab, const SVHControlCommand &data)
int16_t current
Returned current value of the motor [mA].
SVHControllerFeedbackAllChannels(std::vector< SVHControllerFeedback > _feedbacks)
Creates a SVHControllerFeedbackAllChannels structure from a vector.
SVHControllerFeedbackAllChannels()
Constructs an empty SVHControllerFeedbackAllChannels objects, prefilled with 9 default channel feedba...
bool operator==(const SVHControllerFeedback &other) const
Compares two SVHControllerFeedback objects.
The SVHControllerFeedbackAllChannes saves the feedback of a all motors.
SVHControllerFeedback(const int32_t &_position=0, const int16_t &_current=0)
standard constructor