00001
00002 #ifndef PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONRESULT_H
00003 #define PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONRESULT_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 "std_msgs/Header.h"
00014 #include "actionlib_msgs/GoalStatus.h"
00015 #include "pr2_create_object_model/ModelObjectInHandResult.h"
00016
00017 namespace pr2_create_object_model
00018 {
00019 template <class ContainerAllocator>
00020 struct ModelObjectInHandActionResult_ : public ros::Message
00021 {
00022 typedef ModelObjectInHandActionResult_<ContainerAllocator> Type;
00023
00024 ModelObjectInHandActionResult_()
00025 : header()
00026 , status()
00027 , result()
00028 {
00029 }
00030
00031 ModelObjectInHandActionResult_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , status(_alloc)
00034 , result(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::actionlib_msgs::GoalStatus_<ContainerAllocator> _status_type;
00042 ::actionlib_msgs::GoalStatus_<ContainerAllocator> status;
00043
00044 typedef ::pr2_create_object_model::ModelObjectInHandResult_<ContainerAllocator> _result_type;
00045 ::pr2_create_object_model::ModelObjectInHandResult_<ContainerAllocator> result;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_create_object_model/ModelObjectInHandActionResult"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "03a779d4458fee213a1f34cf921ec83a"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 \n\
00065 Header header\n\
00066 actionlib_msgs/GoalStatus status\n\
00067 ModelObjectInHandResult result\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: actionlib_msgs/GoalStatus\n\
00089 GoalID goal_id\n\
00090 uint8 status\n\
00091 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00092 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00093 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00094 # and has since completed its execution (Terminal State)\n\
00095 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00096 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00097 # to some failure (Terminal State)\n\
00098 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00099 # because the goal was unattainable or invalid (Terminal State)\n\
00100 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00101 # and has not yet completed execution\n\
00102 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00103 # but the action server has not yet confirmed that the goal is canceled\n\
00104 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00105 # and was successfully cancelled (Terminal State)\n\
00106 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00107 # sent over the wire by an action server\n\
00108 \n\
00109 #Allow for the user to associate a string with GoalStatus for debugging\n\
00110 string text\n\
00111 \n\
00112 \n\
00113 ================================================================================\n\
00114 MSG: actionlib_msgs/GoalID\n\
00115 # The stamp should store the time at which this goal was requested.\n\
00116 # It is used by an action server when it tries to preempt all\n\
00117 # goals that were requested before a certain time\n\
00118 time stamp\n\
00119 \n\
00120 # The id provides a way to associate feedback and\n\
00121 # result message with specific goal requests. The id\n\
00122 # specified must be unique.\n\
00123 string id\n\
00124 \n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: pr2_create_object_model/ModelObjectInHandResult\n\
00128 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00129 \n\
00130 sensor_msgs/PointCloud2 cluster\n\
00131 string collision_name\n\
00132 \n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: sensor_msgs/PointCloud2\n\
00136 # This message holds a collection of N-dimensional points, which may\n\
00137 # contain additional information such as normals, intensity, etc. The\n\
00138 # point data is stored as a binary blob, its layout described by the\n\
00139 # contents of the \"fields\" array.\n\
00140 \n\
00141 # The point cloud data may be organized 2d (image-like) or 1d\n\
00142 # (unordered). Point clouds organized as 2d images may be produced by\n\
00143 # camera depth sensors such as stereo or time-of-flight.\n\
00144 \n\
00145 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00146 # points).\n\
00147 Header header\n\
00148 \n\
00149 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00150 # 1 and width is the length of the point cloud.\n\
00151 uint32 height\n\
00152 uint32 width\n\
00153 \n\
00154 # Describes the channels and their layout in the binary data blob.\n\
00155 PointField[] fields\n\
00156 \n\
00157 bool is_bigendian # Is this data bigendian?\n\
00158 uint32 point_step # Length of a point in bytes\n\
00159 uint32 row_step # Length of a row in bytes\n\
00160 uint8[] data # Actual point data, size is (row_step*height)\n\
00161 \n\
00162 bool is_dense # True if there are no invalid points\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: sensor_msgs/PointField\n\
00166 # This message holds the description of one point entry in the\n\
00167 # PointCloud2 message format.\n\
00168 uint8 INT8 = 1\n\
00169 uint8 UINT8 = 2\n\
00170 uint8 INT16 = 3\n\
00171 uint8 UINT16 = 4\n\
00172 uint8 INT32 = 5\n\
00173 uint8 UINT32 = 6\n\
00174 uint8 FLOAT32 = 7\n\
00175 uint8 FLOAT64 = 8\n\
00176 \n\
00177 string name # Name of field\n\
00178 uint32 offset # Offset from start of point struct\n\
00179 uint8 datatype # Datatype enumeration, see above\n\
00180 uint32 count # How many elements in the field\n\
00181 \n\
00182 "; }
00183 public:
00184 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00185
00186 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00187
00188 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00189 {
00190 ros::serialization::OStream stream(write_ptr, 1000000000);
00191 ros::serialization::serialize(stream, header);
00192 ros::serialization::serialize(stream, status);
00193 ros::serialization::serialize(stream, result);
00194 return stream.getData();
00195 }
00196
00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00198 {
00199 ros::serialization::IStream stream(read_ptr, 1000000000);
00200 ros::serialization::deserialize(stream, header);
00201 ros::serialization::deserialize(stream, status);
00202 ros::serialization::deserialize(stream, result);
00203 return stream.getData();
00204 }
00205
00206 ROS_DEPRECATED virtual uint32_t serializationLength() const
00207 {
00208 uint32_t size = 0;
00209 size += ros::serialization::serializationLength(header);
00210 size += ros::serialization::serializationLength(status);
00211 size += ros::serialization::serializationLength(result);
00212 return size;
00213 }
00214
00215 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > Ptr;
00216 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> const> ConstPtr;
00217 };
00218 typedef ::pr2_create_object_model::ModelObjectInHandActionResult_<std::allocator<void> > ModelObjectInHandActionResult;
00219
00220 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionResult> ModelObjectInHandActionResultPtr;
00221 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionResult const> ModelObjectInHandActionResultConstPtr;
00222
00223
00224 template<typename ContainerAllocator>
00225 std::ostream& operator<<(std::ostream& s, const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> & v)
00226 {
00227 ros::message_operations::Printer< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> >::stream(s, "", v);
00228 return s;}
00229
00230 }
00231
00232 namespace ros
00233 {
00234 namespace message_traits
00235 {
00236 template<class ContainerAllocator>
00237 struct MD5Sum< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > {
00238 static const char* value()
00239 {
00240 return "03a779d4458fee213a1f34cf921ec83a";
00241 }
00242
00243 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> &) { return value(); }
00244 static const uint64_t static_value1 = 0x03a779d4458fee21ULL;
00245 static const uint64_t static_value2 = 0x3a1f34cf921ec83aULL;
00246 };
00247
00248 template<class ContainerAllocator>
00249 struct DataType< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > {
00250 static const char* value()
00251 {
00252 return "pr2_create_object_model/ModelObjectInHandActionResult";
00253 }
00254
00255 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> &) { return value(); }
00256 };
00257
00258 template<class ContainerAllocator>
00259 struct Definition< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > {
00260 static const char* value()
00261 {
00262 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00263 \n\
00264 Header header\n\
00265 actionlib_msgs/GoalStatus status\n\
00266 ModelObjectInHandResult result\n\
00267 \n\
00268 ================================================================================\n\
00269 MSG: std_msgs/Header\n\
00270 # Standard metadata for higher-level stamped data types.\n\
00271 # This is generally used to communicate timestamped data \n\
00272 # in a particular coordinate frame.\n\
00273 # \n\
00274 # sequence ID: consecutively increasing ID \n\
00275 uint32 seq\n\
00276 #Two-integer timestamp that is expressed as:\n\
00277 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00278 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00279 # time-handling sugar is provided by the client library\n\
00280 time stamp\n\
00281 #Frame this data is associated with\n\
00282 # 0: no frame\n\
00283 # 1: global frame\n\
00284 string frame_id\n\
00285 \n\
00286 ================================================================================\n\
00287 MSG: actionlib_msgs/GoalStatus\n\
00288 GoalID goal_id\n\
00289 uint8 status\n\
00290 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00291 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00292 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00293 # and has since completed its execution (Terminal State)\n\
00294 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00295 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00296 # to some failure (Terminal State)\n\
00297 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00298 # because the goal was unattainable or invalid (Terminal State)\n\
00299 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00300 # and has not yet completed execution\n\
00301 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00302 # but the action server has not yet confirmed that the goal is canceled\n\
00303 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00304 # and was successfully cancelled (Terminal State)\n\
00305 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00306 # sent over the wire by an action server\n\
00307 \n\
00308 #Allow for the user to associate a string with GoalStatus for debugging\n\
00309 string text\n\
00310 \n\
00311 \n\
00312 ================================================================================\n\
00313 MSG: actionlib_msgs/GoalID\n\
00314 # The stamp should store the time at which this goal was requested.\n\
00315 # It is used by an action server when it tries to preempt all\n\
00316 # goals that were requested before a certain time\n\
00317 time stamp\n\
00318 \n\
00319 # The id provides a way to associate feedback and\n\
00320 # result message with specific goal requests. The id\n\
00321 # specified must be unique.\n\
00322 string id\n\
00323 \n\
00324 \n\
00325 ================================================================================\n\
00326 MSG: pr2_create_object_model/ModelObjectInHandResult\n\
00327 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00328 \n\
00329 sensor_msgs/PointCloud2 cluster\n\
00330 string collision_name\n\
00331 \n\
00332 \n\
00333 ================================================================================\n\
00334 MSG: sensor_msgs/PointCloud2\n\
00335 # This message holds a collection of N-dimensional points, which may\n\
00336 # contain additional information such as normals, intensity, etc. The\n\
00337 # point data is stored as a binary blob, its layout described by the\n\
00338 # contents of the \"fields\" array.\n\
00339 \n\
00340 # The point cloud data may be organized 2d (image-like) or 1d\n\
00341 # (unordered). Point clouds organized as 2d images may be produced by\n\
00342 # camera depth sensors such as stereo or time-of-flight.\n\
00343 \n\
00344 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00345 # points).\n\
00346 Header header\n\
00347 \n\
00348 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00349 # 1 and width is the length of the point cloud.\n\
00350 uint32 height\n\
00351 uint32 width\n\
00352 \n\
00353 # Describes the channels and their layout in the binary data blob.\n\
00354 PointField[] fields\n\
00355 \n\
00356 bool is_bigendian # Is this data bigendian?\n\
00357 uint32 point_step # Length of a point in bytes\n\
00358 uint32 row_step # Length of a row in bytes\n\
00359 uint8[] data # Actual point data, size is (row_step*height)\n\
00360 \n\
00361 bool is_dense # True if there are no invalid points\n\
00362 \n\
00363 ================================================================================\n\
00364 MSG: sensor_msgs/PointField\n\
00365 # This message holds the description of one point entry in the\n\
00366 # PointCloud2 message format.\n\
00367 uint8 INT8 = 1\n\
00368 uint8 UINT8 = 2\n\
00369 uint8 INT16 = 3\n\
00370 uint8 UINT16 = 4\n\
00371 uint8 INT32 = 5\n\
00372 uint8 UINT32 = 6\n\
00373 uint8 FLOAT32 = 7\n\
00374 uint8 FLOAT64 = 8\n\
00375 \n\
00376 string name # Name of field\n\
00377 uint32 offset # Offset from start of point struct\n\
00378 uint8 datatype # Datatype enumeration, see above\n\
00379 uint32 count # How many elements in the field\n\
00380 \n\
00381 ";
00382 }
00383
00384 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> &) { return value(); }
00385 };
00386
00387 template<class ContainerAllocator> struct HasHeader< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > : public TrueType {};
00388 template<class ContainerAllocator> struct HasHeader< const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> > : public TrueType {};
00389 }
00390 }
00391
00392 namespace ros
00393 {
00394 namespace serialization
00395 {
00396
00397 template<class ContainerAllocator> struct Serializer< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> >
00398 {
00399 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00400 {
00401 stream.next(m.header);
00402 stream.next(m.status);
00403 stream.next(m.result);
00404 }
00405
00406 ROS_DECLARE_ALLINONE_SERIALIZER;
00407 };
00408 }
00409 }
00410
00411 namespace ros
00412 {
00413 namespace message_operations
00414 {
00415
00416 template<class ContainerAllocator>
00417 struct Printer< ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> >
00418 {
00419 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_create_object_model::ModelObjectInHandActionResult_<ContainerAllocator> & v)
00420 {
00421 s << indent << "header: ";
00422 s << std::endl;
00423 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00424 s << indent << "status: ";
00425 s << std::endl;
00426 Printer< ::actionlib_msgs::GoalStatus_<ContainerAllocator> >::stream(s, indent + " ", v.status);
00427 s << indent << "result: ";
00428 s << std::endl;
00429 Printer< ::pr2_create_object_model::ModelObjectInHandResult_<ContainerAllocator> >::stream(s, indent + " ", v.result);
00430 }
00431 };
00432
00433
00434 }
00435 }
00436
00437 #endif // PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONRESULT_H
00438