00001
00002 #ifndef NAV_MSGS_MESSAGE_MAPMETADATA_H
00003 #define NAV_MSGS_MESSAGE_MAPMETADATA_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 "geometry_msgs/Pose.h"
00014
00015 namespace nav_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct MapMetaData_ : public ros::Message
00019 {
00020 typedef MapMetaData_<ContainerAllocator> Type;
00021
00022 MapMetaData_()
00023 : map_load_time()
00024 , resolution(0.0)
00025 , width(0)
00026 , height(0)
00027 , origin()
00028 {
00029 }
00030
00031 MapMetaData_(const ContainerAllocator& _alloc)
00032 : map_load_time()
00033 , resolution(0.0)
00034 , width(0)
00035 , height(0)
00036 , origin(_alloc)
00037 {
00038 }
00039
00040 typedef ros::Time _map_load_time_type;
00041 ros::Time map_load_time;
00042
00043 typedef float _resolution_type;
00044 float resolution;
00045
00046 typedef uint32_t _width_type;
00047 uint32_t width;
00048
00049 typedef uint32_t _height_type;
00050 uint32_t height;
00051
00052 typedef ::geometry_msgs::Pose_<ContainerAllocator> _origin_type;
00053 ::geometry_msgs::Pose_<ContainerAllocator> origin;
00054
00055
00056 private:
00057 static const char* __s_getDataType_() { return "nav_msgs/MapMetaData"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "10cfc8a2818024d3248802c00c95f11b"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "# This hold basic information about the characterists of the OccupancyGrid\n\
00072 \n\
00073 # The time at which the map was loaded\n\
00074 time map_load_time\n\
00075 # The map resolution [m/cell]\n\
00076 float32 resolution\n\
00077 # Map width [cells]\n\
00078 uint32 width\n\
00079 # Map height [cells]\n\
00080 uint32 height\n\
00081 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00082 # cell (0,0) in the map.\n\
00083 geometry_msgs/Pose origin\n\
00084 ================================================================================\n\
00085 MSG: geometry_msgs/Pose\n\
00086 # A representation of pose in free space, composed of postion and orientation. \n\
00087 Point position\n\
00088 Quaternion orientation\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: geometry_msgs/Point\n\
00092 # This contains the position of a point in free space\n\
00093 float64 x\n\
00094 float64 y\n\
00095 float64 z\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: geometry_msgs/Quaternion\n\
00099 # This represents an orientation in free space in quaternion form.\n\
00100 \n\
00101 float64 x\n\
00102 float64 y\n\
00103 float64 z\n\
00104 float64 w\n\
00105 \n\
00106 "; }
00107 public:
00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00109
00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00113 {
00114 ros::serialization::OStream stream(write_ptr, 1000000000);
00115 ros::serialization::serialize(stream, map_load_time);
00116 ros::serialization::serialize(stream, resolution);
00117 ros::serialization::serialize(stream, width);
00118 ros::serialization::serialize(stream, height);
00119 ros::serialization::serialize(stream, origin);
00120 return stream.getData();
00121 }
00122
00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00124 {
00125 ros::serialization::IStream stream(read_ptr, 1000000000);
00126 ros::serialization::deserialize(stream, map_load_time);
00127 ros::serialization::deserialize(stream, resolution);
00128 ros::serialization::deserialize(stream, width);
00129 ros::serialization::deserialize(stream, height);
00130 ros::serialization::deserialize(stream, origin);
00131 return stream.getData();
00132 }
00133
00134 ROS_DEPRECATED virtual uint32_t serializationLength() const
00135 {
00136 uint32_t size = 0;
00137 size += ros::serialization::serializationLength(map_load_time);
00138 size += ros::serialization::serializationLength(resolution);
00139 size += ros::serialization::serializationLength(width);
00140 size += ros::serialization::serializationLength(height);
00141 size += ros::serialization::serializationLength(origin);
00142 return size;
00143 }
00144
00145 typedef boost::shared_ptr< ::nav_msgs::MapMetaData_<ContainerAllocator> > Ptr;
00146 typedef boost::shared_ptr< ::nav_msgs::MapMetaData_<ContainerAllocator> const> ConstPtr;
00147 };
00148 typedef ::nav_msgs::MapMetaData_<std::allocator<void> > MapMetaData;
00149
00150 typedef boost::shared_ptr< ::nav_msgs::MapMetaData> MapMetaDataPtr;
00151 typedef boost::shared_ptr< ::nav_msgs::MapMetaData const> MapMetaDataConstPtr;
00152
00153
00154 template<typename ContainerAllocator>
00155 std::ostream& operator<<(std::ostream& s, const ::nav_msgs::MapMetaData_<ContainerAllocator> & v)
00156 {
00157 ros::message_operations::Printer< ::nav_msgs::MapMetaData_<ContainerAllocator> >::stream(s, "", v);
00158 return s;}
00159
00160 }
00161
00162 namespace ros
00163 {
00164 namespace message_traits
00165 {
00166 template<class ContainerAllocator>
00167 struct MD5Sum< ::nav_msgs::MapMetaData_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "10cfc8a2818024d3248802c00c95f11b";
00171 }
00172
00173 static const char* value(const ::nav_msgs::MapMetaData_<ContainerAllocator> &) { return value(); }
00174 static const uint64_t static_value1 = 0x10cfc8a2818024d3ULL;
00175 static const uint64_t static_value2 = 0x248802c00c95f11bULL;
00176 };
00177
00178 template<class ContainerAllocator>
00179 struct DataType< ::nav_msgs::MapMetaData_<ContainerAllocator> > {
00180 static const char* value()
00181 {
00182 return "nav_msgs/MapMetaData";
00183 }
00184
00185 static const char* value(const ::nav_msgs::MapMetaData_<ContainerAllocator> &) { return value(); }
00186 };
00187
00188 template<class ContainerAllocator>
00189 struct Definition< ::nav_msgs::MapMetaData_<ContainerAllocator> > {
00190 static const char* value()
00191 {
00192 return "# This hold basic information about the characterists of the OccupancyGrid\n\
00193 \n\
00194 # The time at which the map was loaded\n\
00195 time map_load_time\n\
00196 # The map resolution [m/cell]\n\
00197 float32 resolution\n\
00198 # Map width [cells]\n\
00199 uint32 width\n\
00200 # Map height [cells]\n\
00201 uint32 height\n\
00202 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00203 # cell (0,0) in the map.\n\
00204 geometry_msgs/Pose origin\n\
00205 ================================================================================\n\
00206 MSG: geometry_msgs/Pose\n\
00207 # A representation of pose in free space, composed of postion and orientation. \n\
00208 Point position\n\
00209 Quaternion orientation\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: geometry_msgs/Point\n\
00213 # This contains the position of a point in free space\n\
00214 float64 x\n\
00215 float64 y\n\
00216 float64 z\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: geometry_msgs/Quaternion\n\
00220 # This represents an orientation in free space in quaternion form.\n\
00221 \n\
00222 float64 x\n\
00223 float64 y\n\
00224 float64 z\n\
00225 float64 w\n\
00226 \n\
00227 ";
00228 }
00229
00230 static const char* value(const ::nav_msgs::MapMetaData_<ContainerAllocator> &) { return value(); }
00231 };
00232
00233 template<class ContainerAllocator> struct IsFixedSize< ::nav_msgs::MapMetaData_<ContainerAllocator> > : public TrueType {};
00234 }
00235 }
00236
00237 namespace ros
00238 {
00239 namespace serialization
00240 {
00241
00242 template<class ContainerAllocator> struct Serializer< ::nav_msgs::MapMetaData_<ContainerAllocator> >
00243 {
00244 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00245 {
00246 stream.next(m.map_load_time);
00247 stream.next(m.resolution);
00248 stream.next(m.width);
00249 stream.next(m.height);
00250 stream.next(m.origin);
00251 }
00252
00253 ROS_DECLARE_ALLINONE_SERIALIZER;
00254 };
00255 }
00256 }
00257
00258 namespace ros
00259 {
00260 namespace message_operations
00261 {
00262
00263 template<class ContainerAllocator>
00264 struct Printer< ::nav_msgs::MapMetaData_<ContainerAllocator> >
00265 {
00266 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nav_msgs::MapMetaData_<ContainerAllocator> & v)
00267 {
00268 s << indent << "map_load_time: ";
00269 Printer<ros::Time>::stream(s, indent + " ", v.map_load_time);
00270 s << indent << "resolution: ";
00271 Printer<float>::stream(s, indent + " ", v.resolution);
00272 s << indent << "width: ";
00273 Printer<uint32_t>::stream(s, indent + " ", v.width);
00274 s << indent << "height: ";
00275 Printer<uint32_t>::stream(s, indent + " ", v.height);
00276 s << indent << "origin: ";
00277 s << std::endl;
00278 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.origin);
00279 }
00280 };
00281
00282
00283 }
00284 }
00285
00286 #endif // NAV_MSGS_MESSAGE_MAPMETADATA_H
00287