VoxelGrid.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-navigation/doc_stacks/2014-10-06_02-40-39.112396/navigation/costmap_2d/msg/VoxelGrid.msg */
00002 #ifndef COSTMAP_2D_MESSAGE_VOXELGRID_H
00003 #define COSTMAP_2D_MESSAGE_VOXELGRID_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/Point32.h"
00019 #include "geometry_msgs/Vector3.h"
00020 
00021 namespace costmap_2d
00022 {
00023 template <class ContainerAllocator>
00024 struct VoxelGrid_ {
00025   typedef VoxelGrid_<ContainerAllocator> Type;
00026 
00027   VoxelGrid_()
00028   : header()
00029   , data()
00030   , origin()
00031   , resolutions()
00032   , size_x(0)
00033   , size_y(0)
00034   , size_z(0)
00035   {
00036   }
00037 
00038   VoxelGrid_(const ContainerAllocator& _alloc)
00039   : header(_alloc)
00040   , data(_alloc)
00041   , origin(_alloc)
00042   , resolutions(_alloc)
00043   , size_x(0)
00044   , size_y(0)
00045   , size_z(0)
00046   {
00047   }
00048 
00049   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00050    ::std_msgs::Header_<ContainerAllocator>  header;
00051 
00052   typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  _data_type;
00053   std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  data;
00054 
00055   typedef  ::geometry_msgs::Point32_<ContainerAllocator>  _origin_type;
00056    ::geometry_msgs::Point32_<ContainerAllocator>  origin;
00057 
00058   typedef  ::geometry_msgs::Vector3_<ContainerAllocator>  _resolutions_type;
00059    ::geometry_msgs::Vector3_<ContainerAllocator>  resolutions;
00060 
00061   typedef uint32_t _size_x_type;
00062   uint32_t size_x;
00063 
00064   typedef uint32_t _size_y_type;
00065   uint32_t size_y;
00066 
00067   typedef uint32_t _size_z_type;
00068   uint32_t size_z;
00069 
00070 
00071   typedef boost::shared_ptr< ::costmap_2d::VoxelGrid_<ContainerAllocator> > Ptr;
00072   typedef boost::shared_ptr< ::costmap_2d::VoxelGrid_<ContainerAllocator>  const> ConstPtr;
00073   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00074 }; // struct VoxelGrid
00075 typedef  ::costmap_2d::VoxelGrid_<std::allocator<void> > VoxelGrid;
00076 
00077 typedef boost::shared_ptr< ::costmap_2d::VoxelGrid> VoxelGridPtr;
00078 typedef boost::shared_ptr< ::costmap_2d::VoxelGrid const> VoxelGridConstPtr;
00079 
00080 
00081 template<typename ContainerAllocator>
00082 std::ostream& operator<<(std::ostream& s, const  ::costmap_2d::VoxelGrid_<ContainerAllocator> & v)
00083 {
00084   ros::message_operations::Printer< ::costmap_2d::VoxelGrid_<ContainerAllocator> >::stream(s, "", v);
00085   return s;}
00086 
00087 } // namespace costmap_2d
00088 
00089 namespace ros
00090 {
00091 namespace message_traits
00092 {
00093 template<class ContainerAllocator> struct IsMessage< ::costmap_2d::VoxelGrid_<ContainerAllocator> > : public TrueType {};
00094 template<class ContainerAllocator> struct IsMessage< ::costmap_2d::VoxelGrid_<ContainerAllocator>  const> : public TrueType {};
00095 template<class ContainerAllocator>
00096 struct MD5Sum< ::costmap_2d::VoxelGrid_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "48a040827e1322073d78ece5a497029c";
00100   }
00101 
00102   static const char* value(const  ::costmap_2d::VoxelGrid_<ContainerAllocator> &) { return value(); } 
00103   static const uint64_t static_value1 = 0x48a040827e132207ULL;
00104   static const uint64_t static_value2 = 0x3d78ece5a497029cULL;
00105 };
00106 
00107 template<class ContainerAllocator>
00108 struct DataType< ::costmap_2d::VoxelGrid_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "costmap_2d/VoxelGrid";
00112   }
00113 
00114   static const char* value(const  ::costmap_2d::VoxelGrid_<ContainerAllocator> &) { return value(); } 
00115 };
00116 
00117 template<class ContainerAllocator>
00118 struct Definition< ::costmap_2d::VoxelGrid_<ContainerAllocator> > {
00119   static const char* value() 
00120   {
00121     return "Header header\n\
00122 uint32[] data\n\
00123 geometry_msgs/Point32 origin\n\
00124 geometry_msgs/Vector3 resolutions\n\
00125 uint32 size_x\n\
00126 uint32 size_y\n\
00127 uint32 size_z\n\
00128 \n\
00129 \n\
00130 ================================================================================\n\
00131 MSG: std_msgs/Header\n\
00132 # Standard metadata for higher-level stamped data types.\n\
00133 # This is generally used to communicate timestamped data \n\
00134 # in a particular coordinate frame.\n\
00135 # \n\
00136 # sequence ID: consecutively increasing ID \n\
00137 uint32 seq\n\
00138 #Two-integer timestamp that is expressed as:\n\
00139 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00140 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00141 # time-handling sugar is provided by the client library\n\
00142 time stamp\n\
00143 #Frame this data is associated with\n\
00144 # 0: no frame\n\
00145 # 1: global frame\n\
00146 string frame_id\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: geometry_msgs/Point32\n\
00150 # This contains the position of a point in free space(with 32 bits of precision).\n\
00151 # It is recommeded to use Point wherever possible instead of Point32.  \n\
00152 # \n\
00153 # This recommendation is to promote interoperability.  \n\
00154 #\n\
00155 # This message is designed to take up less space when sending\n\
00156 # lots of points at once, as in the case of a PointCloud.  \n\
00157 \n\
00158 float32 x\n\
00159 float32 y\n\
00160 float32 z\n\
00161 ================================================================================\n\
00162 MSG: geometry_msgs/Vector3\n\
00163 # This represents a vector in free space. \n\
00164 \n\
00165 float64 x\n\
00166 float64 y\n\
00167 float64 z\n\
00168 ";
00169   }
00170 
00171   static const char* value(const  ::costmap_2d::VoxelGrid_<ContainerAllocator> &) { return value(); } 
00172 };
00173 
00174 template<class ContainerAllocator> struct HasHeader< ::costmap_2d::VoxelGrid_<ContainerAllocator> > : public TrueType {};
00175 template<class ContainerAllocator> struct HasHeader< const ::costmap_2d::VoxelGrid_<ContainerAllocator> > : public TrueType {};
00176 } // namespace message_traits
00177 } // namespace ros
00178 
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183 
00184 template<class ContainerAllocator> struct Serializer< ::costmap_2d::VoxelGrid_<ContainerAllocator> >
00185 {
00186   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187   {
00188     stream.next(m.header);
00189     stream.next(m.data);
00190     stream.next(m.origin);
00191     stream.next(m.resolutions);
00192     stream.next(m.size_x);
00193     stream.next(m.size_y);
00194     stream.next(m.size_z);
00195   }
00196 
00197   ROS_DECLARE_ALLINONE_SERIALIZER;
00198 }; // struct VoxelGrid_
00199 } // namespace serialization
00200 } // namespace ros
00201 
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206 
00207 template<class ContainerAllocator>
00208 struct Printer< ::costmap_2d::VoxelGrid_<ContainerAllocator> >
00209 {
00210   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::costmap_2d::VoxelGrid_<ContainerAllocator> & v) 
00211   {
00212     s << indent << "header: ";
00213 s << std::endl;
00214     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00215     s << indent << "data[]" << std::endl;
00216     for (size_t i = 0; i < v.data.size(); ++i)
00217     {
00218       s << indent << "  data[" << i << "]: ";
00219       Printer<uint32_t>::stream(s, indent + "  ", v.data[i]);
00220     }
00221     s << indent << "origin: ";
00222 s << std::endl;
00223     Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + "  ", v.origin);
00224     s << indent << "resolutions: ";
00225 s << std::endl;
00226     Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "  ", v.resolutions);
00227     s << indent << "size_x: ";
00228     Printer<uint32_t>::stream(s, indent + "  ", v.size_x);
00229     s << indent << "size_y: ";
00230     Printer<uint32_t>::stream(s, indent + "  ", v.size_y);
00231     s << indent << "size_z: ";
00232     Printer<uint32_t>::stream(s, indent + "  ", v.size_z);
00233   }
00234 };
00235 
00236 
00237 } // namespace message_operations
00238 } // namespace ros
00239 
00240 #endif // COSTMAP_2D_MESSAGE_VOXELGRID_H
00241 


costmap_2d
Author(s): Eitan Marder-Eppstein
autogenerated on Mon Oct 6 2014 02:44:46