Go to the documentation of this file.00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONRESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONRESULT_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 "object_manipulation_msgs/ManipulationResult.h"
00018
00019 namespace object_manipulation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GraspHandPostureExecutionResult_ {
00023 typedef GraspHandPostureExecutionResult_<ContainerAllocator> Type;
00024
00025 GraspHandPostureExecutionResult_()
00026 : result()
00027 {
00028 }
00029
00030 GraspHandPostureExecutionResult_(const ContainerAllocator& _alloc)
00031 : result(_alloc)
00032 {
00033 }
00034
00035 typedef ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> _result_type;
00036 ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> result;
00037
00038
00039 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::object_manipulation_msgs::GraspHandPostureExecutionResult_<std::allocator<void> > GraspHandPostureExecutionResult;
00044
00045 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult> GraspHandPostureExecutionResultPtr;
00046 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult const> GraspHandPostureExecutionResultConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "f81d941ac01806ebaf0578f78def0828";
00068 }
00069
00070 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0xf81d941ac01806ebULL;
00072 static const uint64_t static_value2 = 0xaf0578f78def0828ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "object_manipulation_msgs/GraspHandPostureExecutionResult";
00080 }
00081
00082 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 # the result of the action\n\
00091 ManipulationResult result\n\
00092 \n\
00093 \n\
00094 ================================================================================\n\
00095 MSG: object_manipulation_msgs/ManipulationResult\n\
00096 # Result codes for manipulation tasks\n\
00097 \n\
00098 # task completed as expected\n\
00099 # generally means you can proceed as planned\n\
00100 int32 SUCCESS = 1\n\
00101 \n\
00102 # task not possible (e.g. out of reach or obstacles in the way)\n\
00103 # generally means that the world was not disturbed, so you can try another task\n\
00104 int32 UNFEASIBLE = -1\n\
00105 \n\
00106 # task was thought possible, but failed due to unexpected events during execution\n\
00107 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00108 # your sensed world model before proceeding to another task\n\
00109 int32 FAILED = -2\n\
00110 \n\
00111 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00112 # generally requires human attention\n\
00113 int32 ERROR = -3\n\
00114 \n\
00115 # means that at some point during execution we ended up in a state that the collision-aware\n\
00116 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00117 # probably need a new collision map to move the arm out of the stuck position\n\
00118 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00119 \n\
00120 # specific to grasp actions\n\
00121 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00122 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00123 int32 LIFT_FAILED = -5\n\
00124 \n\
00125 # specific to place actions\n\
00126 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00127 # it is likely that the collision environment will see collisions between the hand and the object\n\
00128 int32 RETREAT_FAILED = -6\n\
00129 \n\
00130 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00131 int32 CANCELLED = -7\n\
00132 \n\
00133 # the actual value of this error code\n\
00134 int32 value\n\
00135 \n\
00136 ";
00137 }
00138
00139 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > : public TrueType {};
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace serialization
00149 {
00150
00151 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >
00152 {
00153 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00154 {
00155 stream.next(m.result);
00156 }
00157
00158 ROS_DECLARE_ALLINONE_SERIALIZER;
00159 };
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace message_operations
00166 {
00167
00168 template<class ContainerAllocator>
00169 struct Printer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >
00170 {
00171 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> & v)
00172 {
00173 s << indent << "result: ";
00174 s << std::endl;
00175 Printer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> >::stream(s, indent + " ", v.result);
00176 }
00177 };
00178
00179
00180 }
00181 }
00182
00183 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONRESULT_H
00184