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