$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_environment_perception/doc_stacks/2013-03-01_14-40-06.190572/cob_environment_perception/cob_3d_mapping_msgs/msg/feature.msg */ 00002 #ifndef COB_3D_MAPPING_MSGS_MESSAGE_FEATURE_H 00003 #define COB_3D_MAPPING_MSGS_MESSAGE_FEATURE_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 cob_3d_mapping_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct feature_ { 00022 typedef feature_<ContainerAllocator> Type; 00023 00024 feature_() 00025 : x(0.0) 00026 , y(0.0) 00027 , z(0.0) 00028 , ID(0) 00029 { 00030 } 00031 00032 feature_(const ContainerAllocator& _alloc) 00033 : x(0.0) 00034 , y(0.0) 00035 , z(0.0) 00036 , ID(0) 00037 { 00038 } 00039 00040 typedef float _x_type; 00041 float x; 00042 00043 typedef float _y_type; 00044 float y; 00045 00046 typedef float _z_type; 00047 float z; 00048 00049 typedef uint32_t _ID_type; 00050 uint32_t ID; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "cob_3d_mapping_msgs/feature"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "56616874ec0e79db2402b9626b7bcd97"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "float32 x\n\ 00069 float32 y\n\ 00070 float32 z\n\ 00071 uint32 ID\n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, x); 00082 ros::serialization::serialize(stream, y); 00083 ros::serialization::serialize(stream, z); 00084 ros::serialization::serialize(stream, ID); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00089 { 00090 ros::serialization::IStream stream(read_ptr, 1000000000); 00091 ros::serialization::deserialize(stream, x); 00092 ros::serialization::deserialize(stream, y); 00093 ros::serialization::deserialize(stream, z); 00094 ros::serialization::deserialize(stream, ID); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(x); 00102 size += ros::serialization::serializationLength(y); 00103 size += ros::serialization::serializationLength(z); 00104 size += ros::serialization::serializationLength(ID); 00105 return size; 00106 } 00107 00108 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > Ptr; 00109 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> const> ConstPtr; 00110 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00111 }; // struct feature 00112 typedef ::cob_3d_mapping_msgs::feature_<std::allocator<void> > feature; 00113 00114 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::feature> featurePtr; 00115 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::feature const> featureConstPtr; 00116 00117 00118 template<typename ContainerAllocator> 00119 std::ostream& operator<<(std::ostream& s, const ::cob_3d_mapping_msgs::feature_<ContainerAllocator> & v) 00120 { 00121 ros::message_operations::Printer< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::stream(s, "", v); 00122 return s;} 00123 00124 } // namespace cob_3d_mapping_msgs 00125 00126 namespace ros 00127 { 00128 namespace message_traits 00129 { 00130 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > : public TrueType {}; 00131 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> const> : public TrueType {}; 00132 template<class ContainerAllocator> 00133 struct MD5Sum< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "56616874ec0e79db2402b9626b7bcd97"; 00137 } 00138 00139 static const char* value(const ::cob_3d_mapping_msgs::feature_<ContainerAllocator> &) { return value(); } 00140 static const uint64_t static_value1 = 0x56616874ec0e79dbULL; 00141 static const uint64_t static_value2 = 0x2402b9626b7bcd97ULL; 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct DataType< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "cob_3d_mapping_msgs/feature"; 00149 } 00150 00151 static const char* value(const ::cob_3d_mapping_msgs::feature_<ContainerAllocator> &) { return value(); } 00152 }; 00153 00154 template<class ContainerAllocator> 00155 struct Definition< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "float32 x\n\ 00159 float32 y\n\ 00160 float32 z\n\ 00161 uint32 ID\n\ 00162 "; 00163 } 00164 00165 static const char* value(const ::cob_3d_mapping_msgs::feature_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> struct IsFixedSize< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > : public TrueType {}; 00169 } // namespace message_traits 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace serialization 00175 { 00176 00177 template<class ContainerAllocator> struct Serializer< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > 00178 { 00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00180 { 00181 stream.next(m.x); 00182 stream.next(m.y); 00183 stream.next(m.z); 00184 stream.next(m.ID); 00185 } 00186 00187 ROS_DECLARE_ALLINONE_SERIALIZER; 00188 }; // struct feature_ 00189 } // namespace serialization 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace message_operations 00195 { 00196 00197 template<class ContainerAllocator> 00198 struct Printer< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> > 00199 { 00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_3d_mapping_msgs::feature_<ContainerAllocator> & v) 00201 { 00202 s << indent << "x: "; 00203 Printer<float>::stream(s, indent + " ", v.x); 00204 s << indent << "y: "; 00205 Printer<float>::stream(s, indent + " ", v.y); 00206 s << indent << "z: "; 00207 Printer<float>::stream(s, indent + " ", v.z); 00208 s << indent << "ID: "; 00209 Printer<uint32_t>::stream(s, indent + " ", v.ID); 00210 } 00211 }; 00212 00213 00214 } // namespace message_operations 00215 } // namespace ros 00216 00217 #endif // COB_3D_MAPPING_MSGS_MESSAGE_FEATURE_H 00218