$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/GridCells.msg */ 00002 #ifndef NAV_MSGS_MESSAGE_GRIDCELLS_H 00003 #define NAV_MSGS_MESSAGE_GRIDCELLS_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 "geometry_msgs/Point.h" 00019 00020 namespace nav_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct GridCells_ { 00024 typedef GridCells_<ContainerAllocator> Type; 00025 00026 GridCells_() 00027 : header() 00028 , cell_width(0.0) 00029 , cell_height(0.0) 00030 , cells() 00031 { 00032 } 00033 00034 GridCells_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , cell_width(0.0) 00037 , cell_height(0.0) 00038 , cells(_alloc) 00039 { 00040 } 00041 00042 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00043 ::std_msgs::Header_<ContainerAllocator> header; 00044 00045 typedef float _cell_width_type; 00046 float cell_width; 00047 00048 typedef float _cell_height_type; 00049 float cell_height; 00050 00051 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _cells_type; 00052 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > cells; 00053 00054 00055 ROS_DEPRECATED uint32_t get_cells_size() const { return (uint32_t)cells.size(); } 00056 ROS_DEPRECATED void set_cells_size(uint32_t size) { cells.resize((size_t)size); } 00057 ROS_DEPRECATED void get_cells_vec(std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) const { vec = this->cells; } 00058 ROS_DEPRECATED void set_cells_vec(const std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) { this->cells = vec; } 00059 private: 00060 static const char* __s_getDataType_() { return "nav_msgs/GridCells"; } 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 "b9e4f5df6d28e272ebde00a3994830f5"; } 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 "#an array of cells in a 2D grid\n\ 00075 Header header\n\ 00076 float32 cell_width\n\ 00077 float32 cell_height\n\ 00078 geometry_msgs/Point[] cells\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: std_msgs/Header\n\ 00082 # Standard metadata for higher-level stamped data types.\n\ 00083 # This is generally used to communicate timestamped data \n\ 00084 # in a particular coordinate frame.\n\ 00085 # \n\ 00086 # sequence ID: consecutively increasing ID \n\ 00087 uint32 seq\n\ 00088 #Two-integer timestamp that is expressed as:\n\ 00089 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00090 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00091 # time-handling sugar is provided by the client library\n\ 00092 time stamp\n\ 00093 #Frame this data is associated with\n\ 00094 # 0: no frame\n\ 00095 # 1: global frame\n\ 00096 string frame_id\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: geometry_msgs/Point\n\ 00100 # This contains the position of a point in free space\n\ 00101 float64 x\n\ 00102 float64 y\n\ 00103 float64 z\n\ 00104 \n\ 00105 "; } 00106 public: 00107 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00112 { 00113 ros::serialization::OStream stream(write_ptr, 1000000000); 00114 ros::serialization::serialize(stream, header); 00115 ros::serialization::serialize(stream, cell_width); 00116 ros::serialization::serialize(stream, cell_height); 00117 ros::serialization::serialize(stream, cells); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00122 { 00123 ros::serialization::IStream stream(read_ptr, 1000000000); 00124 ros::serialization::deserialize(stream, header); 00125 ros::serialization::deserialize(stream, cell_width); 00126 ros::serialization::deserialize(stream, cell_height); 00127 ros::serialization::deserialize(stream, cells); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint32_t serializationLength() const 00132 { 00133 uint32_t size = 0; 00134 size += ros::serialization::serializationLength(header); 00135 size += ros::serialization::serializationLength(cell_width); 00136 size += ros::serialization::serializationLength(cell_height); 00137 size += ros::serialization::serializationLength(cells); 00138 return size; 00139 } 00140 00141 typedef boost::shared_ptr< ::nav_msgs::GridCells_<ContainerAllocator> > Ptr; 00142 typedef boost::shared_ptr< ::nav_msgs::GridCells_<ContainerAllocator> const> ConstPtr; 00143 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00144 }; // struct GridCells 00145 typedef ::nav_msgs::GridCells_<std::allocator<void> > GridCells; 00146 00147 typedef boost::shared_ptr< ::nav_msgs::GridCells> GridCellsPtr; 00148 typedef boost::shared_ptr< ::nav_msgs::GridCells const> GridCellsConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::nav_msgs::GridCells_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::nav_msgs::GridCells_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace nav_msgs 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> struct IsMessage< ::nav_msgs::GridCells_<ContainerAllocator> > : public TrueType {}; 00164 template<class ContainerAllocator> struct IsMessage< ::nav_msgs::GridCells_<ContainerAllocator> const> : public TrueType {}; 00165 template<class ContainerAllocator> 00166 struct MD5Sum< ::nav_msgs::GridCells_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "b9e4f5df6d28e272ebde00a3994830f5"; 00170 } 00171 00172 static const char* value(const ::nav_msgs::GridCells_<ContainerAllocator> &) { return value(); } 00173 static const uint64_t static_value1 = 0xb9e4f5df6d28e272ULL; 00174 static const uint64_t static_value2 = 0xebde00a3994830f5ULL; 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct DataType< ::nav_msgs::GridCells_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "nav_msgs/GridCells"; 00182 } 00183 00184 static const char* value(const ::nav_msgs::GridCells_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct Definition< ::nav_msgs::GridCells_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "#an array of cells in a 2D grid\n\ 00192 Header header\n\ 00193 float32 cell_width\n\ 00194 float32 cell_height\n\ 00195 geometry_msgs/Point[] cells\n\ 00196 \n\ 00197 ================================================================================\n\ 00198 MSG: std_msgs/Header\n\ 00199 # Standard metadata for higher-level stamped data types.\n\ 00200 # This is generally used to communicate timestamped data \n\ 00201 # in a particular coordinate frame.\n\ 00202 # \n\ 00203 # sequence ID: consecutively increasing ID \n\ 00204 uint32 seq\n\ 00205 #Two-integer timestamp that is expressed as:\n\ 00206 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00207 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00208 # time-handling sugar is provided by the client library\n\ 00209 time stamp\n\ 00210 #Frame this data is associated with\n\ 00211 # 0: no frame\n\ 00212 # 1: global frame\n\ 00213 string frame_id\n\ 00214 \n\ 00215 ================================================================================\n\ 00216 MSG: geometry_msgs/Point\n\ 00217 # This contains the position of a point in free space\n\ 00218 float64 x\n\ 00219 float64 y\n\ 00220 float64 z\n\ 00221 \n\ 00222 "; 00223 } 00224 00225 static const char* value(const ::nav_msgs::GridCells_<ContainerAllocator> &) { return value(); } 00226 }; 00227 00228 template<class ContainerAllocator> struct HasHeader< ::nav_msgs::GridCells_<ContainerAllocator> > : public TrueType {}; 00229 template<class ContainerAllocator> struct HasHeader< const ::nav_msgs::GridCells_<ContainerAllocator> > : public TrueType {}; 00230 } // namespace message_traits 00231 } // namespace ros 00232 00233 namespace ros 00234 { 00235 namespace serialization 00236 { 00237 00238 template<class ContainerAllocator> struct Serializer< ::nav_msgs::GridCells_<ContainerAllocator> > 00239 { 00240 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00241 { 00242 stream.next(m.header); 00243 stream.next(m.cell_width); 00244 stream.next(m.cell_height); 00245 stream.next(m.cells); 00246 } 00247 00248 ROS_DECLARE_ALLINONE_SERIALIZER; 00249 }; // struct GridCells_ 00250 } // namespace serialization 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace message_operations 00256 { 00257 00258 template<class ContainerAllocator> 00259 struct Printer< ::nav_msgs::GridCells_<ContainerAllocator> > 00260 { 00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nav_msgs::GridCells_<ContainerAllocator> & v) 00262 { 00263 s << indent << "header: "; 00264 s << std::endl; 00265 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00266 s << indent << "cell_width: "; 00267 Printer<float>::stream(s, indent + " ", v.cell_width); 00268 s << indent << "cell_height: "; 00269 Printer<float>::stream(s, indent + " ", v.cell_height); 00270 s << indent << "cells[]" << std::endl; 00271 for (size_t i = 0; i < v.cells.size(); ++i) 00272 { 00273 s << indent << " cells[" << i << "]: "; 00274 s << std::endl; 00275 s << indent; 00276 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.cells[i]); 00277 } 00278 } 00279 }; 00280 00281 00282 } // namespace message_operations 00283 } // namespace ros 00284 00285 #endif // NAV_MSGS_MESSAGE_GRIDCELLS_H 00286