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