6 #ifndef MASK_ROBOT_COMMAND_H_ 7 #define MASK_ROBOT_COMMAND_H_ 18 (std::vector<int16_t>& _strokes,
const std::vector<bool> _angles)
20 if (!_angles[28]) _strokes[23] = 0x7fff;
21 if (!_angles[29]) _strokes[22] = 0x7fff;
22 if (!_angles[0]) _strokes[21] = 0x7fff;
23 if (!_angles[2] && !_angles[1]) _strokes[20] = 0x7fff;
24 if (!_angles[2] && !_angles[1]) _strokes[19] = 0x7fff;
25 if (!_angles[13]) _strokes[18] = 0x7fff;
26 if (!_angles[8] && !_angles[9]) _strokes[17] = 0x7fff;
27 if (!_angles[8] && !_angles[9]) _strokes[16] = 0x7fff;
28 if (!_angles[7]) _strokes[15] = 0x7fff;
29 if (!_angles[6]) _strokes[14] = 0x7fff;
30 if (!_angles[5]) _strokes[13] = 0x7fff;
31 if (!_angles[4]) _strokes[12] = 0x7fff;
32 if (!_angles[3]) _strokes[11] = 0x7fff;
33 if (!_angles[27]) _strokes[10] = 0x7fff;
34 if (!_angles[22] && !_angles[23]) _strokes[9] = 0x7fff;
35 if (!_angles[22] && !_angles[23]) _strokes[8] = 0x7fff;
36 if (!_angles[21]) _strokes[7] = 0x7fff;
37 if (!_angles[20]) _strokes[6] = 0x7fff;
38 if (!_angles[19]) _strokes[5] = 0x7fff;
39 if (!_angles[18]) _strokes[4] = 0x7fff;
40 if (!_angles[17]) _strokes[3] = 0x7fff;
41 if (!_angles[16] && !_angles[15]) _strokes[2] = 0x7fff;
42 if (!_angles[16] && !_angles[15]) _strokes[1] = 0x7fff;
43 if (!_angles[14]) _strokes[0] = 0x7fff;
void MaskRobotCommand(std::vector< int16_t > &_strokes, const std::vector< bool > _angles)