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