ros melodic library with custom message

Dependents:   Robot_team1_QEI_Douglas Robot_team1

Committer:
scarter1
Date:
Wed Oct 30 14:59:49 2019 +0000
Revision:
0:020db18a476d
melodic library;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
scarter1 0:020db18a476d 1 #ifndef _ROS_SERVICE_GetModelProperties_h
scarter1 0:020db18a476d 2 #define _ROS_SERVICE_GetModelProperties_h
scarter1 0:020db18a476d 3 #include <stdint.h>
scarter1 0:020db18a476d 4 #include <string.h>
scarter1 0:020db18a476d 5 #include <stdlib.h>
scarter1 0:020db18a476d 6 #include "ros/msg.h"
scarter1 0:020db18a476d 7
scarter1 0:020db18a476d 8 namespace gazebo_msgs
scarter1 0:020db18a476d 9 {
scarter1 0:020db18a476d 10
scarter1 0:020db18a476d 11 static const char GETMODELPROPERTIES[] = "gazebo_msgs/GetModelProperties";
scarter1 0:020db18a476d 12
scarter1 0:020db18a476d 13 class GetModelPropertiesRequest : public ros::Msg
scarter1 0:020db18a476d 14 {
scarter1 0:020db18a476d 15 public:
scarter1 0:020db18a476d 16 typedef const char* _model_name_type;
scarter1 0:020db18a476d 17 _model_name_type model_name;
scarter1 0:020db18a476d 18
scarter1 0:020db18a476d 19 GetModelPropertiesRequest():
scarter1 0:020db18a476d 20 model_name("")
scarter1 0:020db18a476d 21 {
scarter1 0:020db18a476d 22 }
scarter1 0:020db18a476d 23
scarter1 0:020db18a476d 24 virtual int serialize(unsigned char *outbuffer) const
scarter1 0:020db18a476d 25 {
scarter1 0:020db18a476d 26 int offset = 0;
scarter1 0:020db18a476d 27 uint32_t length_model_name = strlen(this->model_name);
scarter1 0:020db18a476d 28 varToArr(outbuffer + offset, length_model_name);
scarter1 0:020db18a476d 29 offset += 4;
scarter1 0:020db18a476d 30 memcpy(outbuffer + offset, this->model_name, length_model_name);
scarter1 0:020db18a476d 31 offset += length_model_name;
scarter1 0:020db18a476d 32 return offset;
scarter1 0:020db18a476d 33 }
scarter1 0:020db18a476d 34
scarter1 0:020db18a476d 35 virtual int deserialize(unsigned char *inbuffer)
scarter1 0:020db18a476d 36 {
scarter1 0:020db18a476d 37 int offset = 0;
scarter1 0:020db18a476d 38 uint32_t length_model_name;
scarter1 0:020db18a476d 39 arrToVar(length_model_name, (inbuffer + offset));
scarter1 0:020db18a476d 40 offset += 4;
scarter1 0:020db18a476d 41 for(unsigned int k= offset; k< offset+length_model_name; ++k){
scarter1 0:020db18a476d 42 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 43 }
scarter1 0:020db18a476d 44 inbuffer[offset+length_model_name-1]=0;
scarter1 0:020db18a476d 45 this->model_name = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 46 offset += length_model_name;
scarter1 0:020db18a476d 47 return offset;
scarter1 0:020db18a476d 48 }
scarter1 0:020db18a476d 49
scarter1 0:020db18a476d 50 const char * getType(){ return GETMODELPROPERTIES; };
scarter1 0:020db18a476d 51 const char * getMD5(){ return "ea31c8eab6fc401383cf528a7c0984ba"; };
scarter1 0:020db18a476d 52
scarter1 0:020db18a476d 53 };
scarter1 0:020db18a476d 54
scarter1 0:020db18a476d 55 class GetModelPropertiesResponse : public ros::Msg
scarter1 0:020db18a476d 56 {
scarter1 0:020db18a476d 57 public:
scarter1 0:020db18a476d 58 typedef const char* _parent_model_name_type;
scarter1 0:020db18a476d 59 _parent_model_name_type parent_model_name;
scarter1 0:020db18a476d 60 typedef const char* _canonical_body_name_type;
scarter1 0:020db18a476d 61 _canonical_body_name_type canonical_body_name;
scarter1 0:020db18a476d 62 uint32_t body_names_length;
scarter1 0:020db18a476d 63 typedef char* _body_names_type;
scarter1 0:020db18a476d 64 _body_names_type st_body_names;
scarter1 0:020db18a476d 65 _body_names_type * body_names;
scarter1 0:020db18a476d 66 uint32_t geom_names_length;
scarter1 0:020db18a476d 67 typedef char* _geom_names_type;
scarter1 0:020db18a476d 68 _geom_names_type st_geom_names;
scarter1 0:020db18a476d 69 _geom_names_type * geom_names;
scarter1 0:020db18a476d 70 uint32_t joint_names_length;
scarter1 0:020db18a476d 71 typedef char* _joint_names_type;
scarter1 0:020db18a476d 72 _joint_names_type st_joint_names;
scarter1 0:020db18a476d 73 _joint_names_type * joint_names;
scarter1 0:020db18a476d 74 uint32_t child_model_names_length;
scarter1 0:020db18a476d 75 typedef char* _child_model_names_type;
scarter1 0:020db18a476d 76 _child_model_names_type st_child_model_names;
scarter1 0:020db18a476d 77 _child_model_names_type * child_model_names;
scarter1 0:020db18a476d 78 typedef bool _is_static_type;
scarter1 0:020db18a476d 79 _is_static_type is_static;
scarter1 0:020db18a476d 80 typedef bool _success_type;
scarter1 0:020db18a476d 81 _success_type success;
scarter1 0:020db18a476d 82 typedef const char* _status_message_type;
scarter1 0:020db18a476d 83 _status_message_type status_message;
scarter1 0:020db18a476d 84
scarter1 0:020db18a476d 85 GetModelPropertiesResponse():
scarter1 0:020db18a476d 86 parent_model_name(""),
scarter1 0:020db18a476d 87 canonical_body_name(""),
scarter1 0:020db18a476d 88 body_names_length(0), body_names(NULL),
scarter1 0:020db18a476d 89 geom_names_length(0), geom_names(NULL),
scarter1 0:020db18a476d 90 joint_names_length(0), joint_names(NULL),
scarter1 0:020db18a476d 91 child_model_names_length(0), child_model_names(NULL),
scarter1 0:020db18a476d 92 is_static(0),
scarter1 0:020db18a476d 93 success(0),
scarter1 0:020db18a476d 94 status_message("")
scarter1 0:020db18a476d 95 {
scarter1 0:020db18a476d 96 }
scarter1 0:020db18a476d 97
scarter1 0:020db18a476d 98 virtual int serialize(unsigned char *outbuffer) const
scarter1 0:020db18a476d 99 {
scarter1 0:020db18a476d 100 int offset = 0;
scarter1 0:020db18a476d 101 uint32_t length_parent_model_name = strlen(this->parent_model_name);
scarter1 0:020db18a476d 102 varToArr(outbuffer + offset, length_parent_model_name);
scarter1 0:020db18a476d 103 offset += 4;
scarter1 0:020db18a476d 104 memcpy(outbuffer + offset, this->parent_model_name, length_parent_model_name);
scarter1 0:020db18a476d 105 offset += length_parent_model_name;
scarter1 0:020db18a476d 106 uint32_t length_canonical_body_name = strlen(this->canonical_body_name);
scarter1 0:020db18a476d 107 varToArr(outbuffer + offset, length_canonical_body_name);
scarter1 0:020db18a476d 108 offset += 4;
scarter1 0:020db18a476d 109 memcpy(outbuffer + offset, this->canonical_body_name, length_canonical_body_name);
scarter1 0:020db18a476d 110 offset += length_canonical_body_name;
scarter1 0:020db18a476d 111 *(outbuffer + offset + 0) = (this->body_names_length >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 112 *(outbuffer + offset + 1) = (this->body_names_length >> (8 * 1)) & 0xFF;
scarter1 0:020db18a476d 113 *(outbuffer + offset + 2) = (this->body_names_length >> (8 * 2)) & 0xFF;
scarter1 0:020db18a476d 114 *(outbuffer + offset + 3) = (this->body_names_length >> (8 * 3)) & 0xFF;
scarter1 0:020db18a476d 115 offset += sizeof(this->body_names_length);
scarter1 0:020db18a476d 116 for( uint32_t i = 0; i < body_names_length; i++){
scarter1 0:020db18a476d 117 uint32_t length_body_namesi = strlen(this->body_names[i]);
scarter1 0:020db18a476d 118 varToArr(outbuffer + offset, length_body_namesi);
scarter1 0:020db18a476d 119 offset += 4;
scarter1 0:020db18a476d 120 memcpy(outbuffer + offset, this->body_names[i], length_body_namesi);
scarter1 0:020db18a476d 121 offset += length_body_namesi;
scarter1 0:020db18a476d 122 }
scarter1 0:020db18a476d 123 *(outbuffer + offset + 0) = (this->geom_names_length >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 124 *(outbuffer + offset + 1) = (this->geom_names_length >> (8 * 1)) & 0xFF;
scarter1 0:020db18a476d 125 *(outbuffer + offset + 2) = (this->geom_names_length >> (8 * 2)) & 0xFF;
scarter1 0:020db18a476d 126 *(outbuffer + offset + 3) = (this->geom_names_length >> (8 * 3)) & 0xFF;
scarter1 0:020db18a476d 127 offset += sizeof(this->geom_names_length);
scarter1 0:020db18a476d 128 for( uint32_t i = 0; i < geom_names_length; i++){
scarter1 0:020db18a476d 129 uint32_t length_geom_namesi = strlen(this->geom_names[i]);
scarter1 0:020db18a476d 130 varToArr(outbuffer + offset, length_geom_namesi);
scarter1 0:020db18a476d 131 offset += 4;
scarter1 0:020db18a476d 132 memcpy(outbuffer + offset, this->geom_names[i], length_geom_namesi);
scarter1 0:020db18a476d 133 offset += length_geom_namesi;
scarter1 0:020db18a476d 134 }
scarter1 0:020db18a476d 135 *(outbuffer + offset + 0) = (this->joint_names_length >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 136 *(outbuffer + offset + 1) = (this->joint_names_length >> (8 * 1)) & 0xFF;
scarter1 0:020db18a476d 137 *(outbuffer + offset + 2) = (this->joint_names_length >> (8 * 2)) & 0xFF;
scarter1 0:020db18a476d 138 *(outbuffer + offset + 3) = (this->joint_names_length >> (8 * 3)) & 0xFF;
scarter1 0:020db18a476d 139 offset += sizeof(this->joint_names_length);
scarter1 0:020db18a476d 140 for( uint32_t i = 0; i < joint_names_length; i++){
scarter1 0:020db18a476d 141 uint32_t length_joint_namesi = strlen(this->joint_names[i]);
scarter1 0:020db18a476d 142 varToArr(outbuffer + offset, length_joint_namesi);
scarter1 0:020db18a476d 143 offset += 4;
scarter1 0:020db18a476d 144 memcpy(outbuffer + offset, this->joint_names[i], length_joint_namesi);
scarter1 0:020db18a476d 145 offset += length_joint_namesi;
scarter1 0:020db18a476d 146 }
scarter1 0:020db18a476d 147 *(outbuffer + offset + 0) = (this->child_model_names_length >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 148 *(outbuffer + offset + 1) = (this->child_model_names_length >> (8 * 1)) & 0xFF;
scarter1 0:020db18a476d 149 *(outbuffer + offset + 2) = (this->child_model_names_length >> (8 * 2)) & 0xFF;
scarter1 0:020db18a476d 150 *(outbuffer + offset + 3) = (this->child_model_names_length >> (8 * 3)) & 0xFF;
scarter1 0:020db18a476d 151 offset += sizeof(this->child_model_names_length);
scarter1 0:020db18a476d 152 for( uint32_t i = 0; i < child_model_names_length; i++){
scarter1 0:020db18a476d 153 uint32_t length_child_model_namesi = strlen(this->child_model_names[i]);
scarter1 0:020db18a476d 154 varToArr(outbuffer + offset, length_child_model_namesi);
scarter1 0:020db18a476d 155 offset += 4;
scarter1 0:020db18a476d 156 memcpy(outbuffer + offset, this->child_model_names[i], length_child_model_namesi);
scarter1 0:020db18a476d 157 offset += length_child_model_namesi;
scarter1 0:020db18a476d 158 }
scarter1 0:020db18a476d 159 union {
scarter1 0:020db18a476d 160 bool real;
scarter1 0:020db18a476d 161 uint8_t base;
scarter1 0:020db18a476d 162 } u_is_static;
scarter1 0:020db18a476d 163 u_is_static.real = this->is_static;
scarter1 0:020db18a476d 164 *(outbuffer + offset + 0) = (u_is_static.base >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 165 offset += sizeof(this->is_static);
scarter1 0:020db18a476d 166 union {
scarter1 0:020db18a476d 167 bool real;
scarter1 0:020db18a476d 168 uint8_t base;
scarter1 0:020db18a476d 169 } u_success;
scarter1 0:020db18a476d 170 u_success.real = this->success;
scarter1 0:020db18a476d 171 *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF;
scarter1 0:020db18a476d 172 offset += sizeof(this->success);
scarter1 0:020db18a476d 173 uint32_t length_status_message = strlen(this->status_message);
scarter1 0:020db18a476d 174 varToArr(outbuffer + offset, length_status_message);
scarter1 0:020db18a476d 175 offset += 4;
scarter1 0:020db18a476d 176 memcpy(outbuffer + offset, this->status_message, length_status_message);
scarter1 0:020db18a476d 177 offset += length_status_message;
scarter1 0:020db18a476d 178 return offset;
scarter1 0:020db18a476d 179 }
scarter1 0:020db18a476d 180
scarter1 0:020db18a476d 181 virtual int deserialize(unsigned char *inbuffer)
scarter1 0:020db18a476d 182 {
scarter1 0:020db18a476d 183 int offset = 0;
scarter1 0:020db18a476d 184 uint32_t length_parent_model_name;
scarter1 0:020db18a476d 185 arrToVar(length_parent_model_name, (inbuffer + offset));
scarter1 0:020db18a476d 186 offset += 4;
scarter1 0:020db18a476d 187 for(unsigned int k= offset; k< offset+length_parent_model_name; ++k){
scarter1 0:020db18a476d 188 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 189 }
scarter1 0:020db18a476d 190 inbuffer[offset+length_parent_model_name-1]=0;
scarter1 0:020db18a476d 191 this->parent_model_name = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 192 offset += length_parent_model_name;
scarter1 0:020db18a476d 193 uint32_t length_canonical_body_name;
scarter1 0:020db18a476d 194 arrToVar(length_canonical_body_name, (inbuffer + offset));
scarter1 0:020db18a476d 195 offset += 4;
scarter1 0:020db18a476d 196 for(unsigned int k= offset; k< offset+length_canonical_body_name; ++k){
scarter1 0:020db18a476d 197 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 198 }
scarter1 0:020db18a476d 199 inbuffer[offset+length_canonical_body_name-1]=0;
scarter1 0:020db18a476d 200 this->canonical_body_name = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 201 offset += length_canonical_body_name;
scarter1 0:020db18a476d 202 uint32_t body_names_lengthT = ((uint32_t) (*(inbuffer + offset)));
scarter1 0:020db18a476d 203 body_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
scarter1 0:020db18a476d 204 body_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
scarter1 0:020db18a476d 205 body_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
scarter1 0:020db18a476d 206 offset += sizeof(this->body_names_length);
scarter1 0:020db18a476d 207 if(body_names_lengthT > body_names_length)
scarter1 0:020db18a476d 208 this->body_names = (char**)realloc(this->body_names, body_names_lengthT * sizeof(char*));
scarter1 0:020db18a476d 209 body_names_length = body_names_lengthT;
scarter1 0:020db18a476d 210 for( uint32_t i = 0; i < body_names_length; i++){
scarter1 0:020db18a476d 211 uint32_t length_st_body_names;
scarter1 0:020db18a476d 212 arrToVar(length_st_body_names, (inbuffer + offset));
scarter1 0:020db18a476d 213 offset += 4;
scarter1 0:020db18a476d 214 for(unsigned int k= offset; k< offset+length_st_body_names; ++k){
scarter1 0:020db18a476d 215 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 216 }
scarter1 0:020db18a476d 217 inbuffer[offset+length_st_body_names-1]=0;
scarter1 0:020db18a476d 218 this->st_body_names = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 219 offset += length_st_body_names;
scarter1 0:020db18a476d 220 memcpy( &(this->body_names[i]), &(this->st_body_names), sizeof(char*));
scarter1 0:020db18a476d 221 }
scarter1 0:020db18a476d 222 uint32_t geom_names_lengthT = ((uint32_t) (*(inbuffer + offset)));
scarter1 0:020db18a476d 223 geom_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
scarter1 0:020db18a476d 224 geom_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
scarter1 0:020db18a476d 225 geom_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
scarter1 0:020db18a476d 226 offset += sizeof(this->geom_names_length);
scarter1 0:020db18a476d 227 if(geom_names_lengthT > geom_names_length)
scarter1 0:020db18a476d 228 this->geom_names = (char**)realloc(this->geom_names, geom_names_lengthT * sizeof(char*));
scarter1 0:020db18a476d 229 geom_names_length = geom_names_lengthT;
scarter1 0:020db18a476d 230 for( uint32_t i = 0; i < geom_names_length; i++){
scarter1 0:020db18a476d 231 uint32_t length_st_geom_names;
scarter1 0:020db18a476d 232 arrToVar(length_st_geom_names, (inbuffer + offset));
scarter1 0:020db18a476d 233 offset += 4;
scarter1 0:020db18a476d 234 for(unsigned int k= offset; k< offset+length_st_geom_names; ++k){
scarter1 0:020db18a476d 235 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 236 }
scarter1 0:020db18a476d 237 inbuffer[offset+length_st_geom_names-1]=0;
scarter1 0:020db18a476d 238 this->st_geom_names = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 239 offset += length_st_geom_names;
scarter1 0:020db18a476d 240 memcpy( &(this->geom_names[i]), &(this->st_geom_names), sizeof(char*));
scarter1 0:020db18a476d 241 }
scarter1 0:020db18a476d 242 uint32_t joint_names_lengthT = ((uint32_t) (*(inbuffer + offset)));
scarter1 0:020db18a476d 243 joint_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
scarter1 0:020db18a476d 244 joint_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
scarter1 0:020db18a476d 245 joint_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
scarter1 0:020db18a476d 246 offset += sizeof(this->joint_names_length);
scarter1 0:020db18a476d 247 if(joint_names_lengthT > joint_names_length)
scarter1 0:020db18a476d 248 this->joint_names = (char**)realloc(this->joint_names, joint_names_lengthT * sizeof(char*));
scarter1 0:020db18a476d 249 joint_names_length = joint_names_lengthT;
scarter1 0:020db18a476d 250 for( uint32_t i = 0; i < joint_names_length; i++){
scarter1 0:020db18a476d 251 uint32_t length_st_joint_names;
scarter1 0:020db18a476d 252 arrToVar(length_st_joint_names, (inbuffer + offset));
scarter1 0:020db18a476d 253 offset += 4;
scarter1 0:020db18a476d 254 for(unsigned int k= offset; k< offset+length_st_joint_names; ++k){
scarter1 0:020db18a476d 255 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 256 }
scarter1 0:020db18a476d 257 inbuffer[offset+length_st_joint_names-1]=0;
scarter1 0:020db18a476d 258 this->st_joint_names = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 259 offset += length_st_joint_names;
scarter1 0:020db18a476d 260 memcpy( &(this->joint_names[i]), &(this->st_joint_names), sizeof(char*));
scarter1 0:020db18a476d 261 }
scarter1 0:020db18a476d 262 uint32_t child_model_names_lengthT = ((uint32_t) (*(inbuffer + offset)));
scarter1 0:020db18a476d 263 child_model_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
scarter1 0:020db18a476d 264 child_model_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
scarter1 0:020db18a476d 265 child_model_names_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
scarter1 0:020db18a476d 266 offset += sizeof(this->child_model_names_length);
scarter1 0:020db18a476d 267 if(child_model_names_lengthT > child_model_names_length)
scarter1 0:020db18a476d 268 this->child_model_names = (char**)realloc(this->child_model_names, child_model_names_lengthT * sizeof(char*));
scarter1 0:020db18a476d 269 child_model_names_length = child_model_names_lengthT;
scarter1 0:020db18a476d 270 for( uint32_t i = 0; i < child_model_names_length; i++){
scarter1 0:020db18a476d 271 uint32_t length_st_child_model_names;
scarter1 0:020db18a476d 272 arrToVar(length_st_child_model_names, (inbuffer + offset));
scarter1 0:020db18a476d 273 offset += 4;
scarter1 0:020db18a476d 274 for(unsigned int k= offset; k< offset+length_st_child_model_names; ++k){
scarter1 0:020db18a476d 275 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 276 }
scarter1 0:020db18a476d 277 inbuffer[offset+length_st_child_model_names-1]=0;
scarter1 0:020db18a476d 278 this->st_child_model_names = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 279 offset += length_st_child_model_names;
scarter1 0:020db18a476d 280 memcpy( &(this->child_model_names[i]), &(this->st_child_model_names), sizeof(char*));
scarter1 0:020db18a476d 281 }
scarter1 0:020db18a476d 282 union {
scarter1 0:020db18a476d 283 bool real;
scarter1 0:020db18a476d 284 uint8_t base;
scarter1 0:020db18a476d 285 } u_is_static;
scarter1 0:020db18a476d 286 u_is_static.base = 0;
scarter1 0:020db18a476d 287 u_is_static.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
scarter1 0:020db18a476d 288 this->is_static = u_is_static.real;
scarter1 0:020db18a476d 289 offset += sizeof(this->is_static);
scarter1 0:020db18a476d 290 union {
scarter1 0:020db18a476d 291 bool real;
scarter1 0:020db18a476d 292 uint8_t base;
scarter1 0:020db18a476d 293 } u_success;
scarter1 0:020db18a476d 294 u_success.base = 0;
scarter1 0:020db18a476d 295 u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
scarter1 0:020db18a476d 296 this->success = u_success.real;
scarter1 0:020db18a476d 297 offset += sizeof(this->success);
scarter1 0:020db18a476d 298 uint32_t length_status_message;
scarter1 0:020db18a476d 299 arrToVar(length_status_message, (inbuffer + offset));
scarter1 0:020db18a476d 300 offset += 4;
scarter1 0:020db18a476d 301 for(unsigned int k= offset; k< offset+length_status_message; ++k){
scarter1 0:020db18a476d 302 inbuffer[k-1]=inbuffer[k];
scarter1 0:020db18a476d 303 }
scarter1 0:020db18a476d 304 inbuffer[offset+length_status_message-1]=0;
scarter1 0:020db18a476d 305 this->status_message = (char *)(inbuffer + offset-1);
scarter1 0:020db18a476d 306 offset += length_status_message;
scarter1 0:020db18a476d 307 return offset;
scarter1 0:020db18a476d 308 }
scarter1 0:020db18a476d 309
scarter1 0:020db18a476d 310 const char * getType(){ return GETMODELPROPERTIES; };
scarter1 0:020db18a476d 311 const char * getMD5(){ return "b7f370938ef77b464b95f1bab3ec5028"; };
scarter1 0:020db18a476d 312
scarter1 0:020db18a476d 313 };
scarter1 0:020db18a476d 314
scarter1 0:020db18a476d 315 class GetModelProperties {
scarter1 0:020db18a476d 316 public:
scarter1 0:020db18a476d 317 typedef GetModelPropertiesRequest Request;
scarter1 0:020db18a476d 318 typedef GetModelPropertiesResponse Response;
scarter1 0:020db18a476d 319 };
scarter1 0:020db18a476d 320
scarter1 0:020db18a476d 321 }
scarter1 0:020db18a476d 322 #endif