Go to the documentation of this file.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 <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 "geometry_msgs/PoseStamped.h"
00018 #include "sensor_msgs/PointCloud.h"
00019
00020 namespace occupancy_grid_utils
00021 {
00022 template <class ContainerAllocator>
00023 struct LocalizedCloud_ {
00024 typedef LocalizedCloud_<ContainerAllocator> Type;
00025
00026 LocalizedCloud_()
00027 : sensor_pose()
00028 , cloud()
00029 {
00030 }
00031
00032 LocalizedCloud_(const ContainerAllocator& _alloc)
00033 : sensor_pose(_alloc)
00034 , cloud(_alloc)
00035 {
00036 }
00037
00038 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _sensor_pose_type;
00039 ::geometry_msgs::PoseStamped_<ContainerAllocator> sensor_pose;
00040
00041 typedef ::sensor_msgs::PointCloud_<ContainerAllocator> _cloud_type;
00042 ::sensor_msgs::PointCloud_<ContainerAllocator> cloud;
00043
00044
00045 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::occupancy_grid_utils::LocalizedCloud_<std::allocator<void> > LocalizedCloud;
00050
00051 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud> LocalizedCloudPtr;
00052 typedef boost::shared_ptr< ::occupancy_grid_utils::LocalizedCloud const> LocalizedCloudConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "e7632592cfca00d60d28bb2634b6a2bf";
00074 }
00075
00076 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xe7632592cfca00d6ULL;
00078 static const uint64_t static_value2 = 0x0d28bb2634b6a2bfULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "occupancy_grid_utils/LocalizedCloud";
00086 }
00087
00088 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "# Represents a point cloud (in a sensor frame) together with the pose of the sensor in\n\
00096 # reference frame sensor_pose.header.frame_id\n\
00097 # The header of the cloud is ignored\n\
00098 geometry_msgs/PoseStamped sensor_pose\n\
00099 sensor_msgs/PointCloud cloud\n\
00100 ================================================================================\n\
00101 MSG: geometry_msgs/PoseStamped\n\
00102 # A Pose with reference coordinate frame and timestamp\n\
00103 Header header\n\
00104 Pose pose\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: std_msgs/Header\n\
00108 # Standard metadata for higher-level stamped data types.\n\
00109 # This is generally used to communicate timestamped data \n\
00110 # in a particular coordinate frame.\n\
00111 # \n\
00112 # sequence ID: consecutively increasing ID \n\
00113 uint32 seq\n\
00114 #Two-integer timestamp that is expressed as:\n\
00115 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00116 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00117 # time-handling sugar is provided by the client library\n\
00118 time stamp\n\
00119 #Frame this data is associated with\n\
00120 # 0: no frame\n\
00121 # 1: global frame\n\
00122 string frame_id\n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: geometry_msgs/Pose\n\
00126 # A representation of pose in free space, composed of postion and orientation. \n\
00127 Point position\n\
00128 Quaternion orientation\n\
00129 \n\
00130 ================================================================================\n\
00131 MSG: geometry_msgs/Point\n\
00132 # This contains the position of a point in free space\n\
00133 float64 x\n\
00134 float64 y\n\
00135 float64 z\n\
00136 \n\
00137 ================================================================================\n\
00138 MSG: geometry_msgs/Quaternion\n\
00139 # This represents an orientation in free space in quaternion form.\n\
00140 \n\
00141 float64 x\n\
00142 float64 y\n\
00143 float64 z\n\
00144 float64 w\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: sensor_msgs/PointCloud\n\
00148 # This message holds a collection of 3d points, plus optional additional\n\
00149 # information about each point.\n\
00150 \n\
00151 # Time of sensor data acquisition, coordinate frame ID.\n\
00152 Header header\n\
00153 \n\
00154 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00155 # in the frame given in the header.\n\
00156 geometry_msgs/Point32[] points\n\
00157 \n\
00158 # Each channel should have the same number of elements as points array,\n\
00159 # and the data in each channel should correspond 1:1 with each point.\n\
00160 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00161 ChannelFloat32[] channels\n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: geometry_msgs/Point32\n\
00165 # This contains the position of a point in free space(with 32 bits of precision).\n\
00166 # It is recommeded to use Point wherever possible instead of Point32. \n\
00167 # \n\
00168 # This recommendation is to promote interoperability. \n\
00169 #\n\
00170 # This message is designed to take up less space when sending\n\
00171 # lots of points at once, as in the case of a PointCloud. \n\
00172 \n\
00173 float32 x\n\
00174 float32 y\n\
00175 float32 z\n\
00176 ================================================================================\n\
00177 MSG: sensor_msgs/ChannelFloat32\n\
00178 # This message is used by the PointCloud message to hold optional data\n\
00179 # associated with each point in the cloud. The length of the values\n\
00180 # array should be the same as the length of the points array in the\n\
00181 # PointCloud, and each value should be associated with the corresponding\n\
00182 # point.\n\
00183 \n\
00184 # Channel names in existing practice include:\n\
00185 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00186 # This is opposite to usual conventions but remains for\n\
00187 # historical reasons. The newer PointCloud2 message has no\n\
00188 # such problem.\n\
00189 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00190 # (R,G,B) values packed into the least significant 24 bits,\n\
00191 # in order.\n\
00192 # \"intensity\" - laser or pixel intensity.\n\
00193 # \"distance\"\n\
00194 \n\
00195 # The channel name should give semantics of the channel (e.g.\n\
00196 # \"intensity\" instead of \"value\").\n\
00197 string name\n\
00198 \n\
00199 # The values array should be 1-1 with the elements of the associated\n\
00200 # PointCloud.\n\
00201 float32[] values\n\
00202 \n\
00203 ";
00204 }
00205
00206 static const char* value(const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> &) { return value(); }
00207 };
00208
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace serialization
00215 {
00216
00217 template<class ContainerAllocator> struct Serializer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >
00218 {
00219 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00220 {
00221 stream.next(m.sensor_pose);
00222 stream.next(m.cloud);
00223 }
00224
00225 ROS_DECLARE_ALLINONE_SERIALIZER;
00226 };
00227 }
00228 }
00229
00230 namespace ros
00231 {
00232 namespace message_operations
00233 {
00234
00235 template<class ContainerAllocator>
00236 struct Printer< ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> >
00237 {
00238 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::occupancy_grid_utils::LocalizedCloud_<ContainerAllocator> & v)
00239 {
00240 s << indent << "sensor_pose: ";
00241 s << std::endl;
00242 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.sensor_pose);
00243 s << indent << "cloud: ";
00244 s << std::endl;
00245 Printer< ::sensor_msgs::PointCloud_<ContainerAllocator> >::stream(s, indent + " ", v.cloud);
00246 }
00247 };
00248
00249
00250 }
00251 }
00252
00253 #endif // OCCUPANCY_GRID_UTILS_MESSAGE_LOCALIZEDCLOUD_H
00254