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