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


point_cloud_ros
Author(s): Advait Jain (Healthcare Robotics Lab, Georgia Tech)
autogenerated on Wed Nov 27 2013 12:16:42