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