$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_env_model/srv/AddCube.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_ADDCUBE_H 00003 #define SRS_ENV_MODEL_SERVICE_ADDCUBE_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "ros/service_traits.h" 00018 00019 #include "geometry_msgs/Pose.h" 00020 #include "geometry_msgs/Point.h" 00021 00022 00023 00024 namespace srs_env_model 00025 { 00026 template <class ContainerAllocator> 00027 struct AddCubeRequest_ { 00028 typedef AddCubeRequest_<ContainerAllocator> Type; 00029 00030 AddCubeRequest_() 00031 : frame_id() 00032 , pose() 00033 , size() 00034 { 00035 } 00036 00037 AddCubeRequest_(const ContainerAllocator& _alloc) 00038 : frame_id(_alloc) 00039 , pose(_alloc) 00040 , size(_alloc) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id; 00046 00047 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00048 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00049 00050 typedef ::geometry_msgs::Point_<ContainerAllocator> _size_type; 00051 ::geometry_msgs::Point_<ContainerAllocator> size; 00052 00053 00054 private: 00055 static const char* __s_getDataType_() { return "srs_env_model/AddCubeRequest"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "126cfaa4843d924510ec6ea45df9654e"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getServerMD5Sum_() { return "126cfaa4843d924510ec6ea45df9654e"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "string frame_id\n\ 00077 geometry_msgs/Pose pose\n\ 00078 geometry_msgs/Point size\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: geometry_msgs/Pose\n\ 00082 # A representation of pose in free space, composed of postion and orientation. \n\ 00083 Point position\n\ 00084 Quaternion orientation\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: geometry_msgs/Point\n\ 00088 # This contains the position of a point in free space\n\ 00089 float64 x\n\ 00090 float64 y\n\ 00091 float64 z\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Quaternion\n\ 00095 # This represents an orientation in free space in quaternion form.\n\ 00096 \n\ 00097 float64 x\n\ 00098 float64 y\n\ 00099 float64 z\n\ 00100 float64 w\n\ 00101 \n\ 00102 "; } 00103 public: 00104 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00105 00106 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00109 { 00110 ros::serialization::OStream stream(write_ptr, 1000000000); 00111 ros::serialization::serialize(stream, frame_id); 00112 ros::serialization::serialize(stream, pose); 00113 ros::serialization::serialize(stream, size); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, frame_id); 00121 ros::serialization::deserialize(stream, pose); 00122 ros::serialization::deserialize(stream, size); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(frame_id); 00130 size += ros::serialization::serializationLength(pose); 00131 size += ros::serialization::serializationLength(size); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::srs_env_model::AddCubeRequest_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct AddCubeRequest 00139 typedef ::srs_env_model::AddCubeRequest_<std::allocator<void> > AddCubeRequest; 00140 00141 typedef boost::shared_ptr< ::srs_env_model::AddCubeRequest> AddCubeRequestPtr; 00142 typedef boost::shared_ptr< ::srs_env_model::AddCubeRequest const> AddCubeRequestConstPtr; 00143 00144 00145 template <class ContainerAllocator> 00146 struct AddCubeResponse_ { 00147 typedef AddCubeResponse_<ContainerAllocator> Type; 00148 00149 AddCubeResponse_() 00150 { 00151 } 00152 00153 AddCubeResponse_(const ContainerAllocator& _alloc) 00154 { 00155 } 00156 00157 00158 private: 00159 static const char* __s_getDataType_() { return "srs_env_model/AddCubeResponse"; } 00160 public: 00161 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00162 00163 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00164 00165 private: 00166 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00169 00170 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00171 00172 private: 00173 static const char* __s_getServerMD5Sum_() { return "126cfaa4843d924510ec6ea45df9654e"; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00176 00177 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00178 00179 private: 00180 static const char* __s_getMessageDefinition_() { return "\n\ 00181 \n\ 00182 "; } 00183 public: 00184 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00185 00186 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00187 00188 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00189 { 00190 ros::serialization::OStream stream(write_ptr, 1000000000); 00191 return stream.getData(); 00192 } 00193 00194 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00195 { 00196 ros::serialization::IStream stream(read_ptr, 1000000000); 00197 return stream.getData(); 00198 } 00199 00200 ROS_DEPRECATED virtual uint32_t serializationLength() const 00201 { 00202 uint32_t size = 0; 00203 return size; 00204 } 00205 00206 typedef boost::shared_ptr< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > Ptr; 00207 typedef boost::shared_ptr< ::srs_env_model::AddCubeResponse_<ContainerAllocator> const> ConstPtr; 00208 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00209 }; // struct AddCubeResponse 00210 typedef ::srs_env_model::AddCubeResponse_<std::allocator<void> > AddCubeResponse; 00211 00212 typedef boost::shared_ptr< ::srs_env_model::AddCubeResponse> AddCubeResponsePtr; 00213 typedef boost::shared_ptr< ::srs_env_model::AddCubeResponse const> AddCubeResponseConstPtr; 00214 00215 struct AddCube 00216 { 00217 00218 typedef AddCubeRequest Request; 00219 typedef AddCubeResponse Response; 00220 Request request; 00221 Response response; 00222 00223 typedef Request RequestType; 00224 typedef Response ResponseType; 00225 }; // struct AddCube 00226 } // namespace srs_env_model 00227 00228 namespace ros 00229 { 00230 namespace message_traits 00231 { 00232 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > : public TrueType {}; 00233 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::AddCubeRequest_<ContainerAllocator> const> : public TrueType {}; 00234 template<class ContainerAllocator> 00235 struct MD5Sum< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "126cfaa4843d924510ec6ea45df9654e"; 00239 } 00240 00241 static const char* value(const ::srs_env_model::AddCubeRequest_<ContainerAllocator> &) { return value(); } 00242 static const uint64_t static_value1 = 0x126cfaa4843d9245ULL; 00243 static const uint64_t static_value2 = 0x10ec6ea45df9654eULL; 00244 }; 00245 00246 template<class ContainerAllocator> 00247 struct DataType< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "srs_env_model/AddCubeRequest"; 00251 } 00252 00253 static const char* value(const ::srs_env_model::AddCubeRequest_<ContainerAllocator> &) { return value(); } 00254 }; 00255 00256 template<class ContainerAllocator> 00257 struct Definition< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > { 00258 static const char* value() 00259 { 00260 return "string frame_id\n\ 00261 geometry_msgs/Pose pose\n\ 00262 geometry_msgs/Point size\n\ 00263 \n\ 00264 ================================================================================\n\ 00265 MSG: geometry_msgs/Pose\n\ 00266 # A representation of pose in free space, composed of postion and orientation. \n\ 00267 Point position\n\ 00268 Quaternion orientation\n\ 00269 \n\ 00270 ================================================================================\n\ 00271 MSG: geometry_msgs/Point\n\ 00272 # This contains the position of a point in free space\n\ 00273 float64 x\n\ 00274 float64 y\n\ 00275 float64 z\n\ 00276 \n\ 00277 ================================================================================\n\ 00278 MSG: geometry_msgs/Quaternion\n\ 00279 # This represents an orientation in free space in quaternion form.\n\ 00280 \n\ 00281 float64 x\n\ 00282 float64 y\n\ 00283 float64 z\n\ 00284 float64 w\n\ 00285 \n\ 00286 "; 00287 } 00288 00289 static const char* value(const ::srs_env_model::AddCubeRequest_<ContainerAllocator> &) { return value(); } 00290 }; 00291 00292 } // namespace message_traits 00293 } // namespace ros 00294 00295 00296 namespace ros 00297 { 00298 namespace message_traits 00299 { 00300 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > : public TrueType {}; 00301 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::AddCubeResponse_<ContainerAllocator> const> : public TrueType {}; 00302 template<class ContainerAllocator> 00303 struct MD5Sum< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > { 00304 static const char* value() 00305 { 00306 return "d41d8cd98f00b204e9800998ecf8427e"; 00307 } 00308 00309 static const char* value(const ::srs_env_model::AddCubeResponse_<ContainerAllocator> &) { return value(); } 00310 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00311 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00312 }; 00313 00314 template<class ContainerAllocator> 00315 struct DataType< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > { 00316 static const char* value() 00317 { 00318 return "srs_env_model/AddCubeResponse"; 00319 } 00320 00321 static const char* value(const ::srs_env_model::AddCubeResponse_<ContainerAllocator> &) { return value(); } 00322 }; 00323 00324 template<class ContainerAllocator> 00325 struct Definition< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > { 00326 static const char* value() 00327 { 00328 return "\n\ 00329 \n\ 00330 "; 00331 } 00332 00333 static const char* value(const ::srs_env_model::AddCubeResponse_<ContainerAllocator> &) { return value(); } 00334 }; 00335 00336 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > : public TrueType {}; 00337 } // namespace message_traits 00338 } // namespace ros 00339 00340 namespace ros 00341 { 00342 namespace serialization 00343 { 00344 00345 template<class ContainerAllocator> struct Serializer< ::srs_env_model::AddCubeRequest_<ContainerAllocator> > 00346 { 00347 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00348 { 00349 stream.next(m.frame_id); 00350 stream.next(m.pose); 00351 stream.next(m.size); 00352 } 00353 00354 ROS_DECLARE_ALLINONE_SERIALIZER; 00355 }; // struct AddCubeRequest_ 00356 } // namespace serialization 00357 } // namespace ros 00358 00359 00360 namespace ros 00361 { 00362 namespace serialization 00363 { 00364 00365 template<class ContainerAllocator> struct Serializer< ::srs_env_model::AddCubeResponse_<ContainerAllocator> > 00366 { 00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00368 { 00369 } 00370 00371 ROS_DECLARE_ALLINONE_SERIALIZER; 00372 }; // struct AddCubeResponse_ 00373 } // namespace serialization 00374 } // namespace ros 00375 00376 namespace ros 00377 { 00378 namespace service_traits 00379 { 00380 template<> 00381 struct MD5Sum<srs_env_model::AddCube> { 00382 static const char* value() 00383 { 00384 return "126cfaa4843d924510ec6ea45df9654e"; 00385 } 00386 00387 static const char* value(const srs_env_model::AddCube&) { return value(); } 00388 }; 00389 00390 template<> 00391 struct DataType<srs_env_model::AddCube> { 00392 static const char* value() 00393 { 00394 return "srs_env_model/AddCube"; 00395 } 00396 00397 static const char* value(const srs_env_model::AddCube&) { return value(); } 00398 }; 00399 00400 template<class ContainerAllocator> 00401 struct MD5Sum<srs_env_model::AddCubeRequest_<ContainerAllocator> > { 00402 static const char* value() 00403 { 00404 return "126cfaa4843d924510ec6ea45df9654e"; 00405 } 00406 00407 static const char* value(const srs_env_model::AddCubeRequest_<ContainerAllocator> &) { return value(); } 00408 }; 00409 00410 template<class ContainerAllocator> 00411 struct DataType<srs_env_model::AddCubeRequest_<ContainerAllocator> > { 00412 static const char* value() 00413 { 00414 return "srs_env_model/AddCube"; 00415 } 00416 00417 static const char* value(const srs_env_model::AddCubeRequest_<ContainerAllocator> &) { return value(); } 00418 }; 00419 00420 template<class ContainerAllocator> 00421 struct MD5Sum<srs_env_model::AddCubeResponse_<ContainerAllocator> > { 00422 static const char* value() 00423 { 00424 return "126cfaa4843d924510ec6ea45df9654e"; 00425 } 00426 00427 static const char* value(const srs_env_model::AddCubeResponse_<ContainerAllocator> &) { return value(); } 00428 }; 00429 00430 template<class ContainerAllocator> 00431 struct DataType<srs_env_model::AddCubeResponse_<ContainerAllocator> > { 00432 static const char* value() 00433 { 00434 return "srs_env_model/AddCube"; 00435 } 00436 00437 static const char* value(const srs_env_model::AddCubeResponse_<ContainerAllocator> &) { return value(); } 00438 }; 00439 00440 } // namespace service_traits 00441 } // namespace ros 00442 00443 #endif // SRS_ENV_MODEL_SERVICE_ADDCUBE_H 00444