Just changed OUTPUT_SIZE and INPUT_SIZE in ros/node_handle.h
Dependents: WRS2020_mecanum_node
GoalStatusArray.h
00001 #ifndef _ROS_actionlib_msgs_GoalStatusArray_h 00002 #define _ROS_actionlib_msgs_GoalStatusArray_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "std_msgs/Header.h" 00009 #include "actionlib_msgs/GoalStatus.h" 00010 00011 namespace actionlib_msgs 00012 { 00013 00014 class GoalStatusArray : public ros::Msg 00015 { 00016 public: 00017 typedef std_msgs::Header _header_type; 00018 _header_type header; 00019 uint32_t status_list_length; 00020 typedef actionlib_msgs::GoalStatus _status_list_type; 00021 _status_list_type st_status_list; 00022 _status_list_type * status_list; 00023 00024 GoalStatusArray(): 00025 header(), 00026 status_list_length(0), status_list(NULL) 00027 { 00028 } 00029 00030 virtual int serialize(unsigned char *outbuffer) const 00031 { 00032 int offset = 0; 00033 offset += this->header.serialize(outbuffer + offset); 00034 *(outbuffer + offset + 0) = (this->status_list_length >> (8 * 0)) & 0xFF; 00035 *(outbuffer + offset + 1) = (this->status_list_length >> (8 * 1)) & 0xFF; 00036 *(outbuffer + offset + 2) = (this->status_list_length >> (8 * 2)) & 0xFF; 00037 *(outbuffer + offset + 3) = (this->status_list_length >> (8 * 3)) & 0xFF; 00038 offset += sizeof(this->status_list_length); 00039 for( uint32_t i = 0; i < status_list_length; i++){ 00040 offset += this->status_list[i].serialize(outbuffer + offset); 00041 } 00042 return offset; 00043 } 00044 00045 virtual int deserialize(unsigned char *inbuffer) 00046 { 00047 int offset = 0; 00048 offset += this->header.deserialize(inbuffer + offset); 00049 uint32_t status_list_lengthT = ((uint32_t) (*(inbuffer + offset))); 00050 status_list_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00051 status_list_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00052 status_list_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00053 offset += sizeof(this->status_list_length); 00054 if(status_list_lengthT > status_list_length) 00055 this->status_list = (actionlib_msgs::GoalStatus*)realloc(this->status_list, status_list_lengthT * sizeof(actionlib_msgs::GoalStatus)); 00056 status_list_length = status_list_lengthT; 00057 for( uint32_t i = 0; i < status_list_length; i++){ 00058 offset += this->st_status_list.deserialize(inbuffer + offset); 00059 memcpy( &(this->status_list[i]), &(this->st_status_list), sizeof(actionlib_msgs::GoalStatus)); 00060 } 00061 return offset; 00062 } 00063 00064 const char * getType(){ return "actionlib_msgs/GoalStatusArray"; }; 00065 const char * getMD5(){ return "8b2b82f13216d0a8ea88bd3af735e619"; }; 00066 00067 }; 00068 00069 } 00070 #endif
Generated on Tue Jul 12 2022 18:49:18 by 1.7.2