$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/applications/pr2_create_object_model/msg/ModelObjectInHandFeedback.msg */ 00002 #ifndef PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDFEEDBACK_H 00003 #define PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDFEEDBACK_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 pr2_create_object_model 00019 { 00020 template <class ContainerAllocator> 00021 struct ModelObjectInHandFeedback_ { 00022 typedef ModelObjectInHandFeedback_<ContainerAllocator> Type; 00023 00024 ModelObjectInHandFeedback_() 00025 : phase(0) 00026 , rotate_ind(0) 00027 { 00028 } 00029 00030 ModelObjectInHandFeedback_(const ContainerAllocator& _alloc) 00031 : phase(0) 00032 , rotate_ind(0) 00033 { 00034 } 00035 00036 typedef int32_t _phase_type; 00037 int32_t phase; 00038 00039 typedef int32_t _rotate_ind_type; 00040 int32_t rotate_ind; 00041 00042 enum { BEFORE_MOVE = 0 }; 00043 enum { CLEAR_MOVE = 1 }; 00044 enum { MOVE_TO_ROTATE_POSE = 2 }; 00045 enum { ROTATING = 3 }; 00046 enum { DONE = 4 }; 00047 00048 private: 00049 static const char* __s_getDataType_() { return "pr2_create_object_model/ModelObjectInHandFeedback"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "cfc629925fff8facecf764939ad9a751"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00064 \n\ 00065 # which phase the process is in\n\ 00066 int32 phase\n\ 00067 int32 BEFORE_MOVE=0\n\ 00068 int32 CLEAR_MOVE=1\n\ 00069 int32 MOVE_TO_ROTATE_POSE=2\n\ 00070 int32 ROTATING=3\n\ 00071 int32 DONE=4\n\ 00072 \n\ 00073 # how many rotate-poses have we gone to/are we in now\n\ 00074 int32 rotate_ind\n\ 00075 \n\ 00076 \n\ 00077 "; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00084 { 00085 ros::serialization::OStream stream(write_ptr, 1000000000); 00086 ros::serialization::serialize(stream, phase); 00087 ros::serialization::serialize(stream, rotate_ind); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, phase); 00095 ros::serialization::deserialize(stream, rotate_ind); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(phase); 00103 size += ros::serialization::serializationLength(rotate_ind); 00104 return size; 00105 } 00106 00107 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > Ptr; 00108 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> const> ConstPtr; 00109 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00110 }; // struct ModelObjectInHandFeedback 00111 typedef ::pr2_create_object_model::ModelObjectInHandFeedback_<std::allocator<void> > ModelObjectInHandFeedback; 00112 00113 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandFeedback> ModelObjectInHandFeedbackPtr; 00114 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandFeedback const> ModelObjectInHandFeedbackConstPtr; 00115 00116 00117 template<typename ContainerAllocator> 00118 std::ostream& operator<<(std::ostream& s, const ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> & v) 00119 { 00120 ros::message_operations::Printer< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> >::stream(s, "", v); 00121 return s;} 00122 00123 } // namespace pr2_create_object_model 00124 00125 namespace ros 00126 { 00127 namespace message_traits 00128 { 00129 template<class ContainerAllocator> struct IsMessage< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > : public TrueType {}; 00130 template<class ContainerAllocator> struct IsMessage< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> const> : public TrueType {}; 00131 template<class ContainerAllocator> 00132 struct MD5Sum< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "cfc629925fff8facecf764939ad9a751"; 00136 } 00137 00138 static const char* value(const ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> &) { return value(); } 00139 static const uint64_t static_value1 = 0xcfc629925fff8facULL; 00140 static const uint64_t static_value2 = 0xecf764939ad9a751ULL; 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct DataType< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "pr2_create_object_model/ModelObjectInHandFeedback"; 00148 } 00149 00150 static const char* value(const ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> &) { return value(); } 00151 }; 00152 00153 template<class ContainerAllocator> 00154 struct Definition< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00158 \n\ 00159 # which phase the process is in\n\ 00160 int32 phase\n\ 00161 int32 BEFORE_MOVE=0\n\ 00162 int32 CLEAR_MOVE=1\n\ 00163 int32 MOVE_TO_ROTATE_POSE=2\n\ 00164 int32 ROTATING=3\n\ 00165 int32 DONE=4\n\ 00166 \n\ 00167 # how many rotate-poses have we gone to/are we in now\n\ 00168 int32 rotate_ind\n\ 00169 \n\ 00170 \n\ 00171 "; 00172 } 00173 00174 static const char* value(const ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 template<class ContainerAllocator> struct IsFixedSize< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > : public TrueType {}; 00178 } // namespace message_traits 00179 } // namespace ros 00180 00181 namespace ros 00182 { 00183 namespace serialization 00184 { 00185 00186 template<class ContainerAllocator> struct Serializer< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > 00187 { 00188 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00189 { 00190 stream.next(m.phase); 00191 stream.next(m.rotate_ind); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct ModelObjectInHandFeedback_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_create_object_model::ModelObjectInHandFeedback_<ContainerAllocator> & v) 00208 { 00209 s << indent << "phase: "; 00210 Printer<int32_t>::stream(s, indent + " ", v.phase); 00211 s << indent << "rotate_ind: "; 00212 Printer<int32_t>::stream(s, indent + " ", v.rotate_ind); 00213 } 00214 }; 00215 00216 00217 } // namespace message_operations 00218 } // namespace ros 00219 00220 #endif // PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDFEEDBACK_H 00221