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