00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_REACTIVEGRASPFEEDBACK_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_REACTIVEGRASPFEEDBACK_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/ManipulationPhase.h"
00018
00019 namespace object_manipulation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ReactiveGraspFeedback_ {
00023 typedef ReactiveGraspFeedback_<ContainerAllocator> Type;
00024
00025 ReactiveGraspFeedback_()
00026 : manipulation_phase()
00027 {
00028 }
00029
00030 ReactiveGraspFeedback_(const ContainerAllocator& _alloc)
00031 : manipulation_phase(_alloc)
00032 {
00033 }
00034
00035 typedef ::object_manipulation_msgs::ManipulationPhase_<ContainerAllocator> _manipulation_phase_type;
00036 ::object_manipulation_msgs::ManipulationPhase_<ContainerAllocator> manipulation_phase;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "object_manipulation_msgs/ReactiveGraspFeedback"; }
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 "f5854fd8810580aa0bc24d4d76384836"; }
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 # which phase the grasp is in\n\
00057 \n\
00058 ManipulationPhase manipulation_phase\n\
00059 \n\
00060 \n\
00061 \n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: object_manipulation_msgs/ManipulationPhase\n\
00065 int32 CHECKING_FEASIBILITY = 0\n\
00066 int32 MOVING_TO_PREGRASP = 1\n\
00067 int32 MOVING_TO_GRASP = 2\n\
00068 int32 CLOSING = 3 \n\
00069 int32 ADJUSTING_GRASP = 4\n\
00070 int32 LIFTING = 5\n\
00071 int32 MOVING_WITH_OBJECT = 6\n\
00072 int32 MOVING_TO_PLACE = 7\n\
00073 int32 PLACING = 8\n\
00074 int32 OPENING = 9\n\
00075 int32 RETREATING = 10\n\
00076 int32 MOVING_WITHOUT_OBJECT = 11\n\
00077 int32 SHAKING = 12\n\
00078 int32 SUCCEEDED = 13\n\
00079 int32 FAILED = 14\n\
00080 int32 ABORTED = 15\n\
00081 int32 HOLDING_OBJECT = 16\n\
00082 \n\
00083 int32 phase\n\
00084 "; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00091 {
00092 ros::serialization::OStream stream(write_ptr, 1000000000);
00093 ros::serialization::serialize(stream, manipulation_phase);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00098 {
00099 ros::serialization::IStream stream(read_ptr, 1000000000);
00100 ros::serialization::deserialize(stream, manipulation_phase);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint32_t serializationLength() const
00105 {
00106 uint32_t size = 0;
00107 size += ros::serialization::serializationLength(manipulation_phase);
00108 return size;
00109 }
00110
00111 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > Ptr;
00112 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> const> ConstPtr;
00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00114 };
00115 typedef ::object_manipulation_msgs::ReactiveGraspFeedback_<std::allocator<void> > ReactiveGraspFeedback;
00116
00117 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspFeedback> ReactiveGraspFeedbackPtr;
00118 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspFeedback const> ReactiveGraspFeedbackConstPtr;
00119
00120
00121 template<typename ContainerAllocator>
00122 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> & v)
00123 {
00124 ros::message_operations::Printer< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> >::stream(s, "", v);
00125 return s;}
00126
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_traits
00132 {
00133 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > : public TrueType {};
00134 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> const> : public TrueType {};
00135 template<class ContainerAllocator>
00136 struct MD5Sum< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "f5854fd8810580aa0bc24d4d76384836";
00140 }
00141
00142 static const char* value(const ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> &) { return value(); }
00143 static const uint64_t static_value1 = 0xf5854fd8810580aaULL;
00144 static const uint64_t static_value2 = 0x0bc24d4d76384836ULL;
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct DataType< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "object_manipulation_msgs/ReactiveGraspFeedback";
00152 }
00153
00154 static const char* value(const ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator>
00158 struct Definition< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > {
00159 static const char* value()
00160 {
00161 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00162 \n\
00163 # which phase the grasp is in\n\
00164 \n\
00165 ManipulationPhase manipulation_phase\n\
00166 \n\
00167 \n\
00168 \n\
00169 \n\
00170 ================================================================================\n\
00171 MSG: object_manipulation_msgs/ManipulationPhase\n\
00172 int32 CHECKING_FEASIBILITY = 0\n\
00173 int32 MOVING_TO_PREGRASP = 1\n\
00174 int32 MOVING_TO_GRASP = 2\n\
00175 int32 CLOSING = 3 \n\
00176 int32 ADJUSTING_GRASP = 4\n\
00177 int32 LIFTING = 5\n\
00178 int32 MOVING_WITH_OBJECT = 6\n\
00179 int32 MOVING_TO_PLACE = 7\n\
00180 int32 PLACING = 8\n\
00181 int32 OPENING = 9\n\
00182 int32 RETREATING = 10\n\
00183 int32 MOVING_WITHOUT_OBJECT = 11\n\
00184 int32 SHAKING = 12\n\
00185 int32 SUCCEEDED = 13\n\
00186 int32 FAILED = 14\n\
00187 int32 ABORTED = 15\n\
00188 int32 HOLDING_OBJECT = 16\n\
00189 \n\
00190 int32 phase\n\
00191 ";
00192 }
00193
00194 static const char* value(const ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> > : public TrueType {};
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace serialization
00204 {
00205
00206 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> >
00207 {
00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00209 {
00210 stream.next(m.manipulation_phase);
00211 }
00212
00213 ROS_DECLARE_ALLINONE_SERIALIZER;
00214 };
00215 }
00216 }
00217
00218 namespace ros
00219 {
00220 namespace message_operations
00221 {
00222
00223 template<class ContainerAllocator>
00224 struct Printer< ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> >
00225 {
00226 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::ReactiveGraspFeedback_<ContainerAllocator> & v)
00227 {
00228 s << indent << "manipulation_phase: ";
00229 s << std::endl;
00230 Printer< ::object_manipulation_msgs::ManipulationPhase_<ContainerAllocator> >::stream(s, indent + " ", v.manipulation_phase);
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_REACTIVEGRASPFEEDBACK_H
00239