$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_navigation/hector_elevation_msgs/msg/ElevationGrid.msg */ 00002 #ifndef HECTOR_ELEVATION_MSGS_MESSAGE_ELEVATIONGRID_H 00003 #define HECTOR_ELEVATION_MSGS_MESSAGE_ELEVATIONGRID_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 "std_msgs/Header.h" 00018 #include "hector_elevation_msgs/ElevationMapMetaData.h" 00019 00020 namespace hector_elevation_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct ElevationGrid_ { 00024 typedef ElevationGrid_<ContainerAllocator> Type; 00025 00026 ElevationGrid_() 00027 : header() 00028 , info() 00029 , data() 00030 { 00031 } 00032 00033 ElevationGrid_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , info(_alloc) 00036 , data(_alloc) 00037 { 00038 } 00039 00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00041 ::std_msgs::Header_<ContainerAllocator> header; 00042 00043 typedef ::hector_elevation_msgs::ElevationMapMetaData_<ContainerAllocator> _info_type; 00044 ::hector_elevation_msgs::ElevationMapMetaData_<ContainerAllocator> info; 00045 00046 typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _data_type; 00047 std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > data; 00048 00049 00050 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00051 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00052 ROS_DEPRECATED void get_data_vec(std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) const { vec = this->data; } 00053 ROS_DEPRECATED void set_data_vec(const std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) { this->data = vec; } 00054 private: 00055 static const char* __s_getDataType_() { return "hector_elevation_msgs/ElevationGrid"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "13f6dd2a4434f89ebecd8bfafa38cdf1"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "# This represents a 2-D grid map, in which each cell represents the elevation.\n\ 00070 \n\ 00071 Header header \n\ 00072 \n\ 00073 #MetaData for the map\n\ 00074 ElevationMapMetaData info\n\ 00075 \n\ 00076 # The map data, in row-major order, starting with (0,0). Elevation values \n\ 00077 # are in the range [0,32768].\n\ 00078 # -> 0 belongs to max negative elevation, 32767 to max positive elevation, \"elevation_zero_level\" coresponds to zero, -elevation_zero_level to unknown elevation\n\ 00079 int16[] data\n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: std_msgs/Header\n\ 00083 # Standard metadata for higher-level stamped data types.\n\ 00084 # This is generally used to communicate timestamped data \n\ 00085 # in a particular coordinate frame.\n\ 00086 # \n\ 00087 # sequence ID: consecutively increasing ID \n\ 00088 uint32 seq\n\ 00089 #Two-integer timestamp that is expressed as:\n\ 00090 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00091 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00092 # time-handling sugar is provided by the client library\n\ 00093 time stamp\n\ 00094 #Frame this data is associated with\n\ 00095 # 0: no frame\n\ 00096 # 1: global frame\n\ 00097 string frame_id\n\ 00098 \n\ 00099 ================================================================================\n\ 00100 MSG: hector_elevation_msgs/ElevationMapMetaData\n\ 00101 # This hold basic information about the characterists of the EvaluationGrid\n\ 00102 \n\ 00103 # The time at which the map was loaded\n\ 00104 time map_load_time\n\ 00105 # Map resolution in xy plane [m/cell]\n\ 00106 float64 resolution_xy\n\ 00107 # Map resolution in height [m/cell]\n\ 00108 float64 resolution_z\n\ 00109 # min observed height [m]\n\ 00110 float64 min_elevation\n\ 00111 # max observed height [m]\n\ 00112 float64 max_elevation\n\ 00113 # Height zero value. For example 16384.\n\ 00114 int16 zero_elevation\n\ 00115 # Map width [cells]\n\ 00116 uint32 width\n\ 00117 # Map height [cells]\n\ 00118 uint32 height\n\ 00119 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\ 00120 # cell (0,0) in the map.\n\ 00121 geometry_msgs/Pose origin\n\ 00122 \n\ 00123 \n\ 00124 \n\ 00125 ================================================================================\n\ 00126 MSG: geometry_msgs/Pose\n\ 00127 # A representation of pose in free space, composed of postion and orientation. \n\ 00128 Point position\n\ 00129 Quaternion orientation\n\ 00130 \n\ 00131 ================================================================================\n\ 00132 MSG: geometry_msgs/Point\n\ 00133 # This contains the position of a point in free space\n\ 00134 float64 x\n\ 00135 float64 y\n\ 00136 float64 z\n\ 00137 \n\ 00138 ================================================================================\n\ 00139 MSG: geometry_msgs/Quaternion\n\ 00140 # This represents an orientation in free space in quaternion form.\n\ 00141 \n\ 00142 float64 x\n\ 00143 float64 y\n\ 00144 float64 z\n\ 00145 float64 w\n\ 00146 \n\ 00147 "; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00152 00153 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00154 { 00155 ros::serialization::OStream stream(write_ptr, 1000000000); 00156 ros::serialization::serialize(stream, header); 00157 ros::serialization::serialize(stream, info); 00158 ros::serialization::serialize(stream, data); 00159 return stream.getData(); 00160 } 00161 00162 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00163 { 00164 ros::serialization::IStream stream(read_ptr, 1000000000); 00165 ros::serialization::deserialize(stream, header); 00166 ros::serialization::deserialize(stream, info); 00167 ros::serialization::deserialize(stream, data); 00168 return stream.getData(); 00169 } 00170 00171 ROS_DEPRECATED virtual uint32_t serializationLength() const 00172 { 00173 uint32_t size = 0; 00174 size += ros::serialization::serializationLength(header); 00175 size += ros::serialization::serializationLength(info); 00176 size += ros::serialization::serializationLength(data); 00177 return size; 00178 } 00179 00180 typedef boost::shared_ptr< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > Ptr; 00181 typedef boost::shared_ptr< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> const> ConstPtr; 00182 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00183 }; // struct ElevationGrid 00184 typedef ::hector_elevation_msgs::ElevationGrid_<std::allocator<void> > ElevationGrid; 00185 00186 typedef boost::shared_ptr< ::hector_elevation_msgs::ElevationGrid> ElevationGridPtr; 00187 typedef boost::shared_ptr< ::hector_elevation_msgs::ElevationGrid const> ElevationGridConstPtr; 00188 00189 00190 template<typename ContainerAllocator> 00191 std::ostream& operator<<(std::ostream& s, const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> & v) 00192 { 00193 ros::message_operations::Printer< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> >::stream(s, "", v); 00194 return s;} 00195 00196 } // namespace hector_elevation_msgs 00197 00198 namespace ros 00199 { 00200 namespace message_traits 00201 { 00202 template<class ContainerAllocator> struct IsMessage< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > : public TrueType {}; 00203 template<class ContainerAllocator> struct IsMessage< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> const> : public TrueType {}; 00204 template<class ContainerAllocator> 00205 struct MD5Sum< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > { 00206 static const char* value() 00207 { 00208 return "13f6dd2a4434f89ebecd8bfafa38cdf1"; 00209 } 00210 00211 static const char* value(const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> &) { return value(); } 00212 static const uint64_t static_value1 = 0x13f6dd2a4434f89eULL; 00213 static const uint64_t static_value2 = 0xbecd8bfafa38cdf1ULL; 00214 }; 00215 00216 template<class ContainerAllocator> 00217 struct DataType< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "hector_elevation_msgs/ElevationGrid"; 00221 } 00222 00223 static const char* value(const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> &) { return value(); } 00224 }; 00225 00226 template<class ContainerAllocator> 00227 struct Definition< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > { 00228 static const char* value() 00229 { 00230 return "# This represents a 2-D grid map, in which each cell represents the elevation.\n\ 00231 \n\ 00232 Header header \n\ 00233 \n\ 00234 #MetaData for the map\n\ 00235 ElevationMapMetaData info\n\ 00236 \n\ 00237 # The map data, in row-major order, starting with (0,0). Elevation values \n\ 00238 # are in the range [0,32768].\n\ 00239 # -> 0 belongs to max negative elevation, 32767 to max positive elevation, \"elevation_zero_level\" coresponds to zero, -elevation_zero_level to unknown elevation\n\ 00240 int16[] data\n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: std_msgs/Header\n\ 00244 # Standard metadata for higher-level stamped data types.\n\ 00245 # This is generally used to communicate timestamped data \n\ 00246 # in a particular coordinate frame.\n\ 00247 # \n\ 00248 # sequence ID: consecutively increasing ID \n\ 00249 uint32 seq\n\ 00250 #Two-integer timestamp that is expressed as:\n\ 00251 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00252 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00253 # time-handling sugar is provided by the client library\n\ 00254 time stamp\n\ 00255 #Frame this data is associated with\n\ 00256 # 0: no frame\n\ 00257 # 1: global frame\n\ 00258 string frame_id\n\ 00259 \n\ 00260 ================================================================================\n\ 00261 MSG: hector_elevation_msgs/ElevationMapMetaData\n\ 00262 # This hold basic information about the characterists of the EvaluationGrid\n\ 00263 \n\ 00264 # The time at which the map was loaded\n\ 00265 time map_load_time\n\ 00266 # Map resolution in xy plane [m/cell]\n\ 00267 float64 resolution_xy\n\ 00268 # Map resolution in height [m/cell]\n\ 00269 float64 resolution_z\n\ 00270 # min observed height [m]\n\ 00271 float64 min_elevation\n\ 00272 # max observed height [m]\n\ 00273 float64 max_elevation\n\ 00274 # Height zero value. For example 16384.\n\ 00275 int16 zero_elevation\n\ 00276 # Map width [cells]\n\ 00277 uint32 width\n\ 00278 # Map height [cells]\n\ 00279 uint32 height\n\ 00280 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\ 00281 # cell (0,0) in the map.\n\ 00282 geometry_msgs/Pose origin\n\ 00283 \n\ 00284 \n\ 00285 \n\ 00286 ================================================================================\n\ 00287 MSG: geometry_msgs/Pose\n\ 00288 # A representation of pose in free space, composed of postion and orientation. \n\ 00289 Point position\n\ 00290 Quaternion orientation\n\ 00291 \n\ 00292 ================================================================================\n\ 00293 MSG: geometry_msgs/Point\n\ 00294 # This contains the position of a point in free space\n\ 00295 float64 x\n\ 00296 float64 y\n\ 00297 float64 z\n\ 00298 \n\ 00299 ================================================================================\n\ 00300 MSG: geometry_msgs/Quaternion\n\ 00301 # This represents an orientation in free space in quaternion form.\n\ 00302 \n\ 00303 float64 x\n\ 00304 float64 y\n\ 00305 float64 z\n\ 00306 float64 w\n\ 00307 \n\ 00308 "; 00309 } 00310 00311 static const char* value(const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> &) { return value(); } 00312 }; 00313 00314 template<class ContainerAllocator> struct HasHeader< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > : public TrueType {}; 00315 template<class ContainerAllocator> struct HasHeader< const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > : public TrueType {}; 00316 } // namespace message_traits 00317 } // namespace ros 00318 00319 namespace ros 00320 { 00321 namespace serialization 00322 { 00323 00324 template<class ContainerAllocator> struct Serializer< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > 00325 { 00326 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00327 { 00328 stream.next(m.header); 00329 stream.next(m.info); 00330 stream.next(m.data); 00331 } 00332 00333 ROS_DECLARE_ALLINONE_SERIALIZER; 00334 }; // struct ElevationGrid_ 00335 } // namespace serialization 00336 } // namespace ros 00337 00338 namespace ros 00339 { 00340 namespace message_operations 00341 { 00342 00343 template<class ContainerAllocator> 00344 struct Printer< ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> > 00345 { 00346 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_elevation_msgs::ElevationGrid_<ContainerAllocator> & v) 00347 { 00348 s << indent << "header: "; 00349 s << std::endl; 00350 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00351 s << indent << "info: "; 00352 s << std::endl; 00353 Printer< ::hector_elevation_msgs::ElevationMapMetaData_<ContainerAllocator> >::stream(s, indent + " ", v.info); 00354 s << indent << "data[]" << std::endl; 00355 for (size_t i = 0; i < v.data.size(); ++i) 00356 { 00357 s << indent << " data[" << i << "]: "; 00358 Printer<int16_t>::stream(s, indent + " ", v.data[i]); 00359 } 00360 } 00361 }; 00362 00363 00364 } // namespace message_operations 00365 } // namespace ros 00366 00367 #endif // HECTOR_ELEVATION_MSGS_MESSAGE_ELEVATIONGRID_H 00368