$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_knowledge/msg/GraspAction.msg */ 00002 #ifndef SRS_KNOWLEDGE_MESSAGE_GRASPACTION_H 00003 #define SRS_KNOWLEDGE_MESSAGE_GRASPACTION_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 #include "geometry_msgs/Point32.h" 00018 00019 namespace srs_knowledge 00020 { 00021 template <class ContainerAllocator> 00022 struct GraspAction_ { 00023 typedef GraspAction_<ContainerAllocator> Type; 00024 00025 GraspAction_() 00026 : ifGrasp(false) 00027 , rough_center() 00028 , confidence_level(0.0) 00029 , radius_region(0.0) 00030 , object_id(0) 00031 , object_type() 00032 , class_id(0) 00033 { 00034 } 00035 00036 GraspAction_(const ContainerAllocator& _alloc) 00037 : ifGrasp(false) 00038 , rough_center(_alloc) 00039 , confidence_level(0.0) 00040 , radius_region(0.0) 00041 , object_id(0) 00042 , object_type(_alloc) 00043 , class_id(0) 00044 { 00045 } 00046 00047 typedef uint8_t _ifGrasp_type; 00048 uint8_t ifGrasp; 00049 00050 typedef ::geometry_msgs::Point32_<ContainerAllocator> _rough_center_type; 00051 ::geometry_msgs::Point32_<ContainerAllocator> rough_center; 00052 00053 typedef float _confidence_level_type; 00054 float confidence_level; 00055 00056 typedef float _radius_region_type; 00057 float radius_region; 00058 00059 typedef int32_t _object_id_type; 00060 int32_t object_id; 00061 00062 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_type_type; 00063 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_type; 00064 00065 typedef int32_t _class_id_type; 00066 int32_t class_id; 00067 00068 00069 private: 00070 static const char* __s_getDataType_() { return "srs_knowledge/GraspAction"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00073 00074 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00075 00076 private: 00077 static const char* __s_getMD5Sum_() { return "a5b55b2bc3272273072fad2e424ffe38"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00080 00081 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00082 00083 private: 00084 static const char* __s_getMessageDefinition_() { return "bool ifGrasp\n\ 00085 \n\ 00086 geometry_msgs/Point32 rough_center\n\ 00087 float32 confidence_level\n\ 00088 float32 radius_region\n\ 00089 \n\ 00090 int32 object_id\n\ 00091 # geometry_msgs/Point32 grid_size\n\ 00092 # geometry_msgs\n\ 00093 string object_type\n\ 00094 int32 class_id\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: geometry_msgs/Point32\n\ 00098 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00099 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00100 # \n\ 00101 # This recommendation is to promote interoperability. \n\ 00102 #\n\ 00103 # This message is designed to take up less space when sending\n\ 00104 # lots of points at once, as in the case of a PointCloud. \n\ 00105 \n\ 00106 float32 x\n\ 00107 float32 y\n\ 00108 float32 z\n\ 00109 "; } 00110 public: 00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00116 { 00117 ros::serialization::OStream stream(write_ptr, 1000000000); 00118 ros::serialization::serialize(stream, ifGrasp); 00119 ros::serialization::serialize(stream, rough_center); 00120 ros::serialization::serialize(stream, confidence_level); 00121 ros::serialization::serialize(stream, radius_region); 00122 ros::serialization::serialize(stream, object_id); 00123 ros::serialization::serialize(stream, object_type); 00124 ros::serialization::serialize(stream, class_id); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, ifGrasp); 00132 ros::serialization::deserialize(stream, rough_center); 00133 ros::serialization::deserialize(stream, confidence_level); 00134 ros::serialization::deserialize(stream, radius_region); 00135 ros::serialization::deserialize(stream, object_id); 00136 ros::serialization::deserialize(stream, object_type); 00137 ros::serialization::deserialize(stream, class_id); 00138 return stream.getData(); 00139 } 00140 00141 ROS_DEPRECATED virtual uint32_t serializationLength() const 00142 { 00143 uint32_t size = 0; 00144 size += ros::serialization::serializationLength(ifGrasp); 00145 size += ros::serialization::serializationLength(rough_center); 00146 size += ros::serialization::serializationLength(confidence_level); 00147 size += ros::serialization::serializationLength(radius_region); 00148 size += ros::serialization::serializationLength(object_id); 00149 size += ros::serialization::serializationLength(object_type); 00150 size += ros::serialization::serializationLength(class_id); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::srs_knowledge::GraspAction_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::srs_knowledge::GraspAction_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct GraspAction 00158 typedef ::srs_knowledge::GraspAction_<std::allocator<void> > GraspAction; 00159 00160 typedef boost::shared_ptr< ::srs_knowledge::GraspAction> GraspActionPtr; 00161 typedef boost::shared_ptr< ::srs_knowledge::GraspAction const> GraspActionConstPtr; 00162 00163 00164 template<typename ContainerAllocator> 00165 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::GraspAction_<ContainerAllocator> & v) 00166 { 00167 ros::message_operations::Printer< ::srs_knowledge::GraspAction_<ContainerAllocator> >::stream(s, "", v); 00168 return s;} 00169 00170 } // namespace srs_knowledge 00171 00172 namespace ros 00173 { 00174 namespace message_traits 00175 { 00176 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GraspAction_<ContainerAllocator> > : public TrueType {}; 00177 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GraspAction_<ContainerAllocator> const> : public TrueType {}; 00178 template<class ContainerAllocator> 00179 struct MD5Sum< ::srs_knowledge::GraspAction_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "a5b55b2bc3272273072fad2e424ffe38"; 00183 } 00184 00185 static const char* value(const ::srs_knowledge::GraspAction_<ContainerAllocator> &) { return value(); } 00186 static const uint64_t static_value1 = 0xa5b55b2bc3272273ULL; 00187 static const uint64_t static_value2 = 0x072fad2e424ffe38ULL; 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct DataType< ::srs_knowledge::GraspAction_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "srs_knowledge/GraspAction"; 00195 } 00196 00197 static const char* value(const ::srs_knowledge::GraspAction_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct Definition< ::srs_knowledge::GraspAction_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "bool ifGrasp\n\ 00205 \n\ 00206 geometry_msgs/Point32 rough_center\n\ 00207 float32 confidence_level\n\ 00208 float32 radius_region\n\ 00209 \n\ 00210 int32 object_id\n\ 00211 # geometry_msgs/Point32 grid_size\n\ 00212 # geometry_msgs\n\ 00213 string object_type\n\ 00214 int32 class_id\n\ 00215 \n\ 00216 ================================================================================\n\ 00217 MSG: geometry_msgs/Point32\n\ 00218 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00219 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00220 # \n\ 00221 # This recommendation is to promote interoperability. \n\ 00222 #\n\ 00223 # This message is designed to take up less space when sending\n\ 00224 # lots of points at once, as in the case of a PointCloud. \n\ 00225 \n\ 00226 float32 x\n\ 00227 float32 y\n\ 00228 float32 z\n\ 00229 "; 00230 } 00231 00232 static const char* value(const ::srs_knowledge::GraspAction_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 } // namespace message_traits 00236 } // namespace ros 00237 00238 namespace ros 00239 { 00240 namespace serialization 00241 { 00242 00243 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GraspAction_<ContainerAllocator> > 00244 { 00245 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00246 { 00247 stream.next(m.ifGrasp); 00248 stream.next(m.rough_center); 00249 stream.next(m.confidence_level); 00250 stream.next(m.radius_region); 00251 stream.next(m.object_id); 00252 stream.next(m.object_type); 00253 stream.next(m.class_id); 00254 } 00255 00256 ROS_DECLARE_ALLINONE_SERIALIZER; 00257 }; // struct GraspAction_ 00258 } // namespace serialization 00259 } // namespace ros 00260 00261 namespace ros 00262 { 00263 namespace message_operations 00264 { 00265 00266 template<class ContainerAllocator> 00267 struct Printer< ::srs_knowledge::GraspAction_<ContainerAllocator> > 00268 { 00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::GraspAction_<ContainerAllocator> & v) 00270 { 00271 s << indent << "ifGrasp: "; 00272 Printer<uint8_t>::stream(s, indent + " ", v.ifGrasp); 00273 s << indent << "rough_center: "; 00274 s << std::endl; 00275 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.rough_center); 00276 s << indent << "confidence_level: "; 00277 Printer<float>::stream(s, indent + " ", v.confidence_level); 00278 s << indent << "radius_region: "; 00279 Printer<float>::stream(s, indent + " ", v.radius_region); 00280 s << indent << "object_id: "; 00281 Printer<int32_t>::stream(s, indent + " ", v.object_id); 00282 s << indent << "object_type: "; 00283 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_type); 00284 s << indent << "class_id: "; 00285 Printer<int32_t>::stream(s, indent + " ", v.class_id); 00286 } 00287 }; 00288 00289 00290 } // namespace message_operations 00291 } // namespace ros 00292 00293 #endif // SRS_KNOWLEDGE_MESSAGE_GRASPACTION_H 00294