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