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