$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/InsertPlanes.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_INSERTPLANES_H 00003 #define SRS_ENV_MODEL_SERVICE_INSERTPLANES_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/PlaneArray.h" 00020 00021 00022 00023 namespace srs_env_model 00024 { 00025 template <class ContainerAllocator> 00026 struct InsertPlanesRequest_ { 00027 typedef InsertPlanesRequest_<ContainerAllocator> Type; 00028 00029 InsertPlanesRequest_() 00030 : plane_array() 00031 { 00032 } 00033 00034 InsertPlanesRequest_(const ContainerAllocator& _alloc) 00035 : plane_array(_alloc) 00036 { 00037 } 00038 00039 typedef ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> _plane_array_type; 00040 ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> plane_array; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_env_model/InsertPlanesRequest"; } 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 "307e2ad4a6f51969695314ccae289ba1"; } 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 "95f8731417470f83e20f9aa60cc751a0"; } 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/PlaneArray plane_array\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: srs_env_model_msgs/PlaneArray\n\ 00069 Header header\n\ 00070 PlaneDesc[] planes\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: std_msgs/Header\n\ 00074 # Standard metadata for higher-level stamped data types.\n\ 00075 # This is generally used to communicate timestamped data \n\ 00076 # in a particular coordinate frame.\n\ 00077 # \n\ 00078 # sequence ID: consecutively increasing ID \n\ 00079 uint32 seq\n\ 00080 #Two-integer timestamp that is expressed as:\n\ 00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00083 # time-handling sugar is provided by the client library\n\ 00084 time stamp\n\ 00085 #Frame this data is associated with\n\ 00086 # 0: no frame\n\ 00087 # 1: global frame\n\ 00088 string frame_id\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: srs_env_model_msgs/PlaneDesc\n\ 00092 int32 INSERT=0 # Clear old data, insert new one\n\ 00093 int32 MODIFY=1 # Modify plane\n\ 00094 int32 REMOVE=2 # Remove data\n\ 00095 \n\ 00096 int32 id\n\ 00097 int32 flags \n\ 00098 geometry_msgs/Pose pose\n\ 00099 geometry_msgs/Vector3 scale\n\ 00100 \n\ 00101 ================================================================================\n\ 00102 MSG: geometry_msgs/Pose\n\ 00103 # A representation of pose in free space, composed of postion and orientation. \n\ 00104 Point position\n\ 00105 Quaternion orientation\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: geometry_msgs/Point\n\ 00109 # This contains the position of a point in free space\n\ 00110 float64 x\n\ 00111 float64 y\n\ 00112 float64 z\n\ 00113 \n\ 00114 ================================================================================\n\ 00115 MSG: geometry_msgs/Quaternion\n\ 00116 # This represents an orientation in free space in quaternion form.\n\ 00117 \n\ 00118 float64 x\n\ 00119 float64 y\n\ 00120 float64 z\n\ 00121 float64 w\n\ 00122 \n\ 00123 ================================================================================\n\ 00124 MSG: geometry_msgs/Vector3\n\ 00125 # This represents a vector in free space. \n\ 00126 \n\ 00127 float64 x\n\ 00128 float64 y\n\ 00129 float64 z\n\ 00130 "; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00137 { 00138 ros::serialization::OStream stream(write_ptr, 1000000000); 00139 ros::serialization::serialize(stream, plane_array); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00144 { 00145 ros::serialization::IStream stream(read_ptr, 1000000000); 00146 ros::serialization::deserialize(stream, plane_array); 00147 return stream.getData(); 00148 } 00149 00150 ROS_DEPRECATED virtual uint32_t serializationLength() const 00151 { 00152 uint32_t size = 0; 00153 size += ros::serialization::serializationLength(plane_array); 00154 return size; 00155 } 00156 00157 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > Ptr; 00158 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> const> ConstPtr; 00159 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00160 }; // struct InsertPlanesRequest 00161 typedef ::srs_env_model::InsertPlanesRequest_<std::allocator<void> > InsertPlanesRequest; 00162 00163 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesRequest> InsertPlanesRequestPtr; 00164 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesRequest const> InsertPlanesRequestConstPtr; 00165 00166 00167 template <class ContainerAllocator> 00168 struct InsertPlanesResponse_ { 00169 typedef InsertPlanesResponse_<ContainerAllocator> Type; 00170 00171 InsertPlanesResponse_() 00172 : object_ids() 00173 { 00174 } 00175 00176 InsertPlanesResponse_(const ContainerAllocator& _alloc) 00177 : object_ids(_alloc) 00178 { 00179 } 00180 00181 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _object_ids_type; 00182 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > object_ids; 00183 00184 00185 ROS_DEPRECATED uint32_t get_object_ids_size() const { return (uint32_t)object_ids.size(); } 00186 ROS_DEPRECATED void set_object_ids_size(uint32_t size) { object_ids.resize((size_t)size); } 00187 ROS_DEPRECATED void get_object_ids_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->object_ids; } 00188 ROS_DEPRECATED void set_object_ids_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->object_ids = vec; } 00189 private: 00190 static const char* __s_getDataType_() { return "srs_env_model/InsertPlanesResponse"; } 00191 public: 00192 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00193 00194 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00195 00196 private: 00197 static const char* __s_getMD5Sum_() { return "51b8c1ab69cd630e4f6eaee2d22fc8d0"; } 00198 public: 00199 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00200 00201 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00202 00203 private: 00204 static const char* __s_getServerMD5Sum_() { return "95f8731417470f83e20f9aa60cc751a0"; } 00205 public: 00206 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00207 00208 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00209 00210 private: 00211 static const char* __s_getMessageDefinition_() { return "uint32[] object_ids\n\ 00212 \n\ 00213 "; } 00214 public: 00215 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00216 00217 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00218 00219 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00220 { 00221 ros::serialization::OStream stream(write_ptr, 1000000000); 00222 ros::serialization::serialize(stream, object_ids); 00223 return stream.getData(); 00224 } 00225 00226 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00227 { 00228 ros::serialization::IStream stream(read_ptr, 1000000000); 00229 ros::serialization::deserialize(stream, object_ids); 00230 return stream.getData(); 00231 } 00232 00233 ROS_DEPRECATED virtual uint32_t serializationLength() const 00234 { 00235 uint32_t size = 0; 00236 size += ros::serialization::serializationLength(object_ids); 00237 return size; 00238 } 00239 00240 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > Ptr; 00241 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> const> ConstPtr; 00242 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00243 }; // struct InsertPlanesResponse 00244 typedef ::srs_env_model::InsertPlanesResponse_<std::allocator<void> > InsertPlanesResponse; 00245 00246 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesResponse> InsertPlanesResponsePtr; 00247 typedef boost::shared_ptr< ::srs_env_model::InsertPlanesResponse const> InsertPlanesResponseConstPtr; 00248 00249 struct InsertPlanes 00250 { 00251 00252 typedef InsertPlanesRequest Request; 00253 typedef InsertPlanesResponse Response; 00254 Request request; 00255 Response response; 00256 00257 typedef Request RequestType; 00258 typedef Response ResponseType; 00259 }; // struct InsertPlanes 00260 } // namespace srs_env_model 00261 00262 namespace ros 00263 { 00264 namespace message_traits 00265 { 00266 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > : public TrueType {}; 00267 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> const> : public TrueType {}; 00268 template<class ContainerAllocator> 00269 struct MD5Sum< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "307e2ad4a6f51969695314ccae289ba1"; 00273 } 00274 00275 static const char* value(const ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> &) { return value(); } 00276 static const uint64_t static_value1 = 0x307e2ad4a6f51969ULL; 00277 static const uint64_t static_value2 = 0x695314ccae289ba1ULL; 00278 }; 00279 00280 template<class ContainerAllocator> 00281 struct DataType< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > { 00282 static const char* value() 00283 { 00284 return "srs_env_model/InsertPlanesRequest"; 00285 } 00286 00287 static const char* value(const ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> &) { return value(); } 00288 }; 00289 00290 template<class ContainerAllocator> 00291 struct Definition< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > { 00292 static const char* value() 00293 { 00294 return "srs_env_model_msgs/PlaneArray plane_array\n\ 00295 \n\ 00296 ================================================================================\n\ 00297 MSG: srs_env_model_msgs/PlaneArray\n\ 00298 Header header\n\ 00299 PlaneDesc[] planes\n\ 00300 \n\ 00301 ================================================================================\n\ 00302 MSG: std_msgs/Header\n\ 00303 # Standard metadata for higher-level stamped data types.\n\ 00304 # This is generally used to communicate timestamped data \n\ 00305 # in a particular coordinate frame.\n\ 00306 # \n\ 00307 # sequence ID: consecutively increasing ID \n\ 00308 uint32 seq\n\ 00309 #Two-integer timestamp that is expressed as:\n\ 00310 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00311 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00312 # time-handling sugar is provided by the client library\n\ 00313 time stamp\n\ 00314 #Frame this data is associated with\n\ 00315 # 0: no frame\n\ 00316 # 1: global frame\n\ 00317 string frame_id\n\ 00318 \n\ 00319 ================================================================================\n\ 00320 MSG: srs_env_model_msgs/PlaneDesc\n\ 00321 int32 INSERT=0 # Clear old data, insert new one\n\ 00322 int32 MODIFY=1 # Modify plane\n\ 00323 int32 REMOVE=2 # Remove data\n\ 00324 \n\ 00325 int32 id\n\ 00326 int32 flags \n\ 00327 geometry_msgs/Pose pose\n\ 00328 geometry_msgs/Vector3 scale\n\ 00329 \n\ 00330 ================================================================================\n\ 00331 MSG: geometry_msgs/Pose\n\ 00332 # A representation of pose in free space, composed of postion and orientation. \n\ 00333 Point position\n\ 00334 Quaternion orientation\n\ 00335 \n\ 00336 ================================================================================\n\ 00337 MSG: geometry_msgs/Point\n\ 00338 # This contains the position of a point in free space\n\ 00339 float64 x\n\ 00340 float64 y\n\ 00341 float64 z\n\ 00342 \n\ 00343 ================================================================================\n\ 00344 MSG: geometry_msgs/Quaternion\n\ 00345 # This represents an orientation in free space in quaternion form.\n\ 00346 \n\ 00347 float64 x\n\ 00348 float64 y\n\ 00349 float64 z\n\ 00350 float64 w\n\ 00351 \n\ 00352 ================================================================================\n\ 00353 MSG: geometry_msgs/Vector3\n\ 00354 # This represents a vector in free space. \n\ 00355 \n\ 00356 float64 x\n\ 00357 float64 y\n\ 00358 float64 z\n\ 00359 "; 00360 } 00361 00362 static const char* value(const ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> &) { return value(); } 00363 }; 00364 00365 } // namespace message_traits 00366 } // namespace ros 00367 00368 00369 namespace ros 00370 { 00371 namespace message_traits 00372 { 00373 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > : public TrueType {}; 00374 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> const> : public TrueType {}; 00375 template<class ContainerAllocator> 00376 struct MD5Sum< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > { 00377 static const char* value() 00378 { 00379 return "51b8c1ab69cd630e4f6eaee2d22fc8d0"; 00380 } 00381 00382 static const char* value(const ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> &) { return value(); } 00383 static const uint64_t static_value1 = 0x51b8c1ab69cd630eULL; 00384 static const uint64_t static_value2 = 0x4f6eaee2d22fc8d0ULL; 00385 }; 00386 00387 template<class ContainerAllocator> 00388 struct DataType< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > { 00389 static const char* value() 00390 { 00391 return "srs_env_model/InsertPlanesResponse"; 00392 } 00393 00394 static const char* value(const ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> &) { return value(); } 00395 }; 00396 00397 template<class ContainerAllocator> 00398 struct Definition< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > { 00399 static const char* value() 00400 { 00401 return "uint32[] object_ids\n\ 00402 \n\ 00403 "; 00404 } 00405 00406 static const char* value(const ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> &) { return value(); } 00407 }; 00408 00409 } // namespace message_traits 00410 } // namespace ros 00411 00412 namespace ros 00413 { 00414 namespace serialization 00415 { 00416 00417 template<class ContainerAllocator> struct Serializer< ::srs_env_model::InsertPlanesRequest_<ContainerAllocator> > 00418 { 00419 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00420 { 00421 stream.next(m.plane_array); 00422 } 00423 00424 ROS_DECLARE_ALLINONE_SERIALIZER; 00425 }; // struct InsertPlanesRequest_ 00426 } // namespace serialization 00427 } // namespace ros 00428 00429 00430 namespace ros 00431 { 00432 namespace serialization 00433 { 00434 00435 template<class ContainerAllocator> struct Serializer< ::srs_env_model::InsertPlanesResponse_<ContainerAllocator> > 00436 { 00437 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00438 { 00439 stream.next(m.object_ids); 00440 } 00441 00442 ROS_DECLARE_ALLINONE_SERIALIZER; 00443 }; // struct InsertPlanesResponse_ 00444 } // namespace serialization 00445 } // namespace ros 00446 00447 namespace ros 00448 { 00449 namespace service_traits 00450 { 00451 template<> 00452 struct MD5Sum<srs_env_model::InsertPlanes> { 00453 static const char* value() 00454 { 00455 return "95f8731417470f83e20f9aa60cc751a0"; 00456 } 00457 00458 static const char* value(const srs_env_model::InsertPlanes&) { return value(); } 00459 }; 00460 00461 template<> 00462 struct DataType<srs_env_model::InsertPlanes> { 00463 static const char* value() 00464 { 00465 return "srs_env_model/InsertPlanes"; 00466 } 00467 00468 static const char* value(const srs_env_model::InsertPlanes&) { return value(); } 00469 }; 00470 00471 template<class ContainerAllocator> 00472 struct MD5Sum<srs_env_model::InsertPlanesRequest_<ContainerAllocator> > { 00473 static const char* value() 00474 { 00475 return "95f8731417470f83e20f9aa60cc751a0"; 00476 } 00477 00478 static const char* value(const srs_env_model::InsertPlanesRequest_<ContainerAllocator> &) { return value(); } 00479 }; 00480 00481 template<class ContainerAllocator> 00482 struct DataType<srs_env_model::InsertPlanesRequest_<ContainerAllocator> > { 00483 static const char* value() 00484 { 00485 return "srs_env_model/InsertPlanes"; 00486 } 00487 00488 static const char* value(const srs_env_model::InsertPlanesRequest_<ContainerAllocator> &) { return value(); } 00489 }; 00490 00491 template<class ContainerAllocator> 00492 struct MD5Sum<srs_env_model::InsertPlanesResponse_<ContainerAllocator> > { 00493 static const char* value() 00494 { 00495 return "95f8731417470f83e20f9aa60cc751a0"; 00496 } 00497 00498 static const char* value(const srs_env_model::InsertPlanesResponse_<ContainerAllocator> &) { return value(); } 00499 }; 00500 00501 template<class ContainerAllocator> 00502 struct DataType<srs_env_model::InsertPlanesResponse_<ContainerAllocator> > { 00503 static const char* value() 00504 { 00505 return "srs_env_model/InsertPlanes"; 00506 } 00507 00508 static const char* value(const srs_env_model::InsertPlanesResponse_<ContainerAllocator> &) { return value(); } 00509 }; 00510 00511 } // namespace service_traits 00512 } // namespace ros 00513 00514 #endif // SRS_ENV_MODEL_SERVICE_INSERTPLANES_H 00515