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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "nav_msgs/OccupancyGrid.h"
00014
00015 namespace occupancy_grid_utils
00016 {
00017 template <class ContainerAllocator>
00018 struct OverlayClouds_ : public ros::Message
00019 {
00020 typedef OverlayClouds_<ContainerAllocator> Type;
00021
00022 OverlayClouds_()
00023 : grid()
00024 , frame_id()
00025 , occupancy_threshold(0.0)
00026 , max_distance(0.0)
00027 , min_pass_through(0.0)
00028 , hit_counts()
00029 , pass_through_counts()
00030 {
00031 }
00032
00033 OverlayClouds_(const ContainerAllocator& _alloc)
00034 : grid(_alloc)
00035 , frame_id(_alloc)
00036 , occupancy_threshold(0.0)
00037 , max_distance(0.0)
00038 , min_pass_through(0.0)
00039 , hit_counts(_alloc)
00040 , pass_through_counts(_alloc)
00041 {
00042 }
00043
00044 typedef ::nav_msgs::OccupancyGrid_<ContainerAllocator> _grid_type;
00045 ::nav_msgs::OccupancyGrid_<ContainerAllocator> grid;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id;
00049
00050 typedef float _occupancy_threshold_type;
00051 float occupancy_threshold;
00052
00053 typedef float _max_distance_type;
00054 float max_distance;
00055
00056 typedef float _min_pass_through_type;
00057 float min_pass_through;
00058
00059 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _hit_counts_type;
00060 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > hit_counts;
00061
00062 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _pass_through_counts_type;
00063 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > pass_through_counts;
00064
00065
00066 ROS_DEPRECATED uint32_t get_hit_counts_size() const { return (uint32_t)hit_counts.size(); }
00067 ROS_DEPRECATED void set_hit_counts_size(uint32_t size) { hit_counts.resize((size_t)size); }
00068 ROS_DEPRECATED void get_hit_counts_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->hit_counts; }
00069 ROS_DEPRECATED void set_hit_counts_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->hit_counts = vec; }
00070 ROS_DEPRECATED uint32_t get_pass_through_counts_size() const { return (uint32_t)pass_through_counts.size(); }
00071 ROS_DEPRECATED void set_pass_through_counts_size(uint32_t size) { pass_through_counts.resize((size_t)size); }
00072 ROS_DEPRECATED void get_pass_through_counts_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->pass_through_counts; }
00073 ROS_DEPRECATED void set_pass_through_counts_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->pass_through_counts = vec; }
00074 private:
00075 static const char* __s_getDataType_() { return "occupancy_grid_utils/OverlayClouds"; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00078
00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00080
00081 private:
00082 static const char* __s_getMD5Sum_() { return "a1dfac662600ca9b91b434a76485a5d9"; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00085
00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00087
00088 private:
00089 static const char* __s_getMessageDefinition_() { return "nav_msgs/OccupancyGrid grid\n\
00090 string frame_id\n\
00091 float32 occupancy_threshold\n\
00092 float32 max_distance\n\
00093 float32 min_pass_through\n\
00094 int32[] hit_counts\n\
00095 int32[] pass_through_counts\n\
00096 ================================================================================\n\
00097 MSG: nav_msgs/OccupancyGrid\n\
00098 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00099 # occupancy.\n\
00100 \n\
00101 Header header \n\
00102 \n\
00103 #MetaData for the map\n\
00104 MapMetaData info\n\
00105 \n\
00106 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00107 # probabilities are in the range [0,100]. Unknown is -1.\n\
00108 int8[] data\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: std_msgs/Header\n\
00112 # Standard metadata for higher-level stamped data types.\n\
00113 # This is generally used to communicate timestamped data \n\
00114 # in a particular coordinate frame.\n\
00115 # \n\
00116 # sequence ID: consecutively increasing ID \n\
00117 uint32 seq\n\
00118 #Two-integer timestamp that is expressed as:\n\
00119 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00120 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00121 # time-handling sugar is provided by the client library\n\
00122 time stamp\n\
00123 #Frame this data is associated with\n\
00124 # 0: no frame\n\
00125 # 1: global frame\n\
00126 string frame_id\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: nav_msgs/MapMetaData\n\
00130 # This hold basic information about the characterists of the OccupancyGrid\n\
00131 \n\
00132 # The time at which the map was loaded\n\
00133 time map_load_time\n\
00134 # The map resolution [m/cell]\n\
00135 float32 resolution\n\
00136 # Map width [cells]\n\
00137 uint32 width\n\
00138 # Map height [cells]\n\
00139 uint32 height\n\
00140 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00141 # cell (0,0) in the map.\n\
00142 geometry_msgs/Pose origin\n\
00143 ================================================================================\n\
00144 MSG: geometry_msgs/Pose\n\
00145 # A representation of pose in free space, composed of postion and orientation. \n\
00146 Point position\n\
00147 Quaternion orientation\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: geometry_msgs/Point\n\
00151 # This contains the position of a point in free space\n\
00152 float64 x\n\
00153 float64 y\n\
00154 float64 z\n\
00155 \n\
00156 ================================================================================\n\
00157 MSG: geometry_msgs/Quaternion\n\
00158 # This represents an orientation in free space in quaternion form.\n\
00159 \n\
00160 float64 x\n\
00161 float64 y\n\
00162 float64 z\n\
00163 float64 w\n\
00164 \n\
00165 "; }
00166 public:
00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00168
00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00170
00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00172 {
00173 ros::serialization::OStream stream(write_ptr, 1000000000);
00174 ros::serialization::serialize(stream, grid);
00175 ros::serialization::serialize(stream, frame_id);
00176 ros::serialization::serialize(stream, occupancy_threshold);
00177 ros::serialization::serialize(stream, max_distance);
00178 ros::serialization::serialize(stream, min_pass_through);
00179 ros::serialization::serialize(stream, hit_counts);
00180 ros::serialization::serialize(stream, pass_through_counts);
00181 return stream.getData();
00182 }
00183
00184 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00185 {
00186 ros::serialization::IStream stream(read_ptr, 1000000000);
00187 ros::serialization::deserialize(stream, grid);
00188 ros::serialization::deserialize(stream, frame_id);
00189 ros::serialization::deserialize(stream, occupancy_threshold);
00190 ros::serialization::deserialize(stream, max_distance);
00191 ros::serialization::deserialize(stream, min_pass_through);
00192 ros::serialization::deserialize(stream, hit_counts);
00193 ros::serialization::deserialize(stream, pass_through_counts);
00194 return stream.getData();
00195 }
00196
00197 ROS_DEPRECATED virtual uint32_t serializationLength() const
00198 {
00199 uint32_t size = 0;
00200 size += ros::serialization::serializationLength(grid);
00201 size += ros::serialization::serializationLength(frame_id);
00202 size += ros::serialization::serializationLength(occupancy_threshold);
00203 size += ros::serialization::serializationLength(max_distance);
00204 size += ros::serialization::serializationLength(min_pass_through);
00205 size += ros::serialization::serializationLength(hit_counts);
00206 size += ros::serialization::serializationLength(pass_through_counts);
00207 return size;
00208 }
00209
00210 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > Ptr;
00211 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> const> ConstPtr;
00212 };
00213 typedef ::occupancy_grid_utils::OverlayClouds_<std::allocator<void> > OverlayClouds;
00214
00215 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds> OverlayCloudsPtr;
00216 typedef boost::shared_ptr< ::occupancy_grid_utils::OverlayClouds const> OverlayCloudsConstPtr;
00217
00218
00219 template<typename ContainerAllocator>
00220 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> & v)
00221 {
00222 ros::message_operations::Printer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >::stream(s, "", v);
00223 return s;}
00224
00225 }
00226
00227 namespace ros
00228 {
00229 namespace message_traits
00230 {
00231 template<class ContainerAllocator>
00232 struct MD5Sum< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00233 static const char* value()
00234 {
00235 return "a1dfac662600ca9b91b434a76485a5d9";
00236 }
00237
00238 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00239 static const uint64_t static_value1 = 0xa1dfac662600ca9bULL;
00240 static const uint64_t static_value2 = 0x91b434a76485a5d9ULL;
00241 };
00242
00243 template<class ContainerAllocator>
00244 struct DataType< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00245 static const char* value()
00246 {
00247 return "occupancy_grid_utils/OverlayClouds";
00248 }
00249
00250 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00251 };
00252
00253 template<class ContainerAllocator>
00254 struct Definition< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> > {
00255 static const char* value()
00256 {
00257 return "nav_msgs/OccupancyGrid grid\n\
00258 string frame_id\n\
00259 float32 occupancy_threshold\n\
00260 float32 max_distance\n\
00261 float32 min_pass_through\n\
00262 int32[] hit_counts\n\
00263 int32[] pass_through_counts\n\
00264 ================================================================================\n\
00265 MSG: nav_msgs/OccupancyGrid\n\
00266 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00267 # occupancy.\n\
00268 \n\
00269 Header header \n\
00270 \n\
00271 #MetaData for the map\n\
00272 MapMetaData info\n\
00273 \n\
00274 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00275 # probabilities are in the range [0,100]. Unknown is -1.\n\
00276 int8[] data\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: std_msgs/Header\n\
00280 # Standard metadata for higher-level stamped data types.\n\
00281 # This is generally used to communicate timestamped data \n\
00282 # in a particular coordinate frame.\n\
00283 # \n\
00284 # sequence ID: consecutively increasing ID \n\
00285 uint32 seq\n\
00286 #Two-integer timestamp that is expressed as:\n\
00287 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00288 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00289 # time-handling sugar is provided by the client library\n\
00290 time stamp\n\
00291 #Frame this data is associated with\n\
00292 # 0: no frame\n\
00293 # 1: global frame\n\
00294 string frame_id\n\
00295 \n\
00296 ================================================================================\n\
00297 MSG: nav_msgs/MapMetaData\n\
00298 # This hold basic information about the characterists of the OccupancyGrid\n\
00299 \n\
00300 # The time at which the map was loaded\n\
00301 time map_load_time\n\
00302 # The map resolution [m/cell]\n\
00303 float32 resolution\n\
00304 # Map width [cells]\n\
00305 uint32 width\n\
00306 # Map height [cells]\n\
00307 uint32 height\n\
00308 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00309 # cell (0,0) in the map.\n\
00310 geometry_msgs/Pose origin\n\
00311 ================================================================================\n\
00312 MSG: geometry_msgs/Pose\n\
00313 # A representation of pose in free space, composed of postion and orientation. \n\
00314 Point position\n\
00315 Quaternion orientation\n\
00316 \n\
00317 ================================================================================\n\
00318 MSG: geometry_msgs/Point\n\
00319 # This contains the position of a point in free space\n\
00320 float64 x\n\
00321 float64 y\n\
00322 float64 z\n\
00323 \n\
00324 ================================================================================\n\
00325 MSG: geometry_msgs/Quaternion\n\
00326 # This represents an orientation in free space in quaternion form.\n\
00327 \n\
00328 float64 x\n\
00329 float64 y\n\
00330 float64 z\n\
00331 float64 w\n\
00332 \n\
00333 ";
00334 }
00335
00336 static const char* value(const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> &) { return value(); }
00337 };
00338
00339 }
00340 }
00341
00342 namespace ros
00343 {
00344 namespace serialization
00345 {
00346
00347 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >
00348 {
00349 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00350 {
00351 stream.next(m.grid);
00352 stream.next(m.frame_id);
00353 stream.next(m.occupancy_threshold);
00354 stream.next(m.max_distance);
00355 stream.next(m.min_pass_through);
00356 stream.next(m.hit_counts);
00357 stream.next(m.pass_through_counts);
00358 }
00359
00360 ROS_DECLARE_ALLINONE_SERIALIZER;
00361 };
00362 }
00363 }
00364
00365 namespace ros
00366 {
00367 namespace message_operations
00368 {
00369
00370 template<class ContainerAllocator>
00371 struct Printer< ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> >
00372 {
00373 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::OverlayClouds_<ContainerAllocator> & v)
00374 {
00375 s << indent << "grid: ";
00376 s << std::endl;
00377 Printer< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >::stream(s, indent + " ", v.grid);
00378 s << indent << "frame_id: ";
00379 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_id);
00380 s << indent << "occupancy_threshold: ";
00381 Printer<float>::stream(s, indent + " ", v.occupancy_threshold);
00382 s << indent << "max_distance: ";
00383 Printer<float>::stream(s, indent + " ", v.max_distance);
00384 s << indent << "min_pass_through: ";
00385 Printer<float>::stream(s, indent + " ", v.min_pass_through);
00386 s << indent << "hit_counts[]" << std::endl;
00387 for (size_t i = 0; i < v.hit_counts.size(); ++i)
00388 {
00389 s << indent << " hit_counts[" << i << "]: ";
00390 Printer<int32_t>::stream(s, indent + " ", v.hit_counts[i]);
00391 }
00392 s << indent << "pass_through_counts[]" << std::endl;
00393 for (size_t i = 0; i < v.pass_through_counts.size(); ++i)
00394 {
00395 s << indent << " pass_through_counts[" << i << "]: ";
00396 Printer<int32_t>::stream(s, indent + " ", v.pass_through_counts[i]);
00397 }
00398 }
00399 };
00400
00401
00402 }
00403 }
00404
00405 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_OVERLAYCLOUDS_H
00406