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