00001
00002 #ifndef OCCUPANCY_GRID_UTILS_MESSAGE_OVERLAYCLOUDS_H
00003 #define OCCUPANCY_GRID_UTILS_MESSAGE_OVERLAYCLOUDS_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 "nav_msgs/MapMetaData.h"
00018
00019 namespace occupancy_grid_utils
00020 {
00021 template <class ContainerAllocator>
00022 struct OverlayClouds_ {
00023 typedef OverlayClouds_<ContainerAllocator> Type;
00024
00025 OverlayClouds_()
00026 : info()
00027 , frame_id()
00028 , occupancy_threshold(0.0)
00029 , max_distance(0.0)
00030 , min_pass_through(0.0)
00031 , hit_counts()
00032 , pass_through_counts()
00033 {
00034 }
00035
00036 OverlayClouds_(const ContainerAllocator& _alloc)
00037 : info(_alloc)
00038 , frame_id(_alloc)
00039 , occupancy_threshold(0.0)
00040 , max_distance(0.0)
00041 , min_pass_through(0.0)
00042 , hit_counts(_alloc)
00043 , pass_through_counts(_alloc)
00044 {
00045 }
00046
00047 typedef ::nav_msgs::MapMetaData_<ContainerAllocator> _info_type;
00048 ::nav_msgs::MapMetaData_<ContainerAllocator> info;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id;
00052
00053 typedef float _occupancy_threshold_type;
00054 float occupancy_threshold;
00055
00056 typedef float _max_distance_type;
00057 float max_distance;
00058
00059 typedef float _min_pass_through_type;
00060 float min_pass_through;
00061
00062 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _hit_counts_type;
00063 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > hit_counts;
00064
00065 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _pass_through_counts_type;
00066 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > pass_through_counts;
00067
00068
00069 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > Ptr;
00070 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> const> ConstPtr;
00071 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 };
00073 typedef ::occupancy_grid_utils::OverlayClouds_<std::allocator<void> > OverlayClouds;
00074
00075 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds> OverlayCloudsPtr;
00076 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds const> OverlayCloudsConstPtr;
00077
00078
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> & v)
00081 {
00082 ros::message_operations::Printer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >::stream(s, "", v);
00083 return s;}
00084
00085 }
00086
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "6614760373735657bd9ed4bf302d9d70";
00098 }
00099
00100 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00101 static const uint64_t static_value1 = 0x6614760373735657ULL;
00102 static const uint64_t static_value2 = 0xbd9ed4bf302d9d70ULL;
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct DataType< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "occupancy_grid_utils/OverlayClouds";
00110 }
00111
00112 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct Definition< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "nav_msgs/MapMetaData info\n\
00120 string frame_id\n\
00121 float32 occupancy_threshold\n\
00122 float32 max_distance\n\
00123 float32 min_pass_through\n\
00124 int32[] hit_counts\n\
00125 int32[] pass_through_counts\n\
00126 ================================================================================\n\
00127 MSG: nav_msgs/MapMetaData\n\
00128 # This hold basic information about the characterists of the OccupancyGrid\n\
00129 \n\
00130 # The time at which the map was loaded\n\
00131 time map_load_time\n\
00132 # The map resolution [m/cell]\n\
00133 float32 resolution\n\
00134 # Map width [cells]\n\
00135 uint32 width\n\
00136 # Map height [cells]\n\
00137 uint32 height\n\
00138 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00139 # cell (0,0) in the map.\n\
00140 geometry_msgs/Pose origin\n\
00141 ================================================================================\n\
00142 MSG: geometry_msgs/Pose\n\
00143 # A representation of pose in free space, composed of postion and orientation. \n\
00144 Point position\n\
00145 Quaternion orientation\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: geometry_msgs/Point\n\
00149 # This contains the position of a point in free space\n\
00150 float64 x\n\
00151 float64 y\n\
00152 float64 z\n\
00153 \n\
00154 ================================================================================\n\
00155 MSG: geometry_msgs/Quaternion\n\
00156 # This represents an orientation in free space in quaternion form.\n\
00157 \n\
00158 float64 x\n\
00159 float64 y\n\
00160 float64 z\n\
00161 float64 w\n\
00162 \n\
00163 ";
00164 }
00165
00166 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.info);
00182 stream.next(m.frame_id);
00183 stream.next(m.occupancy_threshold);
00184 stream.next(m.max_distance);
00185 stream.next(m.min_pass_through);
00186 stream.next(m.hit_counts);
00187 stream.next(m.pass_through_counts);
00188 }
00189
00190 ROS_DECLARE_ALLINONE_SERIALIZER;
00191 };
00192 }
00193 }
00194
00195 namespace ros
00196 {
00197 namespace message_operations
00198 {
00199
00200 template<class ContainerAllocator>
00201 struct Printer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >
00202 {
00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> & v)
00204 {
00205 s << indent << "info: ";
00206 s << std::endl;
00207 Printer< ::nav_msgs::MapMetaData_<ContainerAllocator> >::stream(s, indent + " ", v.info);
00208 s << indent << "frame_id: ";
00209 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_id);
00210 s << indent << "occupancy_threshold: ";
00211 Printer<float>::stream(s, indent + " ", v.occupancy_threshold);
00212 s << indent << "max_distance: ";
00213 Printer<float>::stream(s, indent + " ", v.max_distance);
00214 s << indent << "min_pass_through: ";
00215 Printer<float>::stream(s, indent + " ", v.min_pass_through);
00216 s << indent << "hit_counts[]" << std::endl;
00217 for (size_t i = 0; i < v.hit_counts.size(); ++i)
00218 {
00219 s << indent << " hit_counts[" << i << "]: ";
00220 Printer<int32_t>::stream(s, indent + " ", v.hit_counts[i]);
00221 }
00222 s << indent << "pass_through_counts[]" << std::endl;
00223 for (size_t i = 0; i < v.pass_through_counts.size(); ++i)
00224 {
00225 s << indent << " pass_through_counts[" << i << "]: ";
00226 Printer<int32_t>::stream(s, indent + " ", v.pass_through_counts[i]);
00227 }
00228 }
00229 };
00230
00231
00232 }
00233 }
00234
00235 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_OVERLAYCLOUDS_H
00236