1 #ifndef _ROS_sensor_msgs_JoyFeedback_h
2 #define _ROS_sensor_msgs_JoyFeedback_h
29 virtual int serialize(
unsigned char *outbuffer)
const
32 *(outbuffer + offset + 0) = (this->
type >> (8 * 0)) & 0xFF;
33 offset +=
sizeof(this->
type);
34 *(outbuffer + offset + 0) = (this->
id >> (8 * 0)) & 0xFF;
35 offset +=
sizeof(this->
id);
41 *(outbuffer + offset + 0) = (u_intensity.base >> (8 * 0)) & 0xFF;
42 *(outbuffer + offset + 1) = (u_intensity.base >> (8 * 1)) & 0xFF;
43 *(outbuffer + offset + 2) = (u_intensity.base >> (8 * 2)) & 0xFF;
44 *(outbuffer + offset + 3) = (u_intensity.base >> (8 * 3)) & 0xFF;
52 this->
type = ((uint8_t) (*(inbuffer + offset)));
53 offset +=
sizeof(this->
type);
54 this->
id = ((uint8_t) (*(inbuffer + offset)));
55 offset +=
sizeof(this->
id);
61 u_intensity.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
62 u_intensity.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
63 u_intensity.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
64 u_intensity.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
70 const char *
getType(){
return "sensor_msgs/JoyFeedback"; };
71 const char *
getMD5(){
return "f4dcd73460360d98f36e55ee7f2e46f1"; };
float intensity
Definition: JoyFeedback.h:17
uint8_t type
Definition: JoyFeedback.h:15
Definition: JoyFeedback.h:20
const char * getType()
Definition: JoyFeedback.h:70
Definition: JoyFeedback.h:19
const char * getMD5()
Definition: JoyFeedback.h:71
virtual int serialize(unsigned char *outbuffer) const
Definition: JoyFeedback.h:29
Definition: JoyFeedback.h:18
Definition: JoyFeedback.h:12
JoyFeedback()
Definition: JoyFeedback.h:22
uint8_t id
Definition: JoyFeedback.h:16
virtual int deserialize(unsigned char *inbuffer)
Definition: JoyFeedback.h:49