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