Go to the documentation of this file.00001
00002 #ifndef UNCERTAIN_TF_MESSAGE_UTFMESSAGE_H
00003 #define UNCERTAIN_TF_MESSAGE_UTFMESSAGE_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 "uncertain_tf/CovarianceStamped.h"
00018
00019 namespace uncertain_tf
00020 {
00021 template <class ContainerAllocator>
00022 struct utfMessage_ {
00023 typedef utfMessage_<ContainerAllocator> Type;
00024
00025 utfMessage_()
00026 : covariances()
00027 {
00028 }
00029
00030 utfMessage_(const ContainerAllocator& _alloc)
00031 : covariances(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::uncertain_tf::CovarianceStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::uncertain_tf::CovarianceStamped_<ContainerAllocator> >::other > _covariances_type;
00036 std::vector< ::uncertain_tf::CovarianceStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::uncertain_tf::CovarianceStamped_<ContainerAllocator> >::other > covariances;
00037
00038
00039 typedef boost::shared_ptr< ::uncertain_tf::utfMessage_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::uncertain_tf::utfMessage_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::uncertain_tf::utfMessage_<std::allocator<void> > utfMessage;
00044
00045 typedef boost::shared_ptr< ::uncertain_tf::utfMessage> utfMessagePtr;
00046 typedef boost::shared_ptr< ::uncertain_tf::utfMessage const> utfMessageConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::uncertain_tf::utfMessage_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::uncertain_tf::utfMessage_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::uncertain_tf::utfMessage_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::uncertain_tf::utfMessage_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::uncertain_tf::utfMessage_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "031297ac1eed0541c5c271554208b372";
00068 }
00069
00070 static const char* value(const ::uncertain_tf::utfMessage_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x031297ac1eed0541ULL;
00072 static const uint64_t static_value2 = 0xc5c271554208b372ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::uncertain_tf::utfMessage_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "uncertain_tf/utfMessage";
00080 }
00081
00082 static const char* value(const ::uncertain_tf::utfMessage_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::uncertain_tf::utfMessage_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "uncertain_tf/CovarianceStamped[] covariances\n\
00090 \n\
00091 ================================================================================\n\
00092 MSG: uncertain_tf/CovarianceStamped\n\
00093 # for now we consider only covariances\n\
00094 Header header\n\
00095 float64[36] covariance\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: std_msgs/Header\n\
00099 # Standard metadata for higher-level stamped data types.\n\
00100 # This is generally used to communicate timestamped data \n\
00101 # in a particular coordinate frame.\n\
00102 # \n\
00103 # sequence ID: consecutively increasing ID \n\
00104 uint32 seq\n\
00105 #Two-integer timestamp that is expressed as:\n\
00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00108 # time-handling sugar is provided by the client library\n\
00109 time stamp\n\
00110 #Frame this data is associated with\n\
00111 # 0: no frame\n\
00112 # 1: global frame\n\
00113 string frame_id\n\
00114 \n\
00115 ";
00116 }
00117
00118 static const char* value(const ::uncertain_tf::utfMessage_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 }
00122 }
00123
00124 namespace ros
00125 {
00126 namespace serialization
00127 {
00128
00129 template<class ContainerAllocator> struct Serializer< ::uncertain_tf::utfMessage_<ContainerAllocator> >
00130 {
00131 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00132 {
00133 stream.next(m.covariances);
00134 }
00135
00136 ROS_DECLARE_ALLINONE_SERIALIZER;
00137 };
00138 }
00139 }
00140
00141 namespace ros
00142 {
00143 namespace message_operations
00144 {
00145
00146 template<class ContainerAllocator>
00147 struct Printer< ::uncertain_tf::utfMessage_<ContainerAllocator> >
00148 {
00149 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::uncertain_tf::utfMessage_<ContainerAllocator> & v)
00150 {
00151 s << indent << "covariances[]" << std::endl;
00152 for (size_t i = 0; i < v.covariances.size(); ++i)
00153 {
00154 s << indent << " covariances[" << i << "]: ";
00155 s << std::endl;
00156 s << indent;
00157 Printer< ::uncertain_tf::CovarianceStamped_<ContainerAllocator> >::stream(s, indent + " ", v.covariances[i]);
00158 }
00159 }
00160 };
00161
00162
00163 }
00164 }
00165
00166 #endif // UNCERTAIN_TF_MESSAGE_UTFMESSAGE_H
00167