1 #ifndef _ROS_actionlib_msgs_GoalID_h
2 #define _ROS_actionlib_msgs_GoalID_h
10 namespace actionlib_msgs
25 virtual int serialize(
unsigned char *outbuffer)
const
28 *(outbuffer + offset + 0) = (this->
stamp.
sec >> (8 * 0)) & 0xFF;
29 *(outbuffer + offset + 1) = (this->
stamp.
sec >> (8 * 1)) & 0xFF;
30 *(outbuffer + offset + 2) = (this->
stamp.
sec >> (8 * 2)) & 0xFF;
31 *(outbuffer + offset + 3) = (this->
stamp.
sec >> (8 * 3)) & 0xFF;
33 *(outbuffer + offset + 0) = (this->
stamp.
nsec >> (8 * 0)) & 0xFF;
34 *(outbuffer + offset + 1) = (this->
stamp.
nsec >> (8 * 1)) & 0xFF;
35 *(outbuffer + offset + 2) = (this->
stamp.
nsec >> (8 * 2)) & 0xFF;
36 *(outbuffer + offset + 3) = (this->
stamp.
nsec >> (8 * 3)) & 0xFF;
38 uint32_t length_id = strlen(this->
id);
39 memcpy(outbuffer + offset, &length_id,
sizeof(uint32_t));
41 memcpy(outbuffer + offset, this->
id, length_id);
49 this->
stamp.
sec = ((uint32_t) (*(inbuffer + offset)));
50 this->
stamp.
sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
51 this->
stamp.
sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
52 this->
stamp.
sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
54 this->
stamp.
nsec = ((uint32_t) (*(inbuffer + offset)));
55 this->
stamp.
nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
56 this->
stamp.
nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
57 this->
stamp.
nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
60 memcpy(&length_id, (inbuffer + offset),
sizeof(uint32_t));
62 for(
unsigned int k= offset; k< offset+length_id; ++k){
63 inbuffer[k-1]=inbuffer[k];
65 inbuffer[offset+length_id-1]=0;
66 this->
id = (
char *)(inbuffer + offset-1);
71 const char *
getType(){
return "actionlib_msgs/GoalID"; };
72 const char *
getMD5(){
return "302881f31927c1df708a2dbab0e80ee8"; };
uint32_t nsec
Definition: time.h:50
uint32_t sec
Definition: time.h:50
GoalID()
Definition: GoalID.h:19
const char * getMD5()
Definition: GoalID.h:72
virtual int deserialize(unsigned char *inbuffer)
Definition: GoalID.h:46
const char * getType()
Definition: GoalID.h:71
virtual int serialize(unsigned char *outbuffer) const
Definition: GoalID.h:25
ros::Time stamp
Definition: GoalID.h:16
const char * id
Definition: GoalID.h:17