00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_PLACEACTIONRESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_PLACEACTIONRESULT_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 "object_manipulation_msgs/PlaceResult.h"
00016
00017 namespace object_manipulation_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct PlaceActionResult_ : public ros::Message
00021 {
00022 typedef PlaceActionResult_<ContainerAllocator> Type;
00023
00024 PlaceActionResult_()
00025 : header()
00026 , status()
00027 , result()
00028 {
00029 }
00030
00031 PlaceActionResult_(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 ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> _result_type;
00045 ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> result;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "object_manipulation_msgs/PlaceActionResult"; }
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 "df8a4d17f57aaf41c7039f0808224d11"; }
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 "\n\
00064 Header header\n\
00065 actionlib_msgs/GoalStatus status\n\
00066 PlaceResult result\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: std_msgs/Header\n\
00070 # Standard metadata for higher-level stamped data types.\n\
00071 # This is generally used to communicate timestamped data \n\
00072 # in a particular coordinate frame.\n\
00073 # \n\
00074 # sequence ID: consecutively increasing ID \n\
00075 uint32 seq\n\
00076 #Two-integer timestamp that is expressed as:\n\
00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00079 # time-handling sugar is provided by the client library\n\
00080 time stamp\n\
00081 #Frame this data is associated with\n\
00082 # 0: no frame\n\
00083 # 1: global frame\n\
00084 string frame_id\n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: actionlib_msgs/GoalStatus\n\
00088 GoalID goal_id\n\
00089 uint8 status\n\
00090 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00091 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00092 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00093 # and has since completed its execution (Terminal State)\n\
00094 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00095 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00096 # to some failure (Terminal State)\n\
00097 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00098 # because the goal was unattainable or invalid (Terminal State)\n\
00099 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00100 # and has not yet completed execution\n\
00101 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00102 # but the action server has not yet confirmed that the goal is canceled\n\
00103 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00104 # and was successfully cancelled (Terminal State)\n\
00105 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00106 # sent over the wire by an action server\n\
00107 \n\
00108 #Allow for the user to associate a string with GoalStatus for debugging\n\
00109 string text\n\
00110 \n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: actionlib_msgs/GoalID\n\
00114 # The stamp should store the time at which this goal was requested.\n\
00115 # It is used by an action server when it tries to preempt all\n\
00116 # goals that were requested before a certain time\n\
00117 time stamp\n\
00118 \n\
00119 # The id provides a way to associate feedback and\n\
00120 # result message with specific goal requests. The id\n\
00121 # specified must be unique.\n\
00122 string id\n\
00123 \n\
00124 \n\
00125 ================================================================================\n\
00126 MSG: object_manipulation_msgs/PlaceResult\n\
00127 # The result of the pickup attempt\n\
00128 ManipulationResult manipulation_result\n\
00129 \n\
00130 # The successful place location, if any\n\
00131 geometry_msgs/PoseStamped place_location\n\
00132 \n\
00133 # the list of attempted locations, in the order in which they were attempted\n\
00134 # the successful one should be the last one in this list\n\
00135 geometry_msgs/PoseStamped[] attempted_locations\n\
00136 \n\
00137 # the outcomes of the attempted locations, in the same order as attempted_locations\n\
00138 PlaceLocationResult[] attempted_location_results\n\
00139 ================================================================================\n\
00140 MSG: object_manipulation_msgs/ManipulationResult\n\
00141 # Result codes for manipulation tasks\n\
00142 \n\
00143 # task completed as expected\n\
00144 # generally means you can proceed as planned\n\
00145 int32 SUCCESS = 1\n\
00146 \n\
00147 # task not possible (e.g. out of reach or obstacles in the way)\n\
00148 # generally means that the world was not disturbed, so you can try another task\n\
00149 int32 UNFEASIBLE = -1\n\
00150 \n\
00151 # task was thought possible, but failed due to unexpected events during execution\n\
00152 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00153 # your sensed world model before proceeding to another task\n\
00154 int32 FAILED = -2\n\
00155 \n\
00156 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00157 # generally requires human attention\n\
00158 int32 ERROR = -3\n\
00159 \n\
00160 # means that at some point during execution we ended up in a state that the collision-aware\n\
00161 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00162 # probably need a new collision map to move the arm out of the stuck position\n\
00163 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00164 \n\
00165 # specific to grasp actions\n\
00166 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00167 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00168 int32 LIFT_FAILED = -5\n\
00169 \n\
00170 # specific to place actions\n\
00171 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00172 # it is likely that the collision environment will see collisions between the hand and the object\n\
00173 int32 RETREAT_FAILED = -6\n\
00174 \n\
00175 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00176 int32 CANCELLED = -7\n\
00177 \n\
00178 # the actual value of this error code\n\
00179 int32 value\n\
00180 \n\
00181 ================================================================================\n\
00182 MSG: geometry_msgs/PoseStamped\n\
00183 # A Pose with reference coordinate frame and timestamp\n\
00184 Header header\n\
00185 Pose pose\n\
00186 \n\
00187 ================================================================================\n\
00188 MSG: geometry_msgs/Pose\n\
00189 # A representation of pose in free space, composed of postion and orientation. \n\
00190 Point position\n\
00191 Quaternion orientation\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Point\n\
00195 # This contains the position of a point in free space\n\
00196 float64 x\n\
00197 float64 y\n\
00198 float64 z\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: geometry_msgs/Quaternion\n\
00202 # This represents an orientation in free space in quaternion form.\n\
00203 \n\
00204 float64 x\n\
00205 float64 y\n\
00206 float64 z\n\
00207 float64 w\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: object_manipulation_msgs/PlaceLocationResult\n\
00211 int32 SUCCESS = 1\n\
00212 int32 PLACE_OUT_OF_REACH = 2\n\
00213 int32 PLACE_IN_COLLISION = 3\n\
00214 int32 PLACE_UNFEASIBLE = 4\n\
00215 int32 PREPLACE_OUT_OF_REACH = 5\n\
00216 int32 PREPLACE_IN_COLLISION = 6\n\
00217 int32 PREPLACE_UNFEASIBLE = 7\n\
00218 int32 RETREAT_OUT_OF_REACH = 8\n\
00219 int32 RETREAT_IN_COLLISION = 9\n\
00220 int32 RETREAT_UNFEASIBLE = 10\n\
00221 int32 MOVE_ARM_FAILED = 11\n\
00222 int32 PLACE_FAILED = 12\n\
00223 int32 RETREAT_FAILED = 13\n\
00224 int32 result_code\n\
00225 \n\
00226 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00227 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00228 # before proceeding\n\
00229 bool continuation_possible\n\
00230 \n\
00231 "; }
00232 public:
00233 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00234
00235 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00236
00237 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00238 {
00239 ros::serialization::OStream stream(write_ptr, 1000000000);
00240 ros::serialization::serialize(stream, header);
00241 ros::serialization::serialize(stream, status);
00242 ros::serialization::serialize(stream, result);
00243 return stream.getData();
00244 }
00245
00246 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00247 {
00248 ros::serialization::IStream stream(read_ptr, 1000000000);
00249 ros::serialization::deserialize(stream, header);
00250 ros::serialization::deserialize(stream, status);
00251 ros::serialization::deserialize(stream, result);
00252 return stream.getData();
00253 }
00254
00255 ROS_DEPRECATED virtual uint32_t serializationLength() const
00256 {
00257 uint32_t size = 0;
00258 size += ros::serialization::serializationLength(header);
00259 size += ros::serialization::serializationLength(status);
00260 size += ros::serialization::serializationLength(result);
00261 return size;
00262 }
00263
00264 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > Ptr;
00265 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> const> ConstPtr;
00266 };
00267 typedef ::object_manipulation_msgs::PlaceActionResult_<std::allocator<void> > PlaceActionResult;
00268
00269 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceActionResult> PlaceActionResultPtr;
00270 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceActionResult const> PlaceActionResultConstPtr;
00271
00272
00273 template<typename ContainerAllocator>
00274 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> & v)
00275 {
00276 ros::message_operations::Printer< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> >::stream(s, "", v);
00277 return s;}
00278
00279 }
00280
00281 namespace ros
00282 {
00283 namespace message_traits
00284 {
00285 template<class ContainerAllocator>
00286 struct MD5Sum< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > {
00287 static const char* value()
00288 {
00289 return "df8a4d17f57aaf41c7039f0808224d11";
00290 }
00291
00292 static const char* value(const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> &) { return value(); }
00293 static const uint64_t static_value1 = 0xdf8a4d17f57aaf41ULL;
00294 static const uint64_t static_value2 = 0xc7039f0808224d11ULL;
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct DataType< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "object_manipulation_msgs/PlaceActionResult";
00302 }
00303
00304 static const char* value(const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct Definition< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "\n\
00312 Header header\n\
00313 actionlib_msgs/GoalStatus status\n\
00314 PlaceResult result\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/GoalStatus\n\
00336 GoalID goal_id\n\
00337 uint8 status\n\
00338 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00339 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00340 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00341 # and has since completed its execution (Terminal State)\n\
00342 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00343 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00344 # to some failure (Terminal State)\n\
00345 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00346 # because the goal was unattainable or invalid (Terminal State)\n\
00347 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00348 # and has not yet completed execution\n\
00349 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00350 # but the action server has not yet confirmed that the goal is canceled\n\
00351 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00352 # and was successfully cancelled (Terminal State)\n\
00353 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00354 # sent over the wire by an action server\n\
00355 \n\
00356 #Allow for the user to associate a string with GoalStatus for debugging\n\
00357 string text\n\
00358 \n\
00359 \n\
00360 ================================================================================\n\
00361 MSG: actionlib_msgs/GoalID\n\
00362 # The stamp should store the time at which this goal was requested.\n\
00363 # It is used by an action server when it tries to preempt all\n\
00364 # goals that were requested before a certain time\n\
00365 time stamp\n\
00366 \n\
00367 # The id provides a way to associate feedback and\n\
00368 # result message with specific goal requests. The id\n\
00369 # specified must be unique.\n\
00370 string id\n\
00371 \n\
00372 \n\
00373 ================================================================================\n\
00374 MSG: object_manipulation_msgs/PlaceResult\n\
00375 # The result of the pickup attempt\n\
00376 ManipulationResult manipulation_result\n\
00377 \n\
00378 # The successful place location, if any\n\
00379 geometry_msgs/PoseStamped place_location\n\
00380 \n\
00381 # the list of attempted locations, in the order in which they were attempted\n\
00382 # the successful one should be the last one in this list\n\
00383 geometry_msgs/PoseStamped[] attempted_locations\n\
00384 \n\
00385 # the outcomes of the attempted locations, in the same order as attempted_locations\n\
00386 PlaceLocationResult[] attempted_location_results\n\
00387 ================================================================================\n\
00388 MSG: object_manipulation_msgs/ManipulationResult\n\
00389 # Result codes for manipulation tasks\n\
00390 \n\
00391 # task completed as expected\n\
00392 # generally means you can proceed as planned\n\
00393 int32 SUCCESS = 1\n\
00394 \n\
00395 # task not possible (e.g. out of reach or obstacles in the way)\n\
00396 # generally means that the world was not disturbed, so you can try another task\n\
00397 int32 UNFEASIBLE = -1\n\
00398 \n\
00399 # task was thought possible, but failed due to unexpected events during execution\n\
00400 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00401 # your sensed world model before proceeding to another task\n\
00402 int32 FAILED = -2\n\
00403 \n\
00404 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00405 # generally requires human attention\n\
00406 int32 ERROR = -3\n\
00407 \n\
00408 # means that at some point during execution we ended up in a state that the collision-aware\n\
00409 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00410 # probably need a new collision map to move the arm out of the stuck position\n\
00411 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00412 \n\
00413 # specific to grasp actions\n\
00414 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00415 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00416 int32 LIFT_FAILED = -5\n\
00417 \n\
00418 # specific to place actions\n\
00419 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00420 # it is likely that the collision environment will see collisions between the hand and the object\n\
00421 int32 RETREAT_FAILED = -6\n\
00422 \n\
00423 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00424 int32 CANCELLED = -7\n\
00425 \n\
00426 # the actual value of this error code\n\
00427 int32 value\n\
00428 \n\
00429 ================================================================================\n\
00430 MSG: geometry_msgs/PoseStamped\n\
00431 # A Pose with reference coordinate frame and timestamp\n\
00432 Header header\n\
00433 Pose pose\n\
00434 \n\
00435 ================================================================================\n\
00436 MSG: geometry_msgs/Pose\n\
00437 # A representation of pose in free space, composed of postion and orientation. \n\
00438 Point position\n\
00439 Quaternion orientation\n\
00440 \n\
00441 ================================================================================\n\
00442 MSG: geometry_msgs/Point\n\
00443 # This contains the position of a point in free space\n\
00444 float64 x\n\
00445 float64 y\n\
00446 float64 z\n\
00447 \n\
00448 ================================================================================\n\
00449 MSG: geometry_msgs/Quaternion\n\
00450 # This represents an orientation in free space in quaternion form.\n\
00451 \n\
00452 float64 x\n\
00453 float64 y\n\
00454 float64 z\n\
00455 float64 w\n\
00456 \n\
00457 ================================================================================\n\
00458 MSG: object_manipulation_msgs/PlaceLocationResult\n\
00459 int32 SUCCESS = 1\n\
00460 int32 PLACE_OUT_OF_REACH = 2\n\
00461 int32 PLACE_IN_COLLISION = 3\n\
00462 int32 PLACE_UNFEASIBLE = 4\n\
00463 int32 PREPLACE_OUT_OF_REACH = 5\n\
00464 int32 PREPLACE_IN_COLLISION = 6\n\
00465 int32 PREPLACE_UNFEASIBLE = 7\n\
00466 int32 RETREAT_OUT_OF_REACH = 8\n\
00467 int32 RETREAT_IN_COLLISION = 9\n\
00468 int32 RETREAT_UNFEASIBLE = 10\n\
00469 int32 MOVE_ARM_FAILED = 11\n\
00470 int32 PLACE_FAILED = 12\n\
00471 int32 RETREAT_FAILED = 13\n\
00472 int32 result_code\n\
00473 \n\
00474 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00475 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00476 # before proceeding\n\
00477 bool continuation_possible\n\
00478 \n\
00479 ";
00480 }
00481
00482 static const char* value(const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> &) { return value(); }
00483 };
00484
00485 template<class ContainerAllocator> struct HasHeader< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > : public TrueType {};
00486 template<class ContainerAllocator> struct HasHeader< const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> > : public TrueType {};
00487 }
00488 }
00489
00490 namespace ros
00491 {
00492 namespace serialization
00493 {
00494
00495 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> >
00496 {
00497 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00498 {
00499 stream.next(m.header);
00500 stream.next(m.status);
00501 stream.next(m.result);
00502 }
00503
00504 ROS_DECLARE_ALLINONE_SERIALIZER;
00505 };
00506 }
00507 }
00508
00509 namespace ros
00510 {
00511 namespace message_operations
00512 {
00513
00514 template<class ContainerAllocator>
00515 struct Printer< ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> >
00516 {
00517 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::PlaceActionResult_<ContainerAllocator> & v)
00518 {
00519 s << indent << "header: ";
00520 s << std::endl;
00521 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00522 s << indent << "status: ";
00523 s << std::endl;
00524 Printer< ::actionlib_msgs::GoalStatus_<ContainerAllocator> >::stream(s, indent + " ", v.status);
00525 s << indent << "result: ";
00526 s << std::endl;
00527 Printer< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> >::stream(s, indent + " ", v.result);
00528 }
00529 };
00530
00531
00532 }
00533 }
00534
00535 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_PLACEACTIONRESULT_H
00536