1 #ifndef _ROS_tf2_msgs_LookupTransformGoal_h
2 #define _ROS_tf2_msgs_LookupTransformGoal_h
36 virtual int serialize(
unsigned char *outbuffer)
const
39 uint32_t length_target_frame = strlen(this->
target_frame);
40 memcpy(outbuffer + offset, &length_target_frame,
sizeof(uint32_t));
42 memcpy(outbuffer + offset, this->
target_frame, length_target_frame);
43 offset += length_target_frame;
44 uint32_t length_source_frame = strlen(this->
source_frame);
45 memcpy(outbuffer + offset, &length_source_frame,
sizeof(uint32_t));
47 memcpy(outbuffer + offset, this->
source_frame, length_source_frame);
48 offset += length_source_frame;
49 *(outbuffer + offset + 0) = (this->
source_time.
sec >> (8 * 0)) & 0xFF;
50 *(outbuffer + offset + 1) = (this->
source_time.
sec >> (8 * 1)) & 0xFF;
51 *(outbuffer + offset + 2) = (this->
source_time.
sec >> (8 * 2)) & 0xFF;
52 *(outbuffer + offset + 3) = (this->
source_time.
sec >> (8 * 3)) & 0xFF;
59 *(outbuffer + offset + 0) = (this->
timeout.
sec >> (8 * 0)) & 0xFF;
60 *(outbuffer + offset + 1) = (this->
timeout.
sec >> (8 * 1)) & 0xFF;
61 *(outbuffer + offset + 2) = (this->
timeout.
sec >> (8 * 2)) & 0xFF;
62 *(outbuffer + offset + 3) = (this->
timeout.
sec >> (8 * 3)) & 0xFF;
64 *(outbuffer + offset + 0) = (this->
timeout.
nsec >> (8 * 0)) & 0xFF;
65 *(outbuffer + offset + 1) = (this->
timeout.
nsec >> (8 * 1)) & 0xFF;
66 *(outbuffer + offset + 2) = (this->
timeout.
nsec >> (8 * 2)) & 0xFF;
67 *(outbuffer + offset + 3) = (this->
timeout.
nsec >> (8 * 3)) & 0xFF;
69 *(outbuffer + offset + 0) = (this->
target_time.
sec >> (8 * 0)) & 0xFF;
70 *(outbuffer + offset + 1) = (this->
target_time.
sec >> (8 * 1)) & 0xFF;
71 *(outbuffer + offset + 2) = (this->
target_time.
sec >> (8 * 2)) & 0xFF;
72 *(outbuffer + offset + 3) = (this->
target_time.
sec >> (8 * 3)) & 0xFF;
79 uint32_t length_fixed_frame = strlen(this->
fixed_frame);
80 memcpy(outbuffer + offset, &length_fixed_frame,
sizeof(uint32_t));
82 memcpy(outbuffer + offset, this->
fixed_frame, length_fixed_frame);
83 offset += length_fixed_frame;
89 *(outbuffer + offset + 0) = (u_advanced.base >> (8 * 0)) & 0xFF;
97 uint32_t length_target_frame;
98 memcpy(&length_target_frame, (inbuffer + offset),
sizeof(uint32_t));
100 for(
unsigned int k= offset; k< offset+length_target_frame; ++k){
101 inbuffer[k-1]=inbuffer[k];
103 inbuffer[offset+length_target_frame-1]=0;
105 offset += length_target_frame;
106 uint32_t length_source_frame;
107 memcpy(&length_source_frame, (inbuffer + offset),
sizeof(uint32_t));
109 for(
unsigned int k= offset; k< offset+length_source_frame; ++k){
110 inbuffer[k-1]=inbuffer[k];
112 inbuffer[offset+length_source_frame-1]=0;
114 offset += length_source_frame;
116 this->
source_time.
sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
117 this->
source_time.
sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
118 this->
source_time.
sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
121 this->
source_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
122 this->
source_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
123 this->
source_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
125 this->
timeout.
sec = ((uint32_t) (*(inbuffer + offset)));
126 this->
timeout.
sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
127 this->
timeout.
sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
128 this->
timeout.
sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
130 this->
timeout.
nsec = ((uint32_t) (*(inbuffer + offset)));
131 this->
timeout.
nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
132 this->
timeout.
nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
133 this->
timeout.
nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
136 this->
target_time.
sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
137 this->
target_time.
sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
138 this->
target_time.
sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
141 this->
target_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
142 this->
target_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
143 this->
target_time.
nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
145 uint32_t length_fixed_frame;
146 memcpy(&length_fixed_frame, (inbuffer + offset),
sizeof(uint32_t));
148 for(
unsigned int k= offset; k< offset+length_fixed_frame; ++k){
149 inbuffer[k-1]=inbuffer[k];
151 inbuffer[offset+length_fixed_frame-1]=0;
153 offset += length_fixed_frame;
159 u_advanced.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
165 const char *
getType(){
return "tf2_msgs/LookupTransformGoal"; };
166 const char *
getMD5(){
return "35e3720468131d675a18bb6f3e5f22f8"; };
uint32_t nsec
Definition: time.h:50
uint32_t sec
Definition: time.h:50
int32_t sec
Definition: duration.h:48
Definition: duration.h:45
int32_t nsec
Definition: duration.h:48