00001
00002 #ifndef OCCUPANCY_GRID_UTILS_MESSAGE_LOCALIZEDCLOUD_H
00003 #define OCCUPANCY_GRID_UTILS_MESSAGE_LOCALIZEDCLOUD_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 "std_msgs/Header.h"
00014 #include "geometry_msgs/Pose.h"
00015 #include "sensor_msgs/PointCloud.h"
00016
00017 namespace occupancy_grid_utils
00018 {
00019 template <class ContainerAllocator>
00020 struct LocalizedCloud_ : public ros::Message
00021 {
00022 typedef LocalizedCloud_<ContainerAllocator> Type;
00023
00024 LocalizedCloud_()
00025 : header()
00026 , sensor_pose()
00027 , cloud()
00028 {
00029 }
00030
00031 LocalizedCloud_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , sensor_pose(_alloc)
00034 , cloud(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::geometry_msgs::Pose_<ContainerAllocator> _sensor_pose_type;
00042 ::geometry_msgs::Pose_<ContainerAllocator> sensor_pose;
00043
00044 typedef ::sensor_msgs::PointCloud_<ContainerAllocator> _cloud_type;
00045 ::sensor_msgs::PointCloud_<ContainerAllocator> cloud;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "occupancy_grid_utils/LocalizedCloud"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "e868d77f7e7116b7eb215e43caa0ea5d"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# Represents a point cloud (in a sensor frame) together with the pose of the sensor in\n\
00064 # reference frame header.frame_id\n\
00065 # The header of the cloud is ignored\n\
00066 Header header\n\
00067 geometry_msgs/Pose sensor_pose\n\
00068 sensor_msgs/PointCloud cloud\n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: geometry_msgs/Pose\n\
00089 # A representation of pose in free space, composed of postion and orientation. \n\
00090 Point position\n\
00091 Quaternion orientation\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: geometry_msgs/Point\n\
00095 # This contains the position of a point in free space\n\
00096 float64 x\n\
00097 float64 y\n\
00098 float64 z\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: geometry_msgs/Quaternion\n\
00102 # This represents an orientation in free space in quaternion form.\n\
00103 \n\
00104 float64 x\n\
00105 float64 y\n\
00106 float64 z\n\
00107 float64 w\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: sensor_msgs/PointCloud\n\
00111 # This message holds a collection of 3d points, plus optional additional\n\
00112 # information about each point.\n\
00113 \n\
00114 # Time of sensor data acquisition, coordinate frame ID.\n\
00115 Header header\n\
00116 \n\
00117 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00118 # in the frame given in the header.\n\
00119 geometry_msgs/Point32[] points\n\
00120 \n\
00121 # Each channel should have the same number of elements as points array,\n\
00122 # and the data in each channel should correspond 1:1 with each point.\n\
00123 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00124 ChannelFloat32[] channels\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: geometry_msgs/Point32\n\
00128 # This contains the position of a point in free space(with 32 bits of precision).\n\
00129 # It is recommeded to use Point wherever possible instead of Point32. \n\
00130 # \n\
00131 # This recommendation is to promote interoperability. \n\
00132 #\n\
00133 # This message is designed to take up less space when sending\n\
00134 # lots of points at once, as in the case of a PointCloud. \n\
00135 \n\
00136 float32 x\n\
00137 float32 y\n\
00138 float32 z\n\
00139 ================================================================================\n\
00140 MSG: sensor_msgs/ChannelFloat32\n\
00141 # This message is used by the PointCloud message to hold optional data\n\
00142 # associated with each point in the cloud. The length of the values\n\
00143 # array should be the same as the length of the points array in the\n\
00144 # PointCloud, and each value should be associated with the corresponding\n\
00145 # point.\n\
00146 \n\
00147 # Channel names in existing practice include:\n\
00148 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00149 # This is opposite to usual conventions but remains for\n\
00150 # historical reasons. The newer PointCloud2 message has no\n\
00151 # such problem.\n\
00152 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00153 # (R,G,B) values packed into the least significant 24 bits,\n\
00154 # in order.\n\
00155 # \"intensity\" - laser or pixel intensity.\n\
00156 # \"distance\"\n\
00157 \n\
00158 # The channel name should give semantics of the channel (e.g.\n\
00159 # \"intensity\" instead of \"value\").\n\
00160 string name\n\
00161 \n\
00162 # The values array should be 1-1 with the elements of the associated\n\
00163 # PointCloud.\n\
00164 float32[] values\n\
00165 \n\
00166 "; }
00167 public:
00168 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00169
00170 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00171
00172 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00173 {
00174 ros::serialization::OStream stream(write_ptr, 1000000000);
00175 ros::serialization::serialize(stream, header);
00176 ros::serialization::serialize(stream, sensor_pose);
00177 ros::serialization::serialize(stream, cloud);
00178 return stream.getData();
00179 }
00180
00181 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00182 {
00183 ros::serialization::IStream stream(read_ptr, 1000000000);
00184 ros::serialization::deserialize(stream, header);
00185 ros::serialization::deserialize(stream, sensor_pose);
00186 ros::serialization::deserialize(stream, cloud);
00187 return stream.getData();
00188 }
00189
00190 ROS_DEPRECATED virtual uint32_t serializationLength() const
00191 {
00192 uint32_t size = 0;
00193 size += ros::serialization::serializationLength(header);
00194 size += ros::serialization::serializationLength(sensor_pose);
00195 size += ros::serialization::serializationLength(cloud);
00196 return size;
00197 }
00198
00199 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > Ptr;
00200 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> const> ConstPtr;
00201 };
00202 typedef ::occupancy_grid_utils::LocalizedCloud_<std::allocator<void> > LocalizedCloud;
00203
00204 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud> LocalizedCloudPtr;
00205 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud const> LocalizedCloudConstPtr;
00206
00207
00208 template<typename ContainerAllocator>
00209 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> & v)
00210 {
00211 ros::message_operations::Printer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >::stream(s, "", v);
00212 return s;}
00213
00214 }
00215
00216 namespace ros
00217 {
00218 namespace message_traits
00219 {
00220 template<class ContainerAllocator>
00221 struct MD5Sum< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00222 static const char* value()
00223 {
00224 return "e868d77f7e7116b7eb215e43caa0ea5d";
00225 }
00226
00227 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00228 static const uint64_t static_value1 = 0xe868d77f7e7116b7ULL;
00229 static const uint64_t static_value2 = 0xeb215e43caa0ea5dULL;
00230 };
00231
00232 template<class ContainerAllocator>
00233 struct DataType< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00234 static const char* value()
00235 {
00236 return "occupancy_grid_utils/LocalizedCloud";
00237 }
00238
00239 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00240 };
00241
00242 template<class ContainerAllocator>
00243 struct Definition< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00244 static const char* value()
00245 {
00246 return "# Represents a point cloud (in a sensor frame) together with the pose of the sensor in\n\
00247 # reference frame header.frame_id\n\
00248 # The header of the cloud is ignored\n\
00249 Header header\n\
00250 geometry_msgs/Pose sensor_pose\n\
00251 sensor_msgs/PointCloud cloud\n\
00252 ================================================================================\n\
00253 MSG: std_msgs/Header\n\
00254 # Standard metadata for higher-level stamped data types.\n\
00255 # This is generally used to communicate timestamped data \n\
00256 # in a particular coordinate frame.\n\
00257 # \n\
00258 # sequence ID: consecutively increasing ID \n\
00259 uint32 seq\n\
00260 #Two-integer timestamp that is expressed as:\n\
00261 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00262 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00263 # time-handling sugar is provided by the client library\n\
00264 time stamp\n\
00265 #Frame this data is associated with\n\
00266 # 0: no frame\n\
00267 # 1: global frame\n\
00268 string frame_id\n\
00269 \n\
00270 ================================================================================\n\
00271 MSG: geometry_msgs/Pose\n\
00272 # A representation of pose in free space, composed of postion and orientation. \n\
00273 Point position\n\
00274 Quaternion orientation\n\
00275 \n\
00276 ================================================================================\n\
00277 MSG: geometry_msgs/Point\n\
00278 # This contains the position of a point in free space\n\
00279 float64 x\n\
00280 float64 y\n\
00281 float64 z\n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: geometry_msgs/Quaternion\n\
00285 # This represents an orientation in free space in quaternion form.\n\
00286 \n\
00287 float64 x\n\
00288 float64 y\n\
00289 float64 z\n\
00290 float64 w\n\
00291 \n\
00292 ================================================================================\n\
00293 MSG: sensor_msgs/PointCloud\n\
00294 # This message holds a collection of 3d points, plus optional additional\n\
00295 # information about each point.\n\
00296 \n\
00297 # Time of sensor data acquisition, coordinate frame ID.\n\
00298 Header header\n\
00299 \n\
00300 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00301 # in the frame given in the header.\n\
00302 geometry_msgs/Point32[] points\n\
00303 \n\
00304 # Each channel should have the same number of elements as points array,\n\
00305 # and the data in each channel should correspond 1:1 with each point.\n\
00306 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00307 ChannelFloat32[] channels\n\
00308 \n\
00309 ================================================================================\n\
00310 MSG: geometry_msgs/Point32\n\
00311 # This contains the position of a point in free space(with 32 bits of precision).\n\
00312 # It is recommeded to use Point wherever possible instead of Point32. \n\
00313 # \n\
00314 # This recommendation is to promote interoperability. \n\
00315 #\n\
00316 # This message is designed to take up less space when sending\n\
00317 # lots of points at once, as in the case of a PointCloud. \n\
00318 \n\
00319 float32 x\n\
00320 float32 y\n\
00321 float32 z\n\
00322 ================================================================================\n\
00323 MSG: sensor_msgs/ChannelFloat32\n\
00324 # This message is used by the PointCloud message to hold optional data\n\
00325 # associated with each point in the cloud. The length of the values\n\
00326 # array should be the same as the length of the points array in the\n\
00327 # PointCloud, and each value should be associated with the corresponding\n\
00328 # point.\n\
00329 \n\
00330 # Channel names in existing practice include:\n\
00331 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00332 # This is opposite to usual conventions but remains for\n\
00333 # historical reasons. The newer PointCloud2 message has no\n\
00334 # such problem.\n\
00335 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00336 # (R,G,B) values packed into the least significant 24 bits,\n\
00337 # in order.\n\
00338 # \"intensity\" - laser or pixel intensity.\n\
00339 # \"distance\"\n\
00340 \n\
00341 # The channel name should give semantics of the channel (e.g.\n\
00342 # \"intensity\" instead of \"value\").\n\
00343 string name\n\
00344 \n\
00345 # The values array should be 1-1 with the elements of the associated\n\
00346 # PointCloud.\n\
00347 float32[] values\n\
00348 \n\
00349 ";
00350 }
00351
00352 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00353 };
00354
00355 template<class ContainerAllocator> struct HasHeader< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > : public TrueType {};
00356 template<class ContainerAllocator> struct HasHeader< const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > : public TrueType {};
00357 }
00358 }
00359
00360 namespace ros
00361 {
00362 namespace serialization
00363 {
00364
00365 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >
00366 {
00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00368 {
00369 stream.next(m.header);
00370 stream.next(m.sensor_pose);
00371 stream.next(m.cloud);
00372 }
00373
00374 ROS_DECLARE_ALLINONE_SERIALIZER;
00375 };
00376 }
00377 }
00378
00379 namespace ros
00380 {
00381 namespace message_operations
00382 {
00383
00384 template<class ContainerAllocator>
00385 struct Printer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >
00386 {
00387 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> & v)
00388 {
00389 s << indent << "header: ";
00390 s << std::endl;
00391 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00392 s << indent << "sensor_pose: ";
00393 s << std::endl;
00394 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.sensor_pose);
00395 s << indent << "cloud: ";
00396 s << std::endl;
00397 Printer< ::sensor_msgs::PointCloud_<ContainerAllocator> >::stream(s, indent + " ", v.cloud);
00398 }
00399 };
00400
00401
00402 }
00403 }
00404
00405 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_LOCALIZEDCLOUD_H
00406