Go to the documentation of this file.00001
00002 #ifndef UBLOX_MSGS_MESSAGE_AIDEPH_H
00003 #define UBLOX_MSGS_MESSAGE_AIDEPH_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 ublox_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct AidEPH_ {
00022 typedef AidEPH_<ContainerAllocator> Type;
00023
00024 AidEPH_()
00025 : svid(0)
00026 , how(0)
00027 , sf1d()
00028 , sf2d()
00029 , sf3d()
00030 {
00031 }
00032
00033 AidEPH_(const ContainerAllocator& _alloc)
00034 : svid(0)
00035 , how(0)
00036 , sf1d(_alloc)
00037 , sf2d(_alloc)
00038 , sf3d(_alloc)
00039 {
00040 }
00041
00042 typedef uint32_t _svid_type;
00043 uint32_t svid;
00044
00045 typedef uint32_t _how_type;
00046 uint32_t how;
00047
00048 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _sf1d_type;
00049 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > sf1d;
00050
00051 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _sf2d_type;
00052 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > sf2d;
00053
00054 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _sf3d_type;
00055 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > sf3d;
00056
00057 enum { CLASS_ID = 11 };
00058 enum { MESSAGE_ID = 49 };
00059
00060 typedef boost::shared_ptr< ::ublox_msgs::AidEPH_<ContainerAllocator> > Ptr;
00061 typedef boost::shared_ptr< ::ublox_msgs::AidEPH_<ContainerAllocator> const> ConstPtr;
00062 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00063 };
00064 typedef ::ublox_msgs::AidEPH_<std::allocator<void> > AidEPH;
00065
00066 typedef boost::shared_ptr< ::ublox_msgs::AidEPH> AidEPHPtr;
00067 typedef boost::shared_ptr< ::ublox_msgs::AidEPH const> AidEPHConstPtr;
00068
00069
00070 template<typename ContainerAllocator>
00071 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::AidEPH_<ContainerAllocator> & v)
00072 {
00073 ros::message_operations::Printer< ::ublox_msgs::AidEPH_<ContainerAllocator> >::stream(s, "", v);
00074 return s;}
00075
00076 }
00077
00078 namespace ros
00079 {
00080 namespace message_traits
00081 {
00082 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::AidEPH_<ContainerAllocator> > : public TrueType {};
00083 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::AidEPH_<ContainerAllocator> const> : public TrueType {};
00084 template<class ContainerAllocator>
00085 struct MD5Sum< ::ublox_msgs::AidEPH_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "796d86b27ebfe497b3a42695f2e69e13";
00089 }
00090
00091 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); }
00092 static const uint64_t static_value1 = 0x796d86b27ebfe497ULL;
00093 static const uint64_t static_value2 = 0xb3a42695f2e69e13ULL;
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct DataType< ::ublox_msgs::AidEPH_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "ublox_msgs/AidEPH";
00101 }
00102
00103 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); }
00104 };
00105
00106 template<class ContainerAllocator>
00107 struct Definition< ::ublox_msgs::AidEPH_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "# AID-EPH (0x0B 0x31)\n\
00111 # GPS Aiding Ephemeris Input/Output Message\n\
00112 #\n\
00113 # This message is provided considered obsolete, please use AID-EPH instead!\n\
00114 # - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may\n\
00115 # be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does\n\
00116 # not have valid ephemeris for the moment. This may happen even if NAV-SVINFO and\n\
00117 # RXM-SVSI are indicating ephemeris availability as the internal data may not represent the\n\
00118 # content of an original broadcast ephemeris (or only parts thereof).\n\
00119 # - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the\n\
00120 # GPS navigation message, subframes 1 to 3. The Truncated TOW Count is not valid and\n\
00121 # cannot be used. See IS-GPS-200 for a full description of the contents of the Subframes.\n\
00122 # - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are\n\
00123 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\
00124 # - When polled, the data contained in this message does not represent the full original\n\
00125 # ephemeris broadcast. Some fields that are irrelevant to u-blox receivers may be missing.\n\
00126 # The week number in Subframe 1 has already been modified to match the Time Of\n\
00127 # Ephemeris (TOE).\n\
00128 \n\
00129 uint8 CLASS_ID = 11\n\
00130 uint8 MESSAGE_ID = 49\n\
00131 \n\
00132 uint32 svid # SV ID for which this ephemeris data is (Valid Range: 1 .. 32).\n\
00133 uint32 how # Hand-Over Word of first Subframe. This is\n\
00134 # required if data is sent to the receiver.\n\
00135 # 0 indicates that no Ephemeris Data is following.\n\
00136 \n\
00137 # Start of optional block\n\
00138 uint32[] sf1d # Subframe 1 Words 3..10 (SF1D0..SF1D7)\n\
00139 uint32[] sf2d # Subframe 2 Words 3..10 (SF2D0..SF2D7)\n\
00140 uint32[] sf3d # Subframe 3 Words 3..10 (SF3D0..SF3D7)\n\
00141 # End of optional block\n\
00142 \n\
00143 ";
00144 }
00145
00146 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); }
00147 };
00148
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::AidEPH_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.svid);
00162 stream.next(m.how);
00163 stream.next(m.sf1d);
00164 stream.next(m.sf2d);
00165 stream.next(m.sf3d);
00166 }
00167
00168 ROS_DECLARE_ALLINONE_SERIALIZER;
00169 };
00170 }
00171 }
00172
00173 namespace ros
00174 {
00175 namespace message_operations
00176 {
00177
00178 template<class ContainerAllocator>
00179 struct Printer< ::ublox_msgs::AidEPH_<ContainerAllocator> >
00180 {
00181 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::AidEPH_<ContainerAllocator> & v)
00182 {
00183 s << indent << "svid: ";
00184 Printer<uint32_t>::stream(s, indent + " ", v.svid);
00185 s << indent << "how: ";
00186 Printer<uint32_t>::stream(s, indent + " ", v.how);
00187 s << indent << "sf1d[]" << std::endl;
00188 for (size_t i = 0; i < v.sf1d.size(); ++i)
00189 {
00190 s << indent << " sf1d[" << i << "]: ";
00191 Printer<uint32_t>::stream(s, indent + " ", v.sf1d[i]);
00192 }
00193 s << indent << "sf2d[]" << std::endl;
00194 for (size_t i = 0; i < v.sf2d.size(); ++i)
00195 {
00196 s << indent << " sf2d[" << i << "]: ";
00197 Printer<uint32_t>::stream(s, indent + " ", v.sf2d[i]);
00198 }
00199 s << indent << "sf3d[]" << std::endl;
00200 for (size_t i = 0; i < v.sf3d.size(); ++i)
00201 {
00202 s << indent << " sf3d[" << i << "]: ";
00203 Printer<uint32_t>::stream(s, indent + " ", v.sf3d[i]);
00204 }
00205 }
00206 };
00207
00208
00209 }
00210 }
00211
00212 #endif // UBLOX_MSGS_MESSAGE_AIDEPH_H
00213