1 #ifndef _ROS_tf2_msgs_TF2Error_h
2 #define _ROS_tf2_msgs_TF2Error_h
31 virtual int serialize(
unsigned char *outbuffer)
const
34 *(outbuffer + offset + 0) = (this->
error >> (8 * 0)) & 0xFF;
35 offset +=
sizeof(this->
error);
36 uint32_t length_error_string = strlen(this->
error_string);
37 memcpy(outbuffer + offset, &length_error_string,
sizeof(uint32_t));
39 memcpy(outbuffer + offset, this->
error_string, length_error_string);
40 offset += length_error_string;
47 this->
error = ((uint8_t) (*(inbuffer + offset)));
48 offset +=
sizeof(this->
error);
49 uint32_t length_error_string;
50 memcpy(&length_error_string, (inbuffer + offset),
sizeof(uint32_t));
52 for(
unsigned int k= offset; k< offset+length_error_string; ++k){
53 inbuffer[k-1]=inbuffer[k];
55 inbuffer[offset+length_error_string-1]=0;
57 offset += length_error_string;
61 const char *
getType(){
return "tf2_msgs/TF2Error"; };
62 const char *
getMD5(){
return "bc6848fd6fd750c92e38575618a4917d"; };
Definition: TF2Error.h:23
uint8_t error
Definition: TF2Error.h:15
Definition: TF2Error.h:18
const char * getType()
Definition: TF2Error.h:61
Definition: TF2Error.h:17
const char * getMD5()
Definition: TF2Error.h:62
Definition: TF2Error.h:21
const char * error_string
Definition: TF2Error.h:16
Definition: TF2Error.h:12
TF2Error()
Definition: TF2Error.h:25
virtual int deserialize(unsigned char *inbuffer)
Definition: TF2Error.h:44
Definition: TF2Error.h:22
Definition: TF2Error.h:20
Definition: TF2Error.h:19
virtual int serialize(unsigned char *outbuffer) const
Definition: TF2Error.h:31