00001
00002 #ifndef HRL_PHRI_2011_MESSAGE_PHRIPOINTCLOUDCAPTURE_H
00003 #define HRL_PHRI_2011_MESSAGE_PHRIPOINTCLOUDCAPTURE_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 "sensor_msgs/PointCloud2.h"
00019 #include "geometry_msgs/PoseStamped.h"
00020 #include "geometry_msgs/PoseStamped.h"
00021
00022 namespace hrl_phri_2011
00023 {
00024 template <class ContainerAllocator>
00025 struct PHRIPointCloudCapture_ {
00026 typedef PHRIPointCloudCapture_<ContainerAllocator> Type;
00027
00028 PHRIPointCloudCapture_()
00029 : header()
00030 , pc_capture()
00031 , frame_names()
00032 , saved_frames()
00033 , pc_frame()
00034 {
00035 }
00036
00037 PHRIPointCloudCapture_(const ContainerAllocator& _alloc)
00038 : header(_alloc)
00039 , pc_capture(_alloc)
00040 , frame_names(_alloc)
00041 , saved_frames(_alloc)
00042 , pc_frame(_alloc)
00043 {
00044 }
00045
00046 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00047 ::std_msgs::Header_<ContainerAllocator> header;
00048
00049 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _pc_capture_type;
00050 ::sensor_msgs::PointCloud2_<ContainerAllocator> pc_capture;
00051
00052 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _frame_names_type;
00053 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > frame_names;
00054
00055 typedef std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > _saved_frames_type;
00056 std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > saved_frames;
00057
00058 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pc_frame_type;
00059 ::geometry_msgs::PoseStamped_<ContainerAllocator> pc_frame;
00060
00061
00062 typedef boost::shared_ptr< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > Ptr;
00063 typedef boost::shared_ptr< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> const> ConstPtr;
00064 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00065 };
00066 typedef ::hrl_phri_2011::PHRIPointCloudCapture_<std::allocator<void> > PHRIPointCloudCapture;
00067
00068 typedef boost::shared_ptr< ::hrl_phri_2011::PHRIPointCloudCapture> PHRIPointCloudCapturePtr;
00069 typedef boost::shared_ptr< ::hrl_phri_2011::PHRIPointCloudCapture const> PHRIPointCloudCaptureConstPtr;
00070
00071
00072 template<typename ContainerAllocator>
00073 std::ostream& operator<<(std::ostream& s, const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> & v)
00074 {
00075 ros::message_operations::Printer< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> >::stream(s, "", v);
00076 return s;}
00077
00078 }
00079
00080 namespace ros
00081 {
00082 namespace message_traits
00083 {
00084 template<class ContainerAllocator> struct IsMessage< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > : public TrueType {};
00085 template<class ContainerAllocator> struct IsMessage< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> const> : public TrueType {};
00086 template<class ContainerAllocator>
00087 struct MD5Sum< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "c6debef93d48b75193793d0b80ad267f";
00091 }
00092
00093 static const char* value(const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> &) { return value(); }
00094 static const uint64_t static_value1 = 0xc6debef93d48b751ULL;
00095 static const uint64_t static_value2 = 0x93793d0b80ad267fULL;
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct DataType< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "hrl_phri_2011/PHRIPointCloudCapture";
00103 }
00104
00105 static const char* value(const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator>
00109 struct Definition< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "Header header\n\
00113 # seq is [0, 1, ...]\n\
00114 # frame_id in header is base_frame\n\
00115 \n\
00116 sensor_msgs/PointCloud2 pc_capture\n\
00117 # in PC's native frame\n\
00118 \n\
00119 string[] frame_names\n\
00120 # names matching respective saved_frames\n\
00121 \n\
00122 geometry_msgs/PoseStamped[] saved_frames\n\
00123 # header is same as total outer header\n\
00124 \n\
00125 geometry_msgs/PoseStamped pc_frame\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: std_msgs/Header\n\
00129 # Standard metadata for higher-level stamped data types.\n\
00130 # This is generally used to communicate timestamped data \n\
00131 # in a particular coordinate frame.\n\
00132 # \n\
00133 # sequence ID: consecutively increasing ID \n\
00134 uint32 seq\n\
00135 #Two-integer timestamp that is expressed as:\n\
00136 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00137 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00138 # time-handling sugar is provided by the client library\n\
00139 time stamp\n\
00140 #Frame this data is associated with\n\
00141 # 0: no frame\n\
00142 # 1: global frame\n\
00143 string frame_id\n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: sensor_msgs/PointCloud2\n\
00147 # This message holds a collection of N-dimensional points, which may\n\
00148 # contain additional information such as normals, intensity, etc. The\n\
00149 # point data is stored as a binary blob, its layout described by the\n\
00150 # contents of the \"fields\" array.\n\
00151 \n\
00152 # The point cloud data may be organized 2d (image-like) or 1d\n\
00153 # (unordered). Point clouds organized as 2d images may be produced by\n\
00154 # camera depth sensors such as stereo or time-of-flight.\n\
00155 \n\
00156 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00157 # points).\n\
00158 Header header\n\
00159 \n\
00160 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00161 # 1 and width is the length of the point cloud.\n\
00162 uint32 height\n\
00163 uint32 width\n\
00164 \n\
00165 # Describes the channels and their layout in the binary data blob.\n\
00166 PointField[] fields\n\
00167 \n\
00168 bool is_bigendian # Is this data bigendian?\n\
00169 uint32 point_step # Length of a point in bytes\n\
00170 uint32 row_step # Length of a row in bytes\n\
00171 uint8[] data # Actual point data, size is (row_step*height)\n\
00172 \n\
00173 bool is_dense # True if there are no invalid points\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: sensor_msgs/PointField\n\
00177 # This message holds the description of one point entry in the\n\
00178 # PointCloud2 message format.\n\
00179 uint8 INT8 = 1\n\
00180 uint8 UINT8 = 2\n\
00181 uint8 INT16 = 3\n\
00182 uint8 UINT16 = 4\n\
00183 uint8 INT32 = 5\n\
00184 uint8 UINT32 = 6\n\
00185 uint8 FLOAT32 = 7\n\
00186 uint8 FLOAT64 = 8\n\
00187 \n\
00188 string name # Name of field\n\
00189 uint32 offset # Offset from start of point struct\n\
00190 uint8 datatype # Datatype enumeration, see above\n\
00191 uint32 count # How many elements in the field\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/PoseStamped\n\
00195 # A Pose with reference coordinate frame and timestamp\n\
00196 Header header\n\
00197 Pose pose\n\
00198 \n\
00199 ================================================================================\n\
00200 MSG: geometry_msgs/Pose\n\
00201 # A representation of pose in free space, composed of postion and orientation. \n\
00202 Point position\n\
00203 Quaternion orientation\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: geometry_msgs/Point\n\
00207 # This contains the position of a point in free space\n\
00208 float64 x\n\
00209 float64 y\n\
00210 float64 z\n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: geometry_msgs/Quaternion\n\
00214 # This represents an orientation in free space in quaternion form.\n\
00215 \n\
00216 float64 x\n\
00217 float64 y\n\
00218 float64 z\n\
00219 float64 w\n\
00220 \n\
00221 ";
00222 }
00223
00224 static const char* value(const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> &) { return value(); }
00225 };
00226
00227 template<class ContainerAllocator> struct HasHeader< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > : public TrueType {};
00228 template<class ContainerAllocator> struct HasHeader< const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> > : public TrueType {};
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236
00237 template<class ContainerAllocator> struct Serializer< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> >
00238 {
00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240 {
00241 stream.next(m.header);
00242 stream.next(m.pc_capture);
00243 stream.next(m.frame_names);
00244 stream.next(m.saved_frames);
00245 stream.next(m.pc_frame);
00246 }
00247
00248 ROS_DECLARE_ALLINONE_SERIALIZER;
00249 };
00250 }
00251 }
00252
00253 namespace ros
00254 {
00255 namespace message_operations
00256 {
00257
00258 template<class ContainerAllocator>
00259 struct Printer< ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> >
00260 {
00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hrl_phri_2011::PHRIPointCloudCapture_<ContainerAllocator> & v)
00262 {
00263 s << indent << "header: ";
00264 s << std::endl;
00265 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00266 s << indent << "pc_capture: ";
00267 s << std::endl;
00268 Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.pc_capture);
00269 s << indent << "frame_names[]" << std::endl;
00270 for (size_t i = 0; i < v.frame_names.size(); ++i)
00271 {
00272 s << indent << " frame_names[" << i << "]: ";
00273 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_names[i]);
00274 }
00275 s << indent << "saved_frames[]" << std::endl;
00276 for (size_t i = 0; i < v.saved_frames.size(); ++i)
00277 {
00278 s << indent << " saved_frames[" << i << "]: ";
00279 s << std::endl;
00280 s << indent;
00281 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.saved_frames[i]);
00282 }
00283 s << indent << "pc_frame: ";
00284 s << std::endl;
00285 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pc_frame);
00286 }
00287 };
00288
00289
00290 }
00291 }
00292
00293 #endif // HRL_PHRI_2011_MESSAGE_PHRIPOINTCLOUDCAPTURE_H
00294