00001
00002 #ifndef PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTRESULT_H
00003 #define PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTRESULT_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 "sensor_msgs/PointCloud2.h"
00014
00015 namespace pr2_tilt_laser_interface
00016 {
00017 template <class ContainerAllocator>
00018 struct GetSnapshotResult_ : public ros::Message
00019 {
00020 typedef GetSnapshotResult_<ContainerAllocator> Type;
00021
00022 GetSnapshotResult_()
00023 : cloud()
00024 {
00025 }
00026
00027 GetSnapshotResult_(const ContainerAllocator& _alloc)
00028 : cloud(_alloc)
00029 {
00030 }
00031
00032 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _cloud_type;
00033 ::sensor_msgs::PointCloud2_<ContainerAllocator> cloud;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_tilt_laser_interface/GetSnapshotResult"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "96cec5374164b3b3d1d7ef5d7628a7ed"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 # Result\n\
00053 sensor_msgs/PointCloud2 cloud\n\
00054 \n\
00055 \n\
00056 ================================================================================\n\
00057 MSG: sensor_msgs/PointCloud2\n\
00058 # This message holds a collection of N-dimensional points, which may\n\
00059 # contain additional information such as normals, intensity, etc. The\n\
00060 # point data is stored as a binary blob, its layout described by the\n\
00061 # contents of the \"fields\" array.\n\
00062 \n\
00063 # The point cloud data may be organized 2d (image-like) or 1d\n\
00064 # (unordered). Point clouds organized as 2d images may be produced by\n\
00065 # camera depth sensors such as stereo or time-of-flight.\n\
00066 \n\
00067 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00068 # points).\n\
00069 Header header\n\
00070 \n\
00071 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00072 # 1 and width is the length of the point cloud.\n\
00073 uint32 height\n\
00074 uint32 width\n\
00075 \n\
00076 # Describes the channels and their layout in the binary data blob.\n\
00077 PointField[] fields\n\
00078 \n\
00079 bool is_bigendian # Is this data bigendian?\n\
00080 uint32 point_step # Length of a point in bytes\n\
00081 uint32 row_step # Length of a row in bytes\n\
00082 uint8[] data # Actual point data, size is (row_step*height)\n\
00083 \n\
00084 bool is_dense # True if there are no invalid points\n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: std_msgs/Header\n\
00088 # Standard metadata for higher-level stamped data types.\n\
00089 # This is generally used to communicate timestamped data \n\
00090 # in a particular coordinate frame.\n\
00091 # \n\
00092 # sequence ID: consecutively increasing ID \n\
00093 uint32 seq\n\
00094 #Two-integer timestamp that is expressed as:\n\
00095 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00096 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00097 # time-handling sugar is provided by the client library\n\
00098 time stamp\n\
00099 #Frame this data is associated with\n\
00100 # 0: no frame\n\
00101 # 1: global frame\n\
00102 string frame_id\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: sensor_msgs/PointField\n\
00106 # This message holds the description of one point entry in the\n\
00107 # PointCloud2 message format.\n\
00108 uint8 INT8 = 1\n\
00109 uint8 UINT8 = 2\n\
00110 uint8 INT16 = 3\n\
00111 uint8 UINT16 = 4\n\
00112 uint8 INT32 = 5\n\
00113 uint8 UINT32 = 6\n\
00114 uint8 FLOAT32 = 7\n\
00115 uint8 FLOAT64 = 8\n\
00116 \n\
00117 string name # Name of field\n\
00118 uint32 offset # Offset from start of point struct\n\
00119 uint8 datatype # Datatype enumeration, see above\n\
00120 uint32 count # How many elements in the field\n\
00121 \n\
00122 "; }
00123 public:
00124 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00125
00126 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00127
00128 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00129 {
00130 ros::serialization::OStream stream(write_ptr, 1000000000);
00131 ros::serialization::serialize(stream, cloud);
00132 return stream.getData();
00133 }
00134
00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00136 {
00137 ros::serialization::IStream stream(read_ptr, 1000000000);
00138 ros::serialization::deserialize(stream, cloud);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint32_t serializationLength() const
00143 {
00144 uint32_t size = 0;
00145 size += ros::serialization::serializationLength(cloud);
00146 return size;
00147 }
00148
00149 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> > Ptr;
00150 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> const> ConstPtr;
00151 };
00152 typedef ::pr2_tilt_laser_interface::GetSnapshotResult_<std::allocator<void> > GetSnapshotResult;
00153
00154 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotResult> GetSnapshotResultPtr;
00155 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotResult const> GetSnapshotResultConstPtr;
00156
00157
00158 template<typename ContainerAllocator>
00159 std::ostream& operator<<(std::ostream& s, const ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> & v)
00160 {
00161 ros::message_operations::Printer< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> >::stream(s, "", v);
00162 return s;}
00163
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_traits
00169 {
00170 template<class ContainerAllocator>
00171 struct MD5Sum< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "96cec5374164b3b3d1d7ef5d7628a7ed";
00175 }
00176
00177 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> &) { return value(); }
00178 static const uint64_t static_value1 = 0x96cec5374164b3b3ULL;
00179 static const uint64_t static_value2 = 0xd1d7ef5d7628a7edULL;
00180 };
00181
00182 template<class ContainerAllocator>
00183 struct DataType< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> > {
00184 static const char* value()
00185 {
00186 return "pr2_tilt_laser_interface/GetSnapshotResult";
00187 }
00188
00189 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> &) { return value(); }
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct Definition< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00197 # Result\n\
00198 sensor_msgs/PointCloud2 cloud\n\
00199 \n\
00200 \n\
00201 ================================================================================\n\
00202 MSG: sensor_msgs/PointCloud2\n\
00203 # This message holds a collection of N-dimensional points, which may\n\
00204 # contain additional information such as normals, intensity, etc. The\n\
00205 # point data is stored as a binary blob, its layout described by the\n\
00206 # contents of the \"fields\" array.\n\
00207 \n\
00208 # The point cloud data may be organized 2d (image-like) or 1d\n\
00209 # (unordered). Point clouds organized as 2d images may be produced by\n\
00210 # camera depth sensors such as stereo or time-of-flight.\n\
00211 \n\
00212 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00213 # points).\n\
00214 Header header\n\
00215 \n\
00216 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00217 # 1 and width is the length of the point cloud.\n\
00218 uint32 height\n\
00219 uint32 width\n\
00220 \n\
00221 # Describes the channels and their layout in the binary data blob.\n\
00222 PointField[] fields\n\
00223 \n\
00224 bool is_bigendian # Is this data bigendian?\n\
00225 uint32 point_step # Length of a point in bytes\n\
00226 uint32 row_step # Length of a row in bytes\n\
00227 uint8[] data # Actual point data, size is (row_step*height)\n\
00228 \n\
00229 bool is_dense # True if there are no invalid points\n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: std_msgs/Header\n\
00233 # Standard metadata for higher-level stamped data types.\n\
00234 # This is generally used to communicate timestamped data \n\
00235 # in a particular coordinate frame.\n\
00236 # \n\
00237 # sequence ID: consecutively increasing ID \n\
00238 uint32 seq\n\
00239 #Two-integer timestamp that is expressed as:\n\
00240 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00241 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00242 # time-handling sugar is provided by the client library\n\
00243 time stamp\n\
00244 #Frame this data is associated with\n\
00245 # 0: no frame\n\
00246 # 1: global frame\n\
00247 string frame_id\n\
00248 \n\
00249 ================================================================================\n\
00250 MSG: sensor_msgs/PointField\n\
00251 # This message holds the description of one point entry in the\n\
00252 # PointCloud2 message format.\n\
00253 uint8 INT8 = 1\n\
00254 uint8 UINT8 = 2\n\
00255 uint8 INT16 = 3\n\
00256 uint8 UINT16 = 4\n\
00257 uint8 INT32 = 5\n\
00258 uint8 UINT32 = 6\n\
00259 uint8 FLOAT32 = 7\n\
00260 uint8 FLOAT64 = 8\n\
00261 \n\
00262 string name # Name of field\n\
00263 uint32 offset # Offset from start of point struct\n\
00264 uint8 datatype # Datatype enumeration, see above\n\
00265 uint32 count # How many elements in the field\n\
00266 \n\
00267 ";
00268 }
00269
00270 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> &) { return value(); }
00271 };
00272
00273 }
00274 }
00275
00276 namespace ros
00277 {
00278 namespace serialization
00279 {
00280
00281 template<class ContainerAllocator> struct Serializer< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> >
00282 {
00283 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00284 {
00285 stream.next(m.cloud);
00286 }
00287
00288 ROS_DECLARE_ALLINONE_SERIALIZER;
00289 };
00290 }
00291 }
00292
00293 namespace ros
00294 {
00295 namespace message_operations
00296 {
00297
00298 template<class ContainerAllocator>
00299 struct Printer< ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> >
00300 {
00301 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_tilt_laser_interface::GetSnapshotResult_<ContainerAllocator> & v)
00302 {
00303 s << indent << "cloud: ";
00304 s << std::endl;
00305 Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.cloud);
00306 }
00307 };
00308
00309
00310 }
00311 }
00312
00313 #endif // PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTRESULT_H
00314