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