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 private:
00040 static const char* __s_getDataType_() { return "object_manipulation_msgs/GraspHandPostureExecutionResult"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "f81d941ac01806ebaf0578f78def0828"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00055 # the result of the action\n\
00056 ManipulationResult result\n\
00057 \n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: object_manipulation_msgs/ManipulationResult\n\
00061 # Result codes for manipulation tasks\n\
00062 \n\
00063 # task completed as expected\n\
00064 # generally means you can proceed as planned\n\
00065 int32 SUCCESS = 1\n\
00066 \n\
00067 # task not possible (e.g. out of reach or obstacles in the way)\n\
00068 # generally means that the world was not disturbed, so you can try another task\n\
00069 int32 UNFEASIBLE = -1\n\
00070 \n\
00071 # task was thought possible, but failed due to unexpected events during execution\n\
00072 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00073 # your sensed world model before proceeding to another task\n\
00074 int32 FAILED = -2\n\
00075 \n\
00076 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00077 # generally requires human attention\n\
00078 int32 ERROR = -3\n\
00079 \n\
00080 # means that at some point during execution we ended up in a state that the collision-aware\n\
00081 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00082 # probably need a new collision map to move the arm out of the stuck position\n\
00083 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00084 \n\
00085 # specific to grasp actions\n\
00086 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00087 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00088 int32 LIFT_FAILED = -5\n\
00089 \n\
00090 # specific to place actions\n\
00091 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00092 # it is likely that the collision environment will see collisions between the hand and the object\n\
00093 int32 RETREAT_FAILED = -6\n\
00094 \n\
00095 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00096 int32 CANCELLED = -7\n\
00097 \n\
00098 # the actual value of this error code\n\
00099 int32 value\n\
00100 \n\
00101 "; }
00102 public:
00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00104
00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00106
00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00108 {
00109 ros::serialization::OStream stream(write_ptr, 1000000000);
00110 ros::serialization::serialize(stream, result);
00111 return stream.getData();
00112 }
00113
00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00115 {
00116 ros::serialization::IStream stream(read_ptr, 1000000000);
00117 ros::serialization::deserialize(stream, result);
00118 return stream.getData();
00119 }
00120
00121 ROS_DEPRECATED virtual uint32_t serializationLength() const
00122 {
00123 uint32_t size = 0;
00124 size += ros::serialization::serializationLength(result);
00125 return size;
00126 }
00127
00128 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > Ptr;
00129 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> const> ConstPtr;
00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00131 };
00132 typedef ::object_manipulation_msgs::GraspHandPostureExecutionResult_<std::allocator<void> > GraspHandPostureExecutionResult;
00133
00134 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult> GraspHandPostureExecutionResultPtr;
00135 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionResult const> GraspHandPostureExecutionResultConstPtr;
00136
00137
00138 template<typename ContainerAllocator>
00139 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> & v)
00140 {
00141 ros::message_operations::Printer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >::stream(s, "", v);
00142 return s;}
00143
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_traits
00149 {
00150 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > : public TrueType {};
00151 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> const> : public TrueType {};
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "f81d941ac01806ebaf0578f78def0828";
00157 }
00158
00159 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00160 static const uint64_t static_value1 = 0xf81d941ac01806ebULL;
00161 static const uint64_t static_value2 = 0xaf0578f78def0828ULL;
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct DataType< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "object_manipulation_msgs/GraspHandPostureExecutionResult";
00169 }
00170
00171 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct Definition< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00179 # the result of the action\n\
00180 ManipulationResult result\n\
00181 \n\
00182 \n\
00183 ================================================================================\n\
00184 MSG: object_manipulation_msgs/ManipulationResult\n\
00185 # Result codes for manipulation tasks\n\
00186 \n\
00187 # task completed as expected\n\
00188 # generally means you can proceed as planned\n\
00189 int32 SUCCESS = 1\n\
00190 \n\
00191 # task not possible (e.g. out of reach or obstacles in the way)\n\
00192 # generally means that the world was not disturbed, so you can try another task\n\
00193 int32 UNFEASIBLE = -1\n\
00194 \n\
00195 # task was thought possible, but failed due to unexpected events during execution\n\
00196 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00197 # your sensed world model before proceeding to another task\n\
00198 int32 FAILED = -2\n\
00199 \n\
00200 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00201 # generally requires human attention\n\
00202 int32 ERROR = -3\n\
00203 \n\
00204 # means that at some point during execution we ended up in a state that the collision-aware\n\
00205 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00206 # probably need a new collision map to move the arm out of the stuck position\n\
00207 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00208 \n\
00209 # specific to grasp actions\n\
00210 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00211 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00212 int32 LIFT_FAILED = -5\n\
00213 \n\
00214 # specific to place actions\n\
00215 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00216 # it is likely that the collision environment will see collisions between the hand and the object\n\
00217 int32 RETREAT_FAILED = -6\n\
00218 \n\
00219 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00220 int32 CANCELLED = -7\n\
00221 \n\
00222 # the actual value of this error code\n\
00223 int32 value\n\
00224 \n\
00225 ";
00226 }
00227
00228 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> > : public TrueType {};
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239
00240 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >
00241 {
00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243 {
00244 stream.next(m.result);
00245 }
00246
00247 ROS_DECLARE_ALLINONE_SERIALIZER;
00248 };
00249 }
00250 }
00251
00252 namespace ros
00253 {
00254 namespace message_operations
00255 {
00256
00257 template<class ContainerAllocator>
00258 struct Printer< ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> >
00259 {
00260 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspHandPostureExecutionResult_<ContainerAllocator> & v)
00261 {
00262 s << indent << "result: ";
00263 s << std::endl;
00264 Printer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> >::stream(s, indent + " ", v.result);
00265 }
00266 };
00267
00268
00269 }
00270 }
00271
00272 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONRESULT_H
00273