1 #ifndef _ROS_diffbot_msgs_PID_h
2 #define _ROS_diffbot_msgs_PID_h
29 virtual int serialize(
unsigned char *outbuffer)
const override
37 *(outbuffer + offset + 0) = (u_kp.base >> (8 * 0)) & 0xFF;
38 *(outbuffer + offset + 1) = (u_kp.base >> (8 * 1)) & 0xFF;
39 *(outbuffer + offset + 2) = (u_kp.base >> (8 * 2)) & 0xFF;
40 *(outbuffer + offset + 3) = (u_kp.base >> (8 * 3)) & 0xFF;
41 offset +=
sizeof(this->
kp);
47 *(outbuffer + offset + 0) = (u_ki.base >> (8 * 0)) & 0xFF;
48 *(outbuffer + offset + 1) = (u_ki.base >> (8 * 1)) & 0xFF;
49 *(outbuffer + offset + 2) = (u_ki.base >> (8 * 2)) & 0xFF;
50 *(outbuffer + offset + 3) = (u_ki.base >> (8 * 3)) & 0xFF;
51 offset +=
sizeof(this->
ki);
57 *(outbuffer + offset + 0) = (u_kd.base >> (8 * 0)) & 0xFF;
58 *(outbuffer + offset + 1) = (u_kd.base >> (8 * 1)) & 0xFF;
59 *(outbuffer + offset + 2) = (u_kd.base >> (8 * 2)) & 0xFF;
60 *(outbuffer + offset + 3) = (u_kd.base >> (8 * 3)) & 0xFF;
61 offset +=
sizeof(this->
kd);
73 u_kp.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
74 u_kp.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
75 u_kp.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
76 u_kp.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
78 offset +=
sizeof(this->
kp);
84 u_ki.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
85 u_ki.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
86 u_ki.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
87 u_ki.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
89 offset +=
sizeof(this->
ki);
95 u_kd.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
96 u_kd.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
97 u_kd.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
98 u_kd.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
100 offset +=
sizeof(this->
kd);
104 virtual const char *
getType()
override {
return "diffbot_msgs/PID"; };
105 virtual const char *
getMD5()
override {
return "08d0ca1f582560895ecba909de1d88ec"; };