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