$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/InsertPlane.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_INSERTPLANE_H 00003 #define SRS_ENV_MODEL_SERVICE_INSERTPLANE_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 "srs_env_model_msgs/PlaneDesc.h" 00020 00021 00022 00023 namespace srs_env_model 00024 { 00025 template <class ContainerAllocator> 00026 struct InsertPlaneRequest_ { 00027 typedef InsertPlaneRequest_<ContainerAllocator> Type; 00028 00029 InsertPlaneRequest_() 00030 : plane() 00031 { 00032 } 00033 00034 InsertPlaneRequest_(const ContainerAllocator& _alloc) 00035 : plane(_alloc) 00036 { 00037 } 00038 00039 typedef ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> _plane_type; 00040 ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> plane; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_env_model/InsertPlaneRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "ba9485c524c0e0eca11a45602e8ff94e"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "f2e40eb20cf1d3be131ef4eb0268704b"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "srs_env_model_msgs/PlaneDesc plane\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: srs_env_model_msgs/PlaneDesc\n\ 00069 int32 INSERT=0 # Clear old data, insert new one\n\ 00070 int32 MODIFY=1 # Modify plane\n\ 00071 int32 REMOVE=2 # Remove data\n\ 00072 \n\ 00073 int32 id\n\ 00074 int32 flags \n\ 00075 geometry_msgs/Pose pose\n\ 00076 geometry_msgs/Vector3 scale\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: geometry_msgs/Pose\n\ 00080 # A representation of pose in free space, composed of postion and orientation. \n\ 00081 Point position\n\ 00082 Quaternion orientation\n\ 00083 \n\ 00084 ================================================================================\n\ 00085 MSG: geometry_msgs/Point\n\ 00086 # This contains the position of a point in free space\n\ 00087 float64 x\n\ 00088 float64 y\n\ 00089 float64 z\n\ 00090 \n\ 00091 ================================================================================\n\ 00092 MSG: geometry_msgs/Quaternion\n\ 00093 # This represents an orientation in free space in quaternion form.\n\ 00094 \n\ 00095 float64 x\n\ 00096 float64 y\n\ 00097 float64 z\n\ 00098 float64 w\n\ 00099 \n\ 00100 ================================================================================\n\ 00101 MSG: geometry_msgs/Vector3\n\ 00102 # This represents a vector in free space. \n\ 00103 \n\ 00104 float64 x\n\ 00105 float64 y\n\ 00106 float64 z\n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, plane); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00121 { 00122 ros::serialization::IStream stream(read_ptr, 1000000000); 00123 ros::serialization::deserialize(stream, plane); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(plane); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct InsertPlaneRequest 00138 typedef ::srs_env_model::InsertPlaneRequest_<std::allocator<void> > InsertPlaneRequest; 00139 00140 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneRequest> InsertPlaneRequestPtr; 00141 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneRequest const> InsertPlaneRequestConstPtr; 00142 00143 00144 template <class ContainerAllocator> 00145 struct InsertPlaneResponse_ { 00146 typedef InsertPlaneResponse_<ContainerAllocator> Type; 00147 00148 InsertPlaneResponse_() 00149 : object_id(0) 00150 { 00151 } 00152 00153 InsertPlaneResponse_(const ContainerAllocator& _alloc) 00154 : object_id(0) 00155 { 00156 } 00157 00158 typedef uint32_t _object_id_type; 00159 uint32_t object_id; 00160 00161 00162 private: 00163 static const char* __s_getDataType_() { return "srs_env_model/InsertPlaneResponse"; } 00164 public: 00165 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00166 00167 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00168 00169 private: 00170 static const char* __s_getMD5Sum_() { return "3bc61e324c1dd4520ddb0edb73571599"; } 00171 public: 00172 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00173 00174 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00175 00176 private: 00177 static const char* __s_getServerMD5Sum_() { return "f2e40eb20cf1d3be131ef4eb0268704b"; } 00178 public: 00179 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00180 00181 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00182 00183 private: 00184 static const char* __s_getMessageDefinition_() { return "uint32 object_id\n\ 00185 \n\ 00186 "; } 00187 public: 00188 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00189 00190 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00191 00192 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00193 { 00194 ros::serialization::OStream stream(write_ptr, 1000000000); 00195 ros::serialization::serialize(stream, object_id); 00196 return stream.getData(); 00197 } 00198 00199 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00200 { 00201 ros::serialization::IStream stream(read_ptr, 1000000000); 00202 ros::serialization::deserialize(stream, object_id); 00203 return stream.getData(); 00204 } 00205 00206 ROS_DEPRECATED virtual uint32_t serializationLength() const 00207 { 00208 uint32_t size = 0; 00209 size += ros::serialization::serializationLength(object_id); 00210 return size; 00211 } 00212 00213 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > Ptr; 00214 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> const> ConstPtr; 00215 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00216 }; // struct InsertPlaneResponse 00217 typedef ::srs_env_model::InsertPlaneResponse_<std::allocator<void> > InsertPlaneResponse; 00218 00219 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneResponse> InsertPlaneResponsePtr; 00220 typedef boost::shared_ptr< ::srs_env_model::InsertPlaneResponse const> InsertPlaneResponseConstPtr; 00221 00222 struct InsertPlane 00223 { 00224 00225 typedef InsertPlaneRequest Request; 00226 typedef InsertPlaneResponse Response; 00227 Request request; 00228 Response response; 00229 00230 typedef Request RequestType; 00231 typedef Response ResponseType; 00232 }; // struct InsertPlane 00233 } // namespace srs_env_model 00234 00235 namespace ros 00236 { 00237 namespace message_traits 00238 { 00239 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > : public TrueType {}; 00240 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> const> : public TrueType {}; 00241 template<class ContainerAllocator> 00242 struct MD5Sum< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "ba9485c524c0e0eca11a45602e8ff94e"; 00246 } 00247 00248 static const char* value(const ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> &) { return value(); } 00249 static const uint64_t static_value1 = 0xba9485c524c0e0ecULL; 00250 static const uint64_t static_value2 = 0xa11a45602e8ff94eULL; 00251 }; 00252 00253 template<class ContainerAllocator> 00254 struct DataType< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > { 00255 static const char* value() 00256 { 00257 return "srs_env_model/InsertPlaneRequest"; 00258 } 00259 00260 static const char* value(const ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> &) { return value(); } 00261 }; 00262 00263 template<class ContainerAllocator> 00264 struct Definition< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > { 00265 static const char* value() 00266 { 00267 return "srs_env_model_msgs/PlaneDesc plane\n\ 00268 \n\ 00269 ================================================================================\n\ 00270 MSG: srs_env_model_msgs/PlaneDesc\n\ 00271 int32 INSERT=0 # Clear old data, insert new one\n\ 00272 int32 MODIFY=1 # Modify plane\n\ 00273 int32 REMOVE=2 # Remove data\n\ 00274 \n\ 00275 int32 id\n\ 00276 int32 flags \n\ 00277 geometry_msgs/Pose pose\n\ 00278 geometry_msgs/Vector3 scale\n\ 00279 \n\ 00280 ================================================================================\n\ 00281 MSG: geometry_msgs/Pose\n\ 00282 # A representation of pose in free space, composed of postion and orientation. \n\ 00283 Point position\n\ 00284 Quaternion orientation\n\ 00285 \n\ 00286 ================================================================================\n\ 00287 MSG: geometry_msgs/Point\n\ 00288 # This contains the position of a point in free space\n\ 00289 float64 x\n\ 00290 float64 y\n\ 00291 float64 z\n\ 00292 \n\ 00293 ================================================================================\n\ 00294 MSG: geometry_msgs/Quaternion\n\ 00295 # This represents an orientation in free space in quaternion form.\n\ 00296 \n\ 00297 float64 x\n\ 00298 float64 y\n\ 00299 float64 z\n\ 00300 float64 w\n\ 00301 \n\ 00302 ================================================================================\n\ 00303 MSG: geometry_msgs/Vector3\n\ 00304 # This represents a vector in free space. \n\ 00305 \n\ 00306 float64 x\n\ 00307 float64 y\n\ 00308 float64 z\n\ 00309 "; 00310 } 00311 00312 static const char* value(const ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > : public TrueType {}; 00316 } // namespace message_traits 00317 } // namespace ros 00318 00319 00320 namespace ros 00321 { 00322 namespace message_traits 00323 { 00324 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > : public TrueType {}; 00325 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> const> : public TrueType {}; 00326 template<class ContainerAllocator> 00327 struct MD5Sum< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > { 00328 static const char* value() 00329 { 00330 return "3bc61e324c1dd4520ddb0edb73571599"; 00331 } 00332 00333 static const char* value(const ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> &) { return value(); } 00334 static const uint64_t static_value1 = 0x3bc61e324c1dd452ULL; 00335 static const uint64_t static_value2 = 0x0ddb0edb73571599ULL; 00336 }; 00337 00338 template<class ContainerAllocator> 00339 struct DataType< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > { 00340 static const char* value() 00341 { 00342 return "srs_env_model/InsertPlaneResponse"; 00343 } 00344 00345 static const char* value(const ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> &) { return value(); } 00346 }; 00347 00348 template<class ContainerAllocator> 00349 struct Definition< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > { 00350 static const char* value() 00351 { 00352 return "uint32 object_id\n\ 00353 \n\ 00354 "; 00355 } 00356 00357 static const char* value(const ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> &) { return value(); } 00358 }; 00359 00360 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > : public TrueType {}; 00361 } // namespace message_traits 00362 } // namespace ros 00363 00364 namespace ros 00365 { 00366 namespace serialization 00367 { 00368 00369 template<class ContainerAllocator> struct Serializer< ::srs_env_model::InsertPlaneRequest_<ContainerAllocator> > 00370 { 00371 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00372 { 00373 stream.next(m.plane); 00374 } 00375 00376 ROS_DECLARE_ALLINONE_SERIALIZER; 00377 }; // struct InsertPlaneRequest_ 00378 } // namespace serialization 00379 } // namespace ros 00380 00381 00382 namespace ros 00383 { 00384 namespace serialization 00385 { 00386 00387 template<class ContainerAllocator> struct Serializer< ::srs_env_model::InsertPlaneResponse_<ContainerAllocator> > 00388 { 00389 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00390 { 00391 stream.next(m.object_id); 00392 } 00393 00394 ROS_DECLARE_ALLINONE_SERIALIZER; 00395 }; // struct InsertPlaneResponse_ 00396 } // namespace serialization 00397 } // namespace ros 00398 00399 namespace ros 00400 { 00401 namespace service_traits 00402 { 00403 template<> 00404 struct MD5Sum<srs_env_model::InsertPlane> { 00405 static const char* value() 00406 { 00407 return "f2e40eb20cf1d3be131ef4eb0268704b"; 00408 } 00409 00410 static const char* value(const srs_env_model::InsertPlane&) { return value(); } 00411 }; 00412 00413 template<> 00414 struct DataType<srs_env_model::InsertPlane> { 00415 static const char* value() 00416 { 00417 return "srs_env_model/InsertPlane"; 00418 } 00419 00420 static const char* value(const srs_env_model::InsertPlane&) { return value(); } 00421 }; 00422 00423 template<class ContainerAllocator> 00424 struct MD5Sum<srs_env_model::InsertPlaneRequest_<ContainerAllocator> > { 00425 static const char* value() 00426 { 00427 return "f2e40eb20cf1d3be131ef4eb0268704b"; 00428 } 00429 00430 static const char* value(const srs_env_model::InsertPlaneRequest_<ContainerAllocator> &) { return value(); } 00431 }; 00432 00433 template<class ContainerAllocator> 00434 struct DataType<srs_env_model::InsertPlaneRequest_<ContainerAllocator> > { 00435 static const char* value() 00436 { 00437 return "srs_env_model/InsertPlane"; 00438 } 00439 00440 static const char* value(const srs_env_model::InsertPlaneRequest_<ContainerAllocator> &) { return value(); } 00441 }; 00442 00443 template<class ContainerAllocator> 00444 struct MD5Sum<srs_env_model::InsertPlaneResponse_<ContainerAllocator> > { 00445 static const char* value() 00446 { 00447 return "f2e40eb20cf1d3be131ef4eb0268704b"; 00448 } 00449 00450 static const char* value(const srs_env_model::InsertPlaneResponse_<ContainerAllocator> &) { return value(); } 00451 }; 00452 00453 template<class ContainerAllocator> 00454 struct DataType<srs_env_model::InsertPlaneResponse_<ContainerAllocator> > { 00455 static const char* value() 00456 { 00457 return "srs_env_model/InsertPlane"; 00458 } 00459 00460 static const char* value(const srs_env_model::InsertPlaneResponse_<ContainerAllocator> &) { return value(); } 00461 }; 00462 00463 } // namespace service_traits 00464 } // namespace ros 00465 00466 #endif // SRS_ENV_MODEL_SERVICE_INSERTPLANE_H 00467