$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_msgs/msg/PositionMeasurement.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_POSITIONMEASUREMENT_H 00003 #define SRS_MSGS_MESSAGE_POSITIONMEASUREMENT_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 "std_msgs/Header.h" 00018 #include "geometry_msgs/Point.h" 00019 00020 namespace srs_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PositionMeasurement_ { 00024 typedef PositionMeasurement_<ContainerAllocator> Type; 00025 00026 PositionMeasurement_() 00027 : header() 00028 , name() 00029 , object_id() 00030 , pos() 00031 , reliability(0.0) 00032 , covariance() 00033 , initialization(0) 00034 { 00035 covariance.assign(0.0); 00036 } 00037 00038 PositionMeasurement_(const ContainerAllocator& _alloc) 00039 : header(_alloc) 00040 , name(_alloc) 00041 , object_id(_alloc) 00042 , pos(_alloc) 00043 , reliability(0.0) 00044 , covariance() 00045 , initialization(0) 00046 { 00047 covariance.assign(0.0); 00048 } 00049 00050 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00051 ::std_msgs::Header_<ContainerAllocator> header; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00055 00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type; 00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id; 00058 00059 typedef ::geometry_msgs::Point_<ContainerAllocator> _pos_type; 00060 ::geometry_msgs::Point_<ContainerAllocator> pos; 00061 00062 typedef double _reliability_type; 00063 double reliability; 00064 00065 typedef boost::array<double, 9> _covariance_type; 00066 boost::array<double, 9> covariance; 00067 00068 typedef int8_t _initialization_type; 00069 int8_t initialization; 00070 00071 00072 ROS_DEPRECATED uint32_t get_covariance_size() const { return (uint32_t)covariance.size(); } 00073 private: 00074 static const char* __s_getDataType_() { return "srs_msgs/PositionMeasurement"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "54fa938b4ec28728e01575b79eb0ec7c"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00089 string name\n\ 00090 string object_id\n\ 00091 geometry_msgs/Point pos\n\ 00092 float64 reliability\n\ 00093 float64[9] covariance\n\ 00094 byte initialization\n\ 00095 ================================================================================\n\ 00096 MSG: std_msgs/Header\n\ 00097 # Standard metadata for higher-level stamped data types.\n\ 00098 # This is generally used to communicate timestamped data \n\ 00099 # in a particular coordinate frame.\n\ 00100 # \n\ 00101 # sequence ID: consecutively increasing ID \n\ 00102 uint32 seq\n\ 00103 #Two-integer timestamp that is expressed as:\n\ 00104 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00105 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00106 # time-handling sugar is provided by the client library\n\ 00107 time stamp\n\ 00108 #Frame this data is associated with\n\ 00109 # 0: no frame\n\ 00110 # 1: global frame\n\ 00111 string frame_id\n\ 00112 \n\ 00113 ================================================================================\n\ 00114 MSG: geometry_msgs/Point\n\ 00115 # This contains the position of a point in free space\n\ 00116 float64 x\n\ 00117 float64 y\n\ 00118 float64 z\n\ 00119 \n\ 00120 "; } 00121 public: 00122 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00123 00124 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00127 { 00128 ros::serialization::OStream stream(write_ptr, 1000000000); 00129 ros::serialization::serialize(stream, header); 00130 ros::serialization::serialize(stream, name); 00131 ros::serialization::serialize(stream, object_id); 00132 ros::serialization::serialize(stream, pos); 00133 ros::serialization::serialize(stream, reliability); 00134 ros::serialization::serialize(stream, covariance); 00135 ros::serialization::serialize(stream, initialization); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00140 { 00141 ros::serialization::IStream stream(read_ptr, 1000000000); 00142 ros::serialization::deserialize(stream, header); 00143 ros::serialization::deserialize(stream, name); 00144 ros::serialization::deserialize(stream, object_id); 00145 ros::serialization::deserialize(stream, pos); 00146 ros::serialization::deserialize(stream, reliability); 00147 ros::serialization::deserialize(stream, covariance); 00148 ros::serialization::deserialize(stream, initialization); 00149 return stream.getData(); 00150 } 00151 00152 ROS_DEPRECATED virtual uint32_t serializationLength() const 00153 { 00154 uint32_t size = 0; 00155 size += ros::serialization::serializationLength(header); 00156 size += ros::serialization::serializationLength(name); 00157 size += ros::serialization::serializationLength(object_id); 00158 size += ros::serialization::serializationLength(pos); 00159 size += ros::serialization::serializationLength(reliability); 00160 size += ros::serialization::serializationLength(covariance); 00161 size += ros::serialization::serializationLength(initialization); 00162 return size; 00163 } 00164 00165 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > Ptr; 00166 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement_<ContainerAllocator> const> ConstPtr; 00167 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00168 }; // struct PositionMeasurement 00169 typedef ::srs_msgs::PositionMeasurement_<std::allocator<void> > PositionMeasurement; 00170 00171 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement> PositionMeasurementPtr; 00172 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement const> PositionMeasurementConstPtr; 00173 00174 00175 template<typename ContainerAllocator> 00176 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::PositionMeasurement_<ContainerAllocator> & v) 00177 { 00178 ros::message_operations::Printer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> >::stream(s, "", v); 00179 return s;} 00180 00181 } // namespace srs_msgs 00182 00183 namespace ros 00184 { 00185 namespace message_traits 00186 { 00187 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {}; 00188 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::PositionMeasurement_<ContainerAllocator> const> : public TrueType {}; 00189 template<class ContainerAllocator> 00190 struct MD5Sum< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "54fa938b4ec28728e01575b79eb0ec7c"; 00194 } 00195 00196 static const char* value(const ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 00197 static const uint64_t static_value1 = 0x54fa938b4ec28728ULL; 00198 static const uint64_t static_value2 = 0xe01575b79eb0ec7cULL; 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct DataType< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "srs_msgs/PositionMeasurement"; 00206 } 00207 00208 static const char* value(const ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 00209 }; 00210 00211 template<class ContainerAllocator> 00212 struct Definition< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > { 00213 static const char* value() 00214 { 00215 return "Header header\n\ 00216 string name\n\ 00217 string object_id\n\ 00218 geometry_msgs/Point pos\n\ 00219 float64 reliability\n\ 00220 float64[9] covariance\n\ 00221 byte initialization\n\ 00222 ================================================================================\n\ 00223 MSG: std_msgs/Header\n\ 00224 # Standard metadata for higher-level stamped data types.\n\ 00225 # This is generally used to communicate timestamped data \n\ 00226 # in a particular coordinate frame.\n\ 00227 # \n\ 00228 # sequence ID: consecutively increasing ID \n\ 00229 uint32 seq\n\ 00230 #Two-integer timestamp that is expressed as:\n\ 00231 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00232 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00233 # time-handling sugar is provided by the client library\n\ 00234 time stamp\n\ 00235 #Frame this data is associated with\n\ 00236 # 0: no frame\n\ 00237 # 1: global frame\n\ 00238 string frame_id\n\ 00239 \n\ 00240 ================================================================================\n\ 00241 MSG: geometry_msgs/Point\n\ 00242 # This contains the position of a point in free space\n\ 00243 float64 x\n\ 00244 float64 y\n\ 00245 float64 z\n\ 00246 \n\ 00247 "; 00248 } 00249 00250 static const char* value(const ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 00251 }; 00252 00253 template<class ContainerAllocator> struct HasHeader< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {}; 00254 template<class ContainerAllocator> struct HasHeader< const ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {}; 00255 } // namespace message_traits 00256 } // namespace ros 00257 00258 namespace ros 00259 { 00260 namespace serialization 00261 { 00262 00263 template<class ContainerAllocator> struct Serializer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > 00264 { 00265 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00266 { 00267 stream.next(m.header); 00268 stream.next(m.name); 00269 stream.next(m.object_id); 00270 stream.next(m.pos); 00271 stream.next(m.reliability); 00272 stream.next(m.covariance); 00273 stream.next(m.initialization); 00274 } 00275 00276 ROS_DECLARE_ALLINONE_SERIALIZER; 00277 }; // struct PositionMeasurement_ 00278 } // namespace serialization 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace message_operations 00284 { 00285 00286 template<class ContainerAllocator> 00287 struct Printer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > 00288 { 00289 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::PositionMeasurement_<ContainerAllocator> & v) 00290 { 00291 s << indent << "header: "; 00292 s << std::endl; 00293 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00294 s << indent << "name: "; 00295 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00296 s << indent << "object_id: "; 00297 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_id); 00298 s << indent << "pos: "; 00299 s << std::endl; 00300 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.pos); 00301 s << indent << "reliability: "; 00302 Printer<double>::stream(s, indent + " ", v.reliability); 00303 s << indent << "covariance[]" << std::endl; 00304 for (size_t i = 0; i < v.covariance.size(); ++i) 00305 { 00306 s << indent << " covariance[" << i << "]: "; 00307 Printer<double>::stream(s, indent + " ", v.covariance[i]); 00308 } 00309 s << indent << "initialization: "; 00310 Printer<int8_t>::stream(s, indent + " ", v.initialization); 00311 } 00312 }; 00313 00314 00315 } // namespace message_operations 00316 } // namespace ros 00317 00318 #endif // SRS_MSGS_MESSAGE_POSITIONMEASUREMENT_H 00319