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