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