18 #ifndef _ROS_SERVICE_UpdatePins_h 19 #define _ROS_SERVICE_UpdatePins_h 28 static const char UPDATEPINS[] =
"cob_hand_bridge/UpdatePins";
42 virtual int serialize(
unsigned char *outbuffer)
const 45 *(outbuffer + offset + 0) = (this->set_pins >> (8 * 0)) & 0xFF;
46 *(outbuffer + offset + 1) = (this->set_pins >> (8 * 1)) & 0xFF;
47 *(outbuffer + offset + 2) = (this->set_pins >> (8 * 2)) & 0xFF;
48 *(outbuffer + offset + 3) = (this->set_pins >> (8 * 3)) & 0xFF;
50 *(outbuffer + offset + 0) = (this->clear_pins >> (8 * 0)) & 0xFF;
51 *(outbuffer + offset + 1) = (this->clear_pins >> (8 * 1)) & 0xFF;
52 *(outbuffer + offset + 2) = (this->clear_pins >> (8 * 2)) & 0xFF;
53 *(outbuffer + offset + 3) = (this->clear_pins >> (8 * 3)) & 0xFF;
61 this->set_pins = ((uint32_t) (*(inbuffer + offset)));
62 this->set_pins |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
63 this->set_pins |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
64 this->set_pins |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
66 this->clear_pins = ((uint32_t) (*(inbuffer + offset)));
67 this->clear_pins |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
68 this->clear_pins |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
69 this->clear_pins |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
75 const char *
getMD5(){
return "54c611b52e3951b09beb1eddc8d57861"; };
89 virtual int serialize(
unsigned char *outbuffer)
const 96 u_success.real = this->success;
97 *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF;
98 offset +=
sizeof(this->success);
110 u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
111 this->success = u_success.real;
112 offset +=
sizeof(this->success);
117 const char *
getMD5(){
return "358e233cde0c8a8bcfea4ce193f8fc15"; };
virtual int deserialize(unsigned char *inbuffer)
static const char UPDATEPINS[]
virtual int serialize(unsigned char *outbuffer) const
UpdatePinsRequest Request
virtual int serialize(unsigned char *outbuffer) const
UpdatePinsResponse Response
virtual int deserialize(unsigned char *inbuffer)