It has only one change from original one. I added robotfeedback message on it.
Dependents: RobotFeedback mobileRobotITU
Fork of ros_lib_indigo by
gazebo_msgs/ContactsState.h
- Committer:
- randalthor
- Date:
- 2017-03-04
- Revision:
- 4:80d9bee5079a
- Parent:
- 0:fd24f7ca9688
File content as of revision 4:80d9bee5079a:
#ifndef _ROS_gazebo_msgs_ContactsState_h #define _ROS_gazebo_msgs_ContactsState_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "gazebo_msgs/ContactState.h" namespace gazebo_msgs { class ContactsState : public ros::Msg { public: std_msgs::Header header; uint8_t states_length; gazebo_msgs::ContactState st_states; gazebo_msgs::ContactState * states; ContactsState(): header(), states_length(0), states(NULL) { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; offset += this->header.serialize(outbuffer + offset); *(outbuffer + offset++) = states_length; *(outbuffer + offset++) = 0; *(outbuffer + offset++) = 0; *(outbuffer + offset++) = 0; for( uint8_t i = 0; i < states_length; i++){ offset += this->states[i].serialize(outbuffer + offset); } return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; offset += this->header.deserialize(inbuffer + offset); uint8_t states_lengthT = *(inbuffer + offset++); if(states_lengthT > states_length) this->states = (gazebo_msgs::ContactState*)realloc(this->states, states_lengthT * sizeof(gazebo_msgs::ContactState)); offset += 3; states_length = states_lengthT; for( uint8_t i = 0; i < states_length; i++){ offset += this->st_states.deserialize(inbuffer + offset); memcpy( &(this->states[i]), &(this->st_states), sizeof(gazebo_msgs::ContactState)); } return offset; } const char * getType(){ return "gazebo_msgs/ContactsState"; }; const char * getMD5(){ return "acbcb1601a8e525bf72509f18e6f668d"; }; }; } #endif