It has only one change from original one. I added robotfeedback message on it.
Dependents: RobotFeedback mobileRobotITU
Fork of ros_lib_indigo by
actionlib_msgs/GoalStatusArray.h
- Committer:
- garyservin
- Date:
- 2016-03-31
- Revision:
- 0:fd24f7ca9688
File content as of revision 0:fd24f7ca9688:
#ifndef _ROS_actionlib_msgs_GoalStatusArray_h #define _ROS_actionlib_msgs_GoalStatusArray_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "actionlib_msgs/GoalStatus.h" namespace actionlib_msgs { class GoalStatusArray : public ros::Msg { public: std_msgs::Header header; uint8_t status_list_length; actionlib_msgs::GoalStatus st_status_list; actionlib_msgs::GoalStatus * status_list; GoalStatusArray(): header(), status_list_length(0), status_list(NULL) { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; offset += this->header.serialize(outbuffer + offset); *(outbuffer + offset++) = status_list_length; *(outbuffer + offset++) = 0; *(outbuffer + offset++) = 0; *(outbuffer + offset++) = 0; for( uint8_t i = 0; i < status_list_length; i++){ offset += this->status_list[i].serialize(outbuffer + offset); } return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; offset += this->header.deserialize(inbuffer + offset); uint8_t status_list_lengthT = *(inbuffer + offset++); if(status_list_lengthT > status_list_length) this->status_list = (actionlib_msgs::GoalStatus*)realloc(this->status_list, status_list_lengthT * sizeof(actionlib_msgs::GoalStatus)); offset += 3; status_list_length = status_list_lengthT; for( uint8_t i = 0; i < status_list_length; i++){ offset += this->st_status_list.deserialize(inbuffer + offset); memcpy( &(this->status_list[i]), &(this->st_status_list), sizeof(actionlib_msgs::GoalStatus)); } return offset; } const char * getType(){ return "actionlib_msgs/GoalStatusArray"; }; const char * getMD5(){ return "8b2b82f13216d0a8ea88bd3af735e619"; }; }; } #endif