$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/ManipulationResult.msg */ 00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_MANIPULATIONRESULT_H 00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_MANIPULATIONRESULT_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 00018 namespace object_manipulation_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct ManipulationResult_ { 00022 typedef ManipulationResult_<ContainerAllocator> Type; 00023 00024 ManipulationResult_() 00025 : value(0) 00026 { 00027 } 00028 00029 ManipulationResult_(const ContainerAllocator& _alloc) 00030 : value(0) 00031 { 00032 } 00033 00034 typedef int32_t _value_type; 00035 int32_t value; 00036 00037 enum { SUCCESS = 1 }; 00038 enum { UNFEASIBLE = -1 }; 00039 enum { FAILED = -2 }; 00040 enum { ERROR = -3 }; 00041 enum { ARM_MOVEMENT_PREVENTED = -4 }; 00042 enum { LIFT_FAILED = -5 }; 00043 enum { RETREAT_FAILED = -6 }; 00044 enum { CANCELLED = -7 }; 00045 00046 private: 00047 static const char* __s_getDataType_() { return "object_manipulation_msgs/ManipulationResult"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00050 00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00052 00053 private: 00054 static const char* __s_getMD5Sum_() { return "85f8d010e045fcb335637fc8fc59184b"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "# 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, value); 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, value); 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(value); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct ManipulationResult 00132 typedef ::object_manipulation_msgs::ManipulationResult_<std::allocator<void> > ManipulationResult; 00133 00134 typedef boost::shared_ptr< ::object_manipulation_msgs::ManipulationResult> ManipulationResultPtr; 00135 typedef boost::shared_ptr< ::object_manipulation_msgs::ManipulationResult const> ManipulationResultConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace object_manipulation_msgs 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "85f8d010e045fcb335637fc8fc59184b"; 00157 } 00158 00159 static const char* value(const ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0x85f8d010e045fcb3ULL; 00161 static const uint64_t static_value2 = 0x35637fc8fc59184bULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "object_manipulation_msgs/ManipulationResult"; 00169 } 00170 00171 static const char* value(const ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "# Result codes for manipulation tasks\n\ 00179 \n\ 00180 # task completed as expected\n\ 00181 # generally means you can proceed as planned\n\ 00182 int32 SUCCESS = 1\n\ 00183 \n\ 00184 # task not possible (e.g. out of reach or obstacles in the way)\n\ 00185 # generally means that the world was not disturbed, so you can try another task\n\ 00186 int32 UNFEASIBLE = -1\n\ 00187 \n\ 00188 # task was thought possible, but failed due to unexpected events during execution\n\ 00189 # it is likely that the world was disturbed, so you are encouraged to refresh\n\ 00190 # your sensed world model before proceeding to another task\n\ 00191 int32 FAILED = -2\n\ 00192 \n\ 00193 # a lower level error prevented task completion (e.g. joint controller not responding)\n\ 00194 # generally requires human attention\n\ 00195 int32 ERROR = -3\n\ 00196 \n\ 00197 # means that at some point during execution we ended up in a state that the collision-aware\n\ 00198 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\ 00199 # probably need a new collision map to move the arm out of the stuck position\n\ 00200 int32 ARM_MOVEMENT_PREVENTED = -4\n\ 00201 \n\ 00202 # specific to grasp actions\n\ 00203 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\ 00204 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\ 00205 int32 LIFT_FAILED = -5\n\ 00206 \n\ 00207 # specific to place actions\n\ 00208 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\ 00209 # it is likely that the collision environment will see collisions between the hand and the object\n\ 00210 int32 RETREAT_FAILED = -6\n\ 00211 \n\ 00212 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\ 00213 int32 CANCELLED = -7\n\ 00214 \n\ 00215 # the actual value of this error code\n\ 00216 int32 value\n\ 00217 \n\ 00218 "; 00219 } 00220 00221 static const char* value(const ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> &) { return value(); } 00222 }; 00223 00224 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > : public TrueType {}; 00225 } // namespace message_traits 00226 } // namespace ros 00227 00228 namespace ros 00229 { 00230 namespace serialization 00231 { 00232 00233 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > 00234 { 00235 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00236 { 00237 stream.next(m.value); 00238 } 00239 00240 ROS_DECLARE_ALLINONE_SERIALIZER; 00241 }; // struct ManipulationResult_ 00242 } // namespace serialization 00243 } // namespace ros 00244 00245 namespace ros 00246 { 00247 namespace message_operations 00248 { 00249 00250 template<class ContainerAllocator> 00251 struct Printer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> > 00252 { 00253 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> & v) 00254 { 00255 s << indent << "value: "; 00256 Printer<int32_t>::stream(s, indent + " ", v.value); 00257 } 00258 }; 00259 00260 00261 } // namespace message_operations 00262 } // namespace ros 00263 00264 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_MANIPULATIONRESULT_H 00265