00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_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
00014 namespace object_manipulation_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct GraspResult_ : public ros::Message
00018 {
00019 typedef GraspResult_<ContainerAllocator> Type;
00020
00021 GraspResult_()
00022 : result_code(0)
00023 , continuation_possible(false)
00024 {
00025 }
00026
00027 GraspResult_(const ContainerAllocator& _alloc)
00028 : result_code(0)
00029 , continuation_possible(false)
00030 {
00031 }
00032
00033 typedef int32_t _result_code_type;
00034 int32_t result_code;
00035
00036 typedef uint8_t _continuation_possible_type;
00037 uint8_t continuation_possible;
00038
00039 enum { SUCCESS = 1 };
00040 enum { GRASP_OUT_OF_REACH = 2 };
00041 enum { GRASP_IN_COLLISION = 3 };
00042 enum { GRASP_UNFEASIBLE = 4 };
00043 enum { PREGRASP_OUT_OF_REACH = 5 };
00044 enum { PREGRASP_IN_COLLISION = 6 };
00045 enum { PREGRASP_UNFEASIBLE = 7 };
00046 enum { LIFT_OUT_OF_REACH = 8 };
00047 enum { LIFT_IN_COLLISION = 9 };
00048 enum { LIFT_UNFEASIBLE = 10 };
00049 enum { MOVE_ARM_FAILED = 11 };
00050 enum { GRASP_FAILED = 12 };
00051 enum { LIFT_FAILED = 13 };
00052 enum { RETREAT_FAILED = 14 };
00053
00054 private:
00055 static const char* __s_getDataType_() { return "object_manipulation_msgs/GraspResult"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00058
00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00060
00061 private:
00062 static const char* __s_getMD5Sum_() { return "c8a909da895cdddc0630aafd59848191"; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00065
00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00067
00068 private:
00069 static const char* __s_getMessageDefinition_() { return "int32 SUCCESS = 1\n\
00070 int32 GRASP_OUT_OF_REACH = 2\n\
00071 int32 GRASP_IN_COLLISION = 3\n\
00072 int32 GRASP_UNFEASIBLE = 4\n\
00073 int32 PREGRASP_OUT_OF_REACH = 5\n\
00074 int32 PREGRASP_IN_COLLISION = 6\n\
00075 int32 PREGRASP_UNFEASIBLE = 7\n\
00076 int32 LIFT_OUT_OF_REACH = 8\n\
00077 int32 LIFT_IN_COLLISION = 9\n\
00078 int32 LIFT_UNFEASIBLE = 10\n\
00079 int32 MOVE_ARM_FAILED = 11\n\
00080 int32 GRASP_FAILED = 12\n\
00081 int32 LIFT_FAILED = 13\n\
00082 int32 RETREAT_FAILED = 14\n\
00083 int32 result_code\n\
00084 \n\
00085 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00086 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00087 # before proceeding\n\
00088 bool continuation_possible\n\
00089 \n\
00090 "; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00097 {
00098 ros::serialization::OStream stream(write_ptr, 1000000000);
00099 ros::serialization::serialize(stream, result_code);
00100 ros::serialization::serialize(stream, continuation_possible);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00105 {
00106 ros::serialization::IStream stream(read_ptr, 1000000000);
00107 ros::serialization::deserialize(stream, result_code);
00108 ros::serialization::deserialize(stream, continuation_possible);
00109 return stream.getData();
00110 }
00111
00112 ROS_DEPRECATED virtual uint32_t serializationLength() const
00113 {
00114 uint32_t size = 0;
00115 size += ros::serialization::serializationLength(result_code);
00116 size += ros::serialization::serializationLength(continuation_possible);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> const> ConstPtr;
00122 };
00123 typedef ::object_manipulation_msgs::GraspResult_<std::allocator<void> > GraspResult;
00124
00125 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult> GraspResultPtr;
00126 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspResult const> GraspResultConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspResult_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator>
00142 struct MD5Sum< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "c8a909da895cdddc0630aafd59848191";
00146 }
00147
00148 static const char* value(const ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); }
00149 static const uint64_t static_value1 = 0xc8a909da895cdddcULL;
00150 static const uint64_t static_value2 = 0x0630aafd59848191ULL;
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct DataType< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "object_manipulation_msgs/GraspResult";
00158 }
00159
00160 static const char* value(const ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct Definition< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "int32 SUCCESS = 1\n\
00168 int32 GRASP_OUT_OF_REACH = 2\n\
00169 int32 GRASP_IN_COLLISION = 3\n\
00170 int32 GRASP_UNFEASIBLE = 4\n\
00171 int32 PREGRASP_OUT_OF_REACH = 5\n\
00172 int32 PREGRASP_IN_COLLISION = 6\n\
00173 int32 PREGRASP_UNFEASIBLE = 7\n\
00174 int32 LIFT_OUT_OF_REACH = 8\n\
00175 int32 LIFT_IN_COLLISION = 9\n\
00176 int32 LIFT_UNFEASIBLE = 10\n\
00177 int32 MOVE_ARM_FAILED = 11\n\
00178 int32 GRASP_FAILED = 12\n\
00179 int32 LIFT_FAILED = 13\n\
00180 int32 RETREAT_FAILED = 14\n\
00181 int32 result_code\n\
00182 \n\
00183 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00184 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00185 # before proceeding\n\
00186 bool continuation_possible\n\
00187 \n\
00188 ";
00189 }
00190
00191 static const char* value(const ::object_manipulation_msgs::GraspResult_<ContainerAllocator> &) { return value(); }
00192 };
00193
00194 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> > : public TrueType {};
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace serialization
00201 {
00202
00203 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >
00204 {
00205 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00206 {
00207 stream.next(m.result_code);
00208 stream.next(m.continuation_possible);
00209 }
00210
00211 ROS_DECLARE_ALLINONE_SERIALIZER;
00212 };
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace message_operations
00219 {
00220
00221 template<class ContainerAllocator>
00222 struct Printer< ::object_manipulation_msgs::GraspResult_<ContainerAllocator> >
00223 {
00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspResult_<ContainerAllocator> & v)
00225 {
00226 s << indent << "result_code: ";
00227 Printer<int32_t>::stream(s, indent + " ", v.result_code);
00228 s << indent << "continuation_possible: ";
00229 Printer<uint8_t>::stream(s, indent + " ", v.continuation_possible);
00230 }
00231 };
00232
00233
00234 }
00235 }
00236
00237 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPRESULT_H
00238