PositionMeasurement.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-srs_public/doc_stacks/2014-10-06_07-45-36.510262/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   typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > Ptr;
00073   typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement_<ContainerAllocator>  const> ConstPtr;
00074   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 }; // struct PositionMeasurement
00076 typedef  ::srs_msgs::PositionMeasurement_<std::allocator<void> > PositionMeasurement;
00077 
00078 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement> PositionMeasurementPtr;
00079 typedef boost::shared_ptr< ::srs_msgs::PositionMeasurement const> PositionMeasurementConstPtr;
00080 
00081 
00082 template<typename ContainerAllocator>
00083 std::ostream& operator<<(std::ostream& s, const  ::srs_msgs::PositionMeasurement_<ContainerAllocator> & v)
00084 {
00085   ros::message_operations::Printer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> >::stream(s, "", v);
00086   return s;}
00087 
00088 } // namespace srs_msgs
00089 
00090 namespace ros
00091 {
00092 namespace message_traits
00093 {
00094 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {};
00095 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::PositionMeasurement_<ContainerAllocator>  const> : public TrueType {};
00096 template<class ContainerAllocator>
00097 struct MD5Sum< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > {
00098   static const char* value() 
00099   {
00100     return "54fa938b4ec28728e01575b79eb0ec7c";
00101   }
00102 
00103   static const char* value(const  ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 
00104   static const uint64_t static_value1 = 0x54fa938b4ec28728ULL;
00105   static const uint64_t static_value2 = 0xe01575b79eb0ec7cULL;
00106 };
00107 
00108 template<class ContainerAllocator>
00109 struct DataType< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > {
00110   static const char* value() 
00111   {
00112     return "srs_msgs/PositionMeasurement";
00113   }
00114 
00115   static const char* value(const  ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 
00116 };
00117 
00118 template<class ContainerAllocator>
00119 struct Definition< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "Header          header\n\
00123 string          name\n\
00124 string          object_id\n\
00125 geometry_msgs/Point  pos\n\
00126 float64         reliability\n\
00127 float64[9]      covariance\n\
00128 byte            initialization\n\
00129 ================================================================================\n\
00130 MSG: std_msgs/Header\n\
00131 # Standard metadata for higher-level stamped data types.\n\
00132 # This is generally used to communicate timestamped data \n\
00133 # in a particular coordinate frame.\n\
00134 # \n\
00135 # sequence ID: consecutively increasing ID \n\
00136 uint32 seq\n\
00137 #Two-integer timestamp that is expressed as:\n\
00138 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00139 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00140 # time-handling sugar is provided by the client library\n\
00141 time stamp\n\
00142 #Frame this data is associated with\n\
00143 # 0: no frame\n\
00144 # 1: global frame\n\
00145 string frame_id\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: geometry_msgs/Point\n\
00149 # This contains the position of a point in free space\n\
00150 float64 x\n\
00151 float64 y\n\
00152 float64 z\n\
00153 \n\
00154 ";
00155   }
00156 
00157   static const char* value(const  ::srs_msgs::PositionMeasurement_<ContainerAllocator> &) { return value(); } 
00158 };
00159 
00160 template<class ContainerAllocator> struct HasHeader< ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {};
00161 template<class ContainerAllocator> struct HasHeader< const ::srs_msgs::PositionMeasurement_<ContainerAllocator> > : public TrueType {};
00162 } // namespace message_traits
00163 } // namespace ros
00164 
00165 namespace ros
00166 {
00167 namespace serialization
00168 {
00169 
00170 template<class ContainerAllocator> struct Serializer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> >
00171 {
00172   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00173   {
00174     stream.next(m.header);
00175     stream.next(m.name);
00176     stream.next(m.object_id);
00177     stream.next(m.pos);
00178     stream.next(m.reliability);
00179     stream.next(m.covariance);
00180     stream.next(m.initialization);
00181   }
00182 
00183   ROS_DECLARE_ALLINONE_SERIALIZER;
00184 }; // struct PositionMeasurement_
00185 } // namespace serialization
00186 } // namespace ros
00187 
00188 namespace ros
00189 {
00190 namespace message_operations
00191 {
00192 
00193 template<class ContainerAllocator>
00194 struct Printer< ::srs_msgs::PositionMeasurement_<ContainerAllocator> >
00195 {
00196   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::srs_msgs::PositionMeasurement_<ContainerAllocator> & v) 
00197   {
00198     s << indent << "header: ";
00199 s << std::endl;
00200     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00201     s << indent << "name: ";
00202     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00203     s << indent << "object_id: ";
00204     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.object_id);
00205     s << indent << "pos: ";
00206 s << std::endl;
00207     Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "  ", v.pos);
00208     s << indent << "reliability: ";
00209     Printer<double>::stream(s, indent + "  ", v.reliability);
00210     s << indent << "covariance[]" << std::endl;
00211     for (size_t i = 0; i < v.covariance.size(); ++i)
00212     {
00213       s << indent << "  covariance[" << i << "]: ";
00214       Printer<double>::stream(s, indent + "  ", v.covariance[i]);
00215     }
00216     s << indent << "initialization: ";
00217     Printer<int8_t>::stream(s, indent + "  ", v.initialization);
00218   }
00219 };
00220 
00221 
00222 } // namespace message_operations
00223 } // namespace ros
00224 
00225 #endif // SRS_MSGS_MESSAGE_POSITIONMEASUREMENT_H
00226 


srs_msgs
Author(s): renxi
autogenerated on Mon Oct 6 2014 08:20:53