18 #ifndef _ROS_cob_hand_bridge_Status_h 19 #define _ROS_cob_hand_bridge_Status_h 56 virtual int serialize(
unsigned char *outbuffer)
const 59 *(outbuffer + offset + 0) = (this->seq >> (8 * 0)) & 0xFF;
60 *(outbuffer + offset + 1) = (this->seq >> (8 * 1)) & 0xFF;
61 *(outbuffer + offset + 2) = (this->seq >> (8 * 2)) & 0xFF;
62 *(outbuffer + offset + 3) = (this->seq >> (8 * 3)) & 0xFF;
63 offset +=
sizeof(this->
seq);
64 *(outbuffer + offset + 0) = (this->stamp.sec >> (8 * 0)) & 0xFF;
65 *(outbuffer + offset + 1) = (this->stamp.sec >> (8 * 1)) & 0xFF;
66 *(outbuffer + offset + 2) = (this->stamp.sec >> (8 * 2)) & 0xFF;
67 *(outbuffer + offset + 3) = (this->stamp.sec >> (8 * 3)) & 0xFF;
68 offset +=
sizeof(this->stamp.sec);
69 *(outbuffer + offset + 0) = (this->stamp.nsec >> (8 * 0)) & 0xFF;
70 *(outbuffer + offset + 1) = (this->stamp.nsec >> (8 * 1)) & 0xFF;
71 *(outbuffer + offset + 2) = (this->stamp.nsec >> (8 * 2)) & 0xFF;
72 *(outbuffer + offset + 3) = (this->stamp.nsec >> (8 * 3)) & 0xFF;
73 offset +=
sizeof(this->stamp.nsec);
74 *(outbuffer + offset + 0) = (this->status >> (8 * 0)) & 0xFF;
75 offset +=
sizeof(this->
status);
76 *(outbuffer + offset + 0) = (this->rc >> (8 * 0)) & 0xFF;
77 offset +=
sizeof(this->
rc);
78 *(outbuffer + offset + 0) = (this->pins >> (8 * 0)) & 0xFF;
79 *(outbuffer + offset + 1) = (this->pins >> (8 * 1)) & 0xFF;
80 *(outbuffer + offset + 2) = (this->pins >> (8 * 2)) & 0xFF;
81 *(outbuffer + offset + 3) = (this->pins >> (8 * 3)) & 0xFF;
82 offset +=
sizeof(this->
pins);
83 offset += this->joints.
serialize(outbuffer + offset);
90 this->seq = ((uint32_t) (*(inbuffer + offset)));
91 this->seq |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
92 this->seq |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
93 this->seq |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
94 offset +=
sizeof(this->
seq);
95 this->stamp.sec = ((uint32_t) (*(inbuffer + offset)));
96 this->stamp.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
97 this->stamp.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
98 this->stamp.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
99 offset +=
sizeof(this->stamp.sec);
100 this->stamp.nsec = ((uint32_t) (*(inbuffer + offset)));
101 this->stamp.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
102 this->stamp.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
103 this->stamp.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
104 offset +=
sizeof(this->stamp.nsec);
105 this->status = ((uint8_t) (*(inbuffer + offset)));
106 offset +=
sizeof(this->
status);
107 this->rc = ((uint8_t) (*(inbuffer + offset)));
108 offset +=
sizeof(this->
rc);
109 this->pins = ((uint32_t) (*(inbuffer + offset)));
110 this->pins |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
111 this->pins |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
112 this->pins |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
113 offset +=
sizeof(this->
pins);
114 offset += this->joints.
deserialize(inbuffer + offset);
118 const char *
getType(){
return "cob_hand_bridge/Status"; };
119 const char *
getMD5(){
return "d1e9c755cdcb7c29d72650239e9eb91a"; };
virtual int deserialize(unsigned char *inbuffer)
virtual int deserialize(unsigned char *inbuffer)
virtual int serialize(unsigned char *outbuffer) const
cob_hand_bridge::JointValues joints
virtual int serialize(unsigned char *outbuffer) const