$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/object_manipulation_msgs/msg/PlaceLocationResult.msg */ 00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_H 00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_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 PlaceLocationResult_ { 00022 typedef PlaceLocationResult_<ContainerAllocator> Type; 00023 00024 PlaceLocationResult_() 00025 : result_code(0) 00026 , continuation_possible(false) 00027 { 00028 } 00029 00030 PlaceLocationResult_(const ContainerAllocator& _alloc) 00031 : result_code(0) 00032 , continuation_possible(false) 00033 { 00034 } 00035 00036 typedef int32_t _result_code_type; 00037 int32_t result_code; 00038 00039 typedef uint8_t _continuation_possible_type; 00040 uint8_t continuation_possible; 00041 00042 enum { SUCCESS = 1 }; 00043 enum { PLACE_OUT_OF_REACH = 2 }; 00044 enum { PLACE_IN_COLLISION = 3 }; 00045 enum { PLACE_UNFEASIBLE = 4 }; 00046 enum { PREPLACE_OUT_OF_REACH = 5 }; 00047 enum { PREPLACE_IN_COLLISION = 6 }; 00048 enum { PREPLACE_UNFEASIBLE = 7 }; 00049 enum { RETREAT_OUT_OF_REACH = 8 }; 00050 enum { RETREAT_IN_COLLISION = 9 }; 00051 enum { RETREAT_UNFEASIBLE = 10 }; 00052 enum { MOVE_ARM_FAILED = 11 }; 00053 enum { PLACE_FAILED = 12 }; 00054 enum { RETREAT_FAILED = 13 }; 00055 00056 private: 00057 static const char* __s_getDataType_() { return "object_manipulation_msgs/PlaceLocationResult"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00060 00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00062 00063 private: 00064 static const char* __s_getMD5Sum_() { return "8dd9edc3a2a98cab298ca81031224cda"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getMessageDefinition_() { return "int32 SUCCESS = 1\n\ 00072 int32 PLACE_OUT_OF_REACH = 2\n\ 00073 int32 PLACE_IN_COLLISION = 3\n\ 00074 int32 PLACE_UNFEASIBLE = 4\n\ 00075 int32 PREPLACE_OUT_OF_REACH = 5\n\ 00076 int32 PREPLACE_IN_COLLISION = 6\n\ 00077 int32 PREPLACE_UNFEASIBLE = 7\n\ 00078 int32 RETREAT_OUT_OF_REACH = 8\n\ 00079 int32 RETREAT_IN_COLLISION = 9\n\ 00080 int32 RETREAT_UNFEASIBLE = 10\n\ 00081 int32 MOVE_ARM_FAILED = 11\n\ 00082 int32 PLACE_FAILED = 12\n\ 00083 int32 RETREAT_FAILED = 13\n\ 00084 int32 result_code\n\ 00085 \n\ 00086 # whether the state of the world was disturbed by this attempt. generally, this flag\n\ 00087 # shows if another task can be attempted, or a new sensed world model is recommeded\n\ 00088 # before proceeding\n\ 00089 bool continuation_possible\n\ 00090 \n\ 00091 "; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00098 { 00099 ros::serialization::OStream stream(write_ptr, 1000000000); 00100 ros::serialization::serialize(stream, result_code); 00101 ros::serialization::serialize(stream, continuation_possible); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00106 { 00107 ros::serialization::IStream stream(read_ptr, 1000000000); 00108 ros::serialization::deserialize(stream, result_code); 00109 ros::serialization::deserialize(stream, continuation_possible); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint32_t serializationLength() const 00114 { 00115 uint32_t size = 0; 00116 size += ros::serialization::serializationLength(result_code); 00117 size += ros::serialization::serializationLength(continuation_possible); 00118 return size; 00119 } 00120 00121 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > Ptr; 00122 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> const> ConstPtr; 00123 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00124 }; // struct PlaceLocationResult 00125 typedef ::object_manipulation_msgs::PlaceLocationResult_<std::allocator<void> > PlaceLocationResult; 00126 00127 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult> PlaceLocationResultPtr; 00128 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceLocationResult const> PlaceLocationResultConstPtr; 00129 00130 00131 template<typename ContainerAllocator> 00132 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> & v) 00133 { 00134 ros::message_operations::Printer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >::stream(s, "", v); 00135 return s;} 00136 00137 } // namespace object_manipulation_msgs 00138 00139 namespace ros 00140 { 00141 namespace message_traits 00142 { 00143 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > : public TrueType {}; 00144 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> const> : public TrueType {}; 00145 template<class ContainerAllocator> 00146 struct MD5Sum< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "8dd9edc3a2a98cab298ca81031224cda"; 00150 } 00151 00152 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); } 00153 static const uint64_t static_value1 = 0x8dd9edc3a2a98cabULL; 00154 static const uint64_t static_value2 = 0x298ca81031224cdaULL; 00155 }; 00156 00157 template<class ContainerAllocator> 00158 struct DataType< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "object_manipulation_msgs/PlaceLocationResult"; 00162 } 00163 00164 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 template<class ContainerAllocator> 00168 struct Definition< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "int32 SUCCESS = 1\n\ 00172 int32 PLACE_OUT_OF_REACH = 2\n\ 00173 int32 PLACE_IN_COLLISION = 3\n\ 00174 int32 PLACE_UNFEASIBLE = 4\n\ 00175 int32 PREPLACE_OUT_OF_REACH = 5\n\ 00176 int32 PREPLACE_IN_COLLISION = 6\n\ 00177 int32 PREPLACE_UNFEASIBLE = 7\n\ 00178 int32 RETREAT_OUT_OF_REACH = 8\n\ 00179 int32 RETREAT_IN_COLLISION = 9\n\ 00180 int32 RETREAT_UNFEASIBLE = 10\n\ 00181 int32 MOVE_ARM_FAILED = 11\n\ 00182 int32 PLACE_FAILED = 12\n\ 00183 int32 RETREAT_FAILED = 13\n\ 00184 int32 result_code\n\ 00185 \n\ 00186 # whether the state of the world was disturbed by this attempt. generally, this flag\n\ 00187 # shows if another task can be attempted, or a new sensed world model is recommeded\n\ 00188 # before proceeding\n\ 00189 bool continuation_possible\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > : public TrueType {}; 00198 } // namespace message_traits 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace serialization 00204 { 00205 00206 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > 00207 { 00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00209 { 00210 stream.next(m.result_code); 00211 stream.next(m.continuation_possible); 00212 } 00213 00214 ROS_DECLARE_ALLINONE_SERIALIZER; 00215 }; // struct PlaceLocationResult_ 00216 } // namespace serialization 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace message_operations 00222 { 00223 00224 template<class ContainerAllocator> 00225 struct Printer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> > 00226 { 00227 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> & v) 00228 { 00229 s << indent << "result_code: "; 00230 Printer<int32_t>::stream(s, indent + " ", v.result_code); 00231 s << indent << "continuation_possible: "; 00232 Printer<uint8_t>::stream(s, indent + " ", v.continuation_possible); 00233 } 00234 }; 00235 00236 00237 } // namespace message_operations 00238 } // namespace ros 00239 00240 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_PLACELOCATIONRESULT_H 00241