00001
00002 #ifndef GRAPH_MAPPING_MSGS_SERVICE_GENERATEGLOBALMAP_H
00003 #define GRAPH_MAPPING_MSGS_SERVICE_GENERATEGLOBALMAP_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 "nav_msgs/OccupancyGrid.h"
00018
00019 namespace graph_mapping_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GenerateGlobalMapRequest_ : public ros::Message
00023 {
00024 typedef GenerateGlobalMapRequest_<ContainerAllocator> Type;
00025
00026 GenerateGlobalMapRequest_()
00027 : resolution(0.0)
00028 {
00029 }
00030
00031 GenerateGlobalMapRequest_(const ContainerAllocator& _alloc)
00032 : resolution(0.0)
00033 {
00034 }
00035
00036 typedef float _resolution_type;
00037 float resolution;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "graph_mapping_msgs/GenerateGlobalMapRequest"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "f4467c20d63133ab5b96ab9959a2080d"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getServerMD5Sum_() { return "e2e166b8b209ad77352baa42f6c27607"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00058
00059 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00060
00061 private:
00062 static const char* __s_getMessageDefinition_() { return "float32 resolution\n\
00063 \n\
00064 "; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00071 {
00072 ros::serialization::OStream stream(write_ptr, 1000000000);
00073 ros::serialization::serialize(stream, resolution);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, resolution);
00081 return stream.getData();
00082 }
00083
00084 ROS_DEPRECATED virtual uint32_t serializationLength() const
00085 {
00086 uint32_t size = 0;
00087 size += ros::serialization::serializationLength(resolution);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::graph_mapping_msgs::GenerateGlobalMapRequest_<std::allocator<void> > GenerateGlobalMapRequest;
00095
00096 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapRequest> GenerateGlobalMapRequestPtr;
00097 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapRequest const> GenerateGlobalMapRequestConstPtr;
00098
00099
00100 template <class ContainerAllocator>
00101 struct GenerateGlobalMapResponse_ : public ros::Message
00102 {
00103 typedef GenerateGlobalMapResponse_<ContainerAllocator> Type;
00104
00105 GenerateGlobalMapResponse_()
00106 : map()
00107 , succeeded(false)
00108 {
00109 }
00110
00111 GenerateGlobalMapResponse_(const ContainerAllocator& _alloc)
00112 : map(_alloc)
00113 , succeeded(false)
00114 {
00115 }
00116
00117 typedef ::nav_msgs::OccupancyGrid_<ContainerAllocator> _map_type;
00118 ::nav_msgs::OccupancyGrid_<ContainerAllocator> map;
00119
00120 typedef uint8_t _succeeded_type;
00121 uint8_t succeeded;
00122
00123
00124 private:
00125 static const char* __s_getDataType_() { return "graph_mapping_msgs/GenerateGlobalMapResponse"; }
00126 public:
00127 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00128
00129 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00130
00131 private:
00132 static const char* __s_getMD5Sum_() { return "d32df3d6aab41e07d05e6a59c207a1c0"; }
00133 public:
00134 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00135
00136 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00137
00138 private:
00139 static const char* __s_getServerMD5Sum_() { return "e2e166b8b209ad77352baa42f6c27607"; }
00140 public:
00141 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00142
00143 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00144
00145 private:
00146 static const char* __s_getMessageDefinition_() { return "nav_msgs/OccupancyGrid map\n\
00147 bool succeeded\n\
00148 \n\
00149 \n\
00150 ================================================================================\n\
00151 MSG: nav_msgs/OccupancyGrid\n\
00152 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00153 # occupancy.\n\
00154 \n\
00155 Header header \n\
00156 \n\
00157 #MetaData for the map\n\
00158 MapMetaData info\n\
00159 \n\
00160 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00161 # probabilities are in the range [0,100]. Unknown is -1.\n\
00162 int8[] data\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: std_msgs/Header\n\
00166 # Standard metadata for higher-level stamped data types.\n\
00167 # This is generally used to communicate timestamped data \n\
00168 # in a particular coordinate frame.\n\
00169 # \n\
00170 # sequence ID: consecutively increasing ID \n\
00171 uint32 seq\n\
00172 #Two-integer timestamp that is expressed as:\n\
00173 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00174 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00175 # time-handling sugar is provided by the client library\n\
00176 time stamp\n\
00177 #Frame this data is associated with\n\
00178 # 0: no frame\n\
00179 # 1: global frame\n\
00180 string frame_id\n\
00181 \n\
00182 ================================================================================\n\
00183 MSG: nav_msgs/MapMetaData\n\
00184 # This hold basic information about the characterists of the OccupancyGrid\n\
00185 \n\
00186 # The time at which the map was loaded\n\
00187 time map_load_time\n\
00188 # The map resolution [m/cell]\n\
00189 float32 resolution\n\
00190 # Map width [cells]\n\
00191 uint32 width\n\
00192 # Map height [cells]\n\
00193 uint32 height\n\
00194 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00195 # cell (0,0) in the map.\n\
00196 geometry_msgs/Pose origin\n\
00197 ================================================================================\n\
00198 MSG: geometry_msgs/Pose\n\
00199 # A representation of pose in free space, composed of postion and orientation. \n\
00200 Point position\n\
00201 Quaternion orientation\n\
00202 \n\
00203 ================================================================================\n\
00204 MSG: geometry_msgs/Point\n\
00205 # This contains the position of a point in free space\n\
00206 float64 x\n\
00207 float64 y\n\
00208 float64 z\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: geometry_msgs/Quaternion\n\
00212 # This represents an orientation in free space in quaternion form.\n\
00213 \n\
00214 float64 x\n\
00215 float64 y\n\
00216 float64 z\n\
00217 float64 w\n\
00218 \n\
00219 "; }
00220 public:
00221 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00222
00223 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00224
00225 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00226 {
00227 ros::serialization::OStream stream(write_ptr, 1000000000);
00228 ros::serialization::serialize(stream, map);
00229 ros::serialization::serialize(stream, succeeded);
00230 return stream.getData();
00231 }
00232
00233 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00234 {
00235 ros::serialization::IStream stream(read_ptr, 1000000000);
00236 ros::serialization::deserialize(stream, map);
00237 ros::serialization::deserialize(stream, succeeded);
00238 return stream.getData();
00239 }
00240
00241 ROS_DEPRECATED virtual uint32_t serializationLength() const
00242 {
00243 uint32_t size = 0;
00244 size += ros::serialization::serializationLength(map);
00245 size += ros::serialization::serializationLength(succeeded);
00246 return size;
00247 }
00248
00249 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > Ptr;
00250 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> const> ConstPtr;
00251 };
00252 typedef ::graph_mapping_msgs::GenerateGlobalMapResponse_<std::allocator<void> > GenerateGlobalMapResponse;
00253
00254 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapResponse> GenerateGlobalMapResponsePtr;
00255 typedef boost::shared_ptr< ::graph_mapping_msgs::GenerateGlobalMapResponse const> GenerateGlobalMapResponseConstPtr;
00256
00257 struct GenerateGlobalMap
00258 {
00259
00260 typedef GenerateGlobalMapRequest Request;
00261 typedef GenerateGlobalMapResponse Response;
00262 Request request;
00263 Response response;
00264
00265 typedef Request RequestType;
00266 typedef Response ResponseType;
00267 };
00268 }
00269
00270 namespace ros
00271 {
00272 namespace message_traits
00273 {
00274 template<class ContainerAllocator>
00275 struct MD5Sum< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > {
00276 static const char* value()
00277 {
00278 return "f4467c20d63133ab5b96ab9959a2080d";
00279 }
00280
00281 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> &) { return value(); }
00282 static const uint64_t static_value1 = 0xf4467c20d63133abULL;
00283 static const uint64_t static_value2 = 0x5b96ab9959a2080dULL;
00284 };
00285
00286 template<class ContainerAllocator>
00287 struct DataType< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > {
00288 static const char* value()
00289 {
00290 return "graph_mapping_msgs/GenerateGlobalMapRequest";
00291 }
00292
00293 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 template<class ContainerAllocator>
00297 struct Definition< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > {
00298 static const char* value()
00299 {
00300 return "float32 resolution\n\
00301 \n\
00302 ";
00303 }
00304
00305 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> &) { return value(); }
00306 };
00307
00308 template<class ContainerAllocator> struct IsFixedSize< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > : public TrueType {};
00309 }
00310 }
00311
00312
00313 namespace ros
00314 {
00315 namespace message_traits
00316 {
00317 template<class ContainerAllocator>
00318 struct MD5Sum< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "d32df3d6aab41e07d05e6a59c207a1c0";
00322 }
00323
00324 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> &) { return value(); }
00325 static const uint64_t static_value1 = 0xd32df3d6aab41e07ULL;
00326 static const uint64_t static_value2 = 0xd05e6a59c207a1c0ULL;
00327 };
00328
00329 template<class ContainerAllocator>
00330 struct DataType< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > {
00331 static const char* value()
00332 {
00333 return "graph_mapping_msgs/GenerateGlobalMapResponse";
00334 }
00335
00336 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> &) { return value(); }
00337 };
00338
00339 template<class ContainerAllocator>
00340 struct Definition< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > {
00341 static const char* value()
00342 {
00343 return "nav_msgs/OccupancyGrid map\n\
00344 bool succeeded\n\
00345 \n\
00346 \n\
00347 ================================================================================\n\
00348 MSG: nav_msgs/OccupancyGrid\n\
00349 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00350 # occupancy.\n\
00351 \n\
00352 Header header \n\
00353 \n\
00354 #MetaData for the map\n\
00355 MapMetaData info\n\
00356 \n\
00357 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00358 # probabilities are in the range [0,100]. Unknown is -1.\n\
00359 int8[] data\n\
00360 \n\
00361 ================================================================================\n\
00362 MSG: std_msgs/Header\n\
00363 # Standard metadata for higher-level stamped data types.\n\
00364 # This is generally used to communicate timestamped data \n\
00365 # in a particular coordinate frame.\n\
00366 # \n\
00367 # sequence ID: consecutively increasing ID \n\
00368 uint32 seq\n\
00369 #Two-integer timestamp that is expressed as:\n\
00370 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00371 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00372 # time-handling sugar is provided by the client library\n\
00373 time stamp\n\
00374 #Frame this data is associated with\n\
00375 # 0: no frame\n\
00376 # 1: global frame\n\
00377 string frame_id\n\
00378 \n\
00379 ================================================================================\n\
00380 MSG: nav_msgs/MapMetaData\n\
00381 # This hold basic information about the characterists of the OccupancyGrid\n\
00382 \n\
00383 # The time at which the map was loaded\n\
00384 time map_load_time\n\
00385 # The map resolution [m/cell]\n\
00386 float32 resolution\n\
00387 # Map width [cells]\n\
00388 uint32 width\n\
00389 # Map height [cells]\n\
00390 uint32 height\n\
00391 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00392 # cell (0,0) in the map.\n\
00393 geometry_msgs/Pose origin\n\
00394 ================================================================================\n\
00395 MSG: geometry_msgs/Pose\n\
00396 # A representation of pose in free space, composed of postion and orientation. \n\
00397 Point position\n\
00398 Quaternion orientation\n\
00399 \n\
00400 ================================================================================\n\
00401 MSG: geometry_msgs/Point\n\
00402 # This contains the position of a point in free space\n\
00403 float64 x\n\
00404 float64 y\n\
00405 float64 z\n\
00406 \n\
00407 ================================================================================\n\
00408 MSG: geometry_msgs/Quaternion\n\
00409 # This represents an orientation in free space in quaternion form.\n\
00410 \n\
00411 float64 x\n\
00412 float64 y\n\
00413 float64 z\n\
00414 float64 w\n\
00415 \n\
00416 ";
00417 }
00418
00419 static const char* value(const ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> &) { return value(); }
00420 };
00421
00422 }
00423 }
00424
00425 namespace ros
00426 {
00427 namespace serialization
00428 {
00429
00430 template<class ContainerAllocator> struct Serializer< ::graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> >
00431 {
00432 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00433 {
00434 stream.next(m.resolution);
00435 }
00436
00437 ROS_DECLARE_ALLINONE_SERIALIZER;
00438 };
00439 }
00440 }
00441
00442
00443 namespace ros
00444 {
00445 namespace serialization
00446 {
00447
00448 template<class ContainerAllocator> struct Serializer< ::graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> >
00449 {
00450 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00451 {
00452 stream.next(m.map);
00453 stream.next(m.succeeded);
00454 }
00455
00456 ROS_DECLARE_ALLINONE_SERIALIZER;
00457 };
00458 }
00459 }
00460
00461 namespace ros
00462 {
00463 namespace service_traits
00464 {
00465 template<>
00466 struct MD5Sum<graph_mapping_msgs::GenerateGlobalMap> {
00467 static const char* value()
00468 {
00469 return "e2e166b8b209ad77352baa42f6c27607";
00470 }
00471
00472 static const char* value(const graph_mapping_msgs::GenerateGlobalMap&) { return value(); }
00473 };
00474
00475 template<>
00476 struct DataType<graph_mapping_msgs::GenerateGlobalMap> {
00477 static const char* value()
00478 {
00479 return "graph_mapping_msgs/GenerateGlobalMap";
00480 }
00481
00482 static const char* value(const graph_mapping_msgs::GenerateGlobalMap&) { return value(); }
00483 };
00484
00485 template<class ContainerAllocator>
00486 struct MD5Sum<graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > {
00487 static const char* value()
00488 {
00489 return "e2e166b8b209ad77352baa42f6c27607";
00490 }
00491
00492 static const char* value(const graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> &) { return value(); }
00493 };
00494
00495 template<class ContainerAllocator>
00496 struct DataType<graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> > {
00497 static const char* value()
00498 {
00499 return "graph_mapping_msgs/GenerateGlobalMap";
00500 }
00501
00502 static const char* value(const graph_mapping_msgs::GenerateGlobalMapRequest_<ContainerAllocator> &) { return value(); }
00503 };
00504
00505 template<class ContainerAllocator>
00506 struct MD5Sum<graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > {
00507 static const char* value()
00508 {
00509 return "e2e166b8b209ad77352baa42f6c27607";
00510 }
00511
00512 static const char* value(const graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> &) { return value(); }
00513 };
00514
00515 template<class ContainerAllocator>
00516 struct DataType<graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> > {
00517 static const char* value()
00518 {
00519 return "graph_mapping_msgs/GenerateGlobalMap";
00520 }
00521
00522 static const char* value(const graph_mapping_msgs::GenerateGlobalMapResponse_<ContainerAllocator> &) { return value(); }
00523 };
00524
00525 }
00526 }
00527
00528 #endif // GRAPH_MAPPING_MSGS_SERVICE_GENERATEGLOBALMAP_H
00529