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