$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/ublox/ublox_msgs/msg/AidEPH.msg */ 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 ROS_DEPRECATED uint32_t get_sf1d_size() const { return (uint32_t)sf1d.size(); } 00061 ROS_DEPRECATED void set_sf1d_size(uint32_t size) { sf1d.resize((size_t)size); } 00062 ROS_DEPRECATED void get_sf1d_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->sf1d; } 00063 ROS_DEPRECATED void set_sf1d_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->sf1d = vec; } 00064 ROS_DEPRECATED uint32_t get_sf2d_size() const { return (uint32_t)sf2d.size(); } 00065 ROS_DEPRECATED void set_sf2d_size(uint32_t size) { sf2d.resize((size_t)size); } 00066 ROS_DEPRECATED void get_sf2d_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->sf2d; } 00067 ROS_DEPRECATED void set_sf2d_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->sf2d = vec; } 00068 ROS_DEPRECATED uint32_t get_sf3d_size() const { return (uint32_t)sf3d.size(); } 00069 ROS_DEPRECATED void set_sf3d_size(uint32_t size) { sf3d.resize((size_t)size); } 00070 ROS_DEPRECATED void get_sf3d_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->sf3d; } 00071 ROS_DEPRECATED void set_sf3d_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->sf3d = vec; } 00072 private: 00073 static const char* __s_getDataType_() { return "ublox_msgs/AidEPH"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00076 00077 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00078 00079 private: 00080 static const char* __s_getMD5Sum_() { return "796d86b27ebfe497b3a42695f2e69e13"; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00083 00084 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00085 00086 private: 00087 static const char* __s_getMessageDefinition_() { return "# AID-EPH (0x0B 0x31)\n\ 00088 # GPS Aiding Ephemeris Input/Output Message\n\ 00089 #\n\ 00090 # This message is provided considered obsolete, please use AID-EPH instead!\n\ 00091 # - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may\n\ 00092 # be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does\n\ 00093 # not have valid ephemeris for the moment. This may happen even if NAV-SVINFO and\n\ 00094 # RXM-SVSI are indicating ephemeris availability as the internal data may not represent the\n\ 00095 # content of an original broadcast ephemeris (or only parts thereof).\n\ 00096 # - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the\n\ 00097 # GPS navigation message, subframes 1 to 3. The Truncated TOW Count is not valid and\n\ 00098 # cannot be used. See IS-GPS-200 for a full description of the contents of the Subframes.\n\ 00099 # - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are\n\ 00100 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00101 # - When polled, the data contained in this message does not represent the full original\n\ 00102 # ephemeris broadcast. Some fields that are irrelevant to u-blox receivers may be missing.\n\ 00103 # The week number in Subframe 1 has already been modified to match the Time Of\n\ 00104 # Ephemeris (TOE).\n\ 00105 \n\ 00106 uint8 CLASS_ID = 11\n\ 00107 uint8 MESSAGE_ID = 49\n\ 00108 \n\ 00109 uint32 svid # SV ID for which this ephemeris data is (Valid Range: 1 .. 32).\n\ 00110 uint32 how # Hand-Over Word of first Subframe. This is\n\ 00111 # required if data is sent to the receiver.\n\ 00112 # 0 indicates that no Ephemeris Data is following.\n\ 00113 \n\ 00114 # Start of optional block\n\ 00115 uint32[] sf1d # Subframe 1 Words 3..10 (SF1D0..SF1D7)\n\ 00116 uint32[] sf2d # Subframe 2 Words 3..10 (SF2D0..SF2D7)\n\ 00117 uint32[] sf3d # Subframe 3 Words 3..10 (SF3D0..SF3D7)\n\ 00118 # End of optional block\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, svid); 00130 ros::serialization::serialize(stream, how); 00131 ros::serialization::serialize(stream, sf1d); 00132 ros::serialization::serialize(stream, sf2d); 00133 ros::serialization::serialize(stream, sf3d); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00138 { 00139 ros::serialization::IStream stream(read_ptr, 1000000000); 00140 ros::serialization::deserialize(stream, svid); 00141 ros::serialization::deserialize(stream, how); 00142 ros::serialization::deserialize(stream, sf1d); 00143 ros::serialization::deserialize(stream, sf2d); 00144 ros::serialization::deserialize(stream, sf3d); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint32_t serializationLength() const 00149 { 00150 uint32_t size = 0; 00151 size += ros::serialization::serializationLength(svid); 00152 size += ros::serialization::serializationLength(how); 00153 size += ros::serialization::serializationLength(sf1d); 00154 size += ros::serialization::serializationLength(sf2d); 00155 size += ros::serialization::serializationLength(sf3d); 00156 return size; 00157 } 00158 00159 typedef boost::shared_ptr< ::ublox_msgs::AidEPH_<ContainerAllocator> > Ptr; 00160 typedef boost::shared_ptr< ::ublox_msgs::AidEPH_<ContainerAllocator> const> ConstPtr; 00161 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00162 }; // struct AidEPH 00163 typedef ::ublox_msgs::AidEPH_<std::allocator<void> > AidEPH; 00164 00165 typedef boost::shared_ptr< ::ublox_msgs::AidEPH> AidEPHPtr; 00166 typedef boost::shared_ptr< ::ublox_msgs::AidEPH const> AidEPHConstPtr; 00167 00168 00169 template<typename ContainerAllocator> 00170 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::AidEPH_<ContainerAllocator> & v) 00171 { 00172 ros::message_operations::Printer< ::ublox_msgs::AidEPH_<ContainerAllocator> >::stream(s, "", v); 00173 return s;} 00174 00175 } // namespace ublox_msgs 00176 00177 namespace ros 00178 { 00179 namespace message_traits 00180 { 00181 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::AidEPH_<ContainerAllocator> > : public TrueType {}; 00182 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::AidEPH_<ContainerAllocator> const> : public TrueType {}; 00183 template<class ContainerAllocator> 00184 struct MD5Sum< ::ublox_msgs::AidEPH_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "796d86b27ebfe497b3a42695f2e69e13"; 00188 } 00189 00190 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); } 00191 static const uint64_t static_value1 = 0x796d86b27ebfe497ULL; 00192 static const uint64_t static_value2 = 0xb3a42695f2e69e13ULL; 00193 }; 00194 00195 template<class ContainerAllocator> 00196 struct DataType< ::ublox_msgs::AidEPH_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "ublox_msgs/AidEPH"; 00200 } 00201 00202 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> 00206 struct Definition< ::ublox_msgs::AidEPH_<ContainerAllocator> > { 00207 static const char* value() 00208 { 00209 return "# AID-EPH (0x0B 0x31)\n\ 00210 # GPS Aiding Ephemeris Input/Output Message\n\ 00211 #\n\ 00212 # This message is provided considered obsolete, please use AID-EPH instead!\n\ 00213 # - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may\n\ 00214 # be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does\n\ 00215 # not have valid ephemeris for the moment. This may happen even if NAV-SVINFO and\n\ 00216 # RXM-SVSI are indicating ephemeris availability as the internal data may not represent the\n\ 00217 # content of an original broadcast ephemeris (or only parts thereof).\n\ 00218 # - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the\n\ 00219 # GPS navigation message, subframes 1 to 3. The Truncated TOW Count is not valid and\n\ 00220 # cannot be used. See IS-GPS-200 for a full description of the contents of the Subframes.\n\ 00221 # - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are\n\ 00222 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00223 # - When polled, the data contained in this message does not represent the full original\n\ 00224 # ephemeris broadcast. Some fields that are irrelevant to u-blox receivers may be missing.\n\ 00225 # The week number in Subframe 1 has already been modified to match the Time Of\n\ 00226 # Ephemeris (TOE).\n\ 00227 \n\ 00228 uint8 CLASS_ID = 11\n\ 00229 uint8 MESSAGE_ID = 49\n\ 00230 \n\ 00231 uint32 svid # SV ID for which this ephemeris data is (Valid Range: 1 .. 32).\n\ 00232 uint32 how # Hand-Over Word of first Subframe. This is\n\ 00233 # required if data is sent to the receiver.\n\ 00234 # 0 indicates that no Ephemeris Data is following.\n\ 00235 \n\ 00236 # Start of optional block\n\ 00237 uint32[] sf1d # Subframe 1 Words 3..10 (SF1D0..SF1D7)\n\ 00238 uint32[] sf2d # Subframe 2 Words 3..10 (SF2D0..SF2D7)\n\ 00239 uint32[] sf3d # Subframe 3 Words 3..10 (SF3D0..SF3D7)\n\ 00240 # End of optional block\n\ 00241 \n\ 00242 "; 00243 } 00244 00245 static const char* value(const ::ublox_msgs::AidEPH_<ContainerAllocator> &) { return value(); } 00246 }; 00247 00248 } // namespace message_traits 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace serialization 00254 { 00255 00256 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::AidEPH_<ContainerAllocator> > 00257 { 00258 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00259 { 00260 stream.next(m.svid); 00261 stream.next(m.how); 00262 stream.next(m.sf1d); 00263 stream.next(m.sf2d); 00264 stream.next(m.sf3d); 00265 } 00266 00267 ROS_DECLARE_ALLINONE_SERIALIZER; 00268 }; // struct AidEPH_ 00269 } // namespace serialization 00270 } // namespace ros 00271 00272 namespace ros 00273 { 00274 namespace message_operations 00275 { 00276 00277 template<class ContainerAllocator> 00278 struct Printer< ::ublox_msgs::AidEPH_<ContainerAllocator> > 00279 { 00280 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::AidEPH_<ContainerAllocator> & v) 00281 { 00282 s << indent << "svid: "; 00283 Printer<uint32_t>::stream(s, indent + " ", v.svid); 00284 s << indent << "how: "; 00285 Printer<uint32_t>::stream(s, indent + " ", v.how); 00286 s << indent << "sf1d[]" << std::endl; 00287 for (size_t i = 0; i < v.sf1d.size(); ++i) 00288 { 00289 s << indent << " sf1d[" << i << "]: "; 00290 Printer<uint32_t>::stream(s, indent + " ", v.sf1d[i]); 00291 } 00292 s << indent << "sf2d[]" << std::endl; 00293 for (size_t i = 0; i < v.sf2d.size(); ++i) 00294 { 00295 s << indent << " sf2d[" << i << "]: "; 00296 Printer<uint32_t>::stream(s, indent + " ", v.sf2d[i]); 00297 } 00298 s << indent << "sf3d[]" << std::endl; 00299 for (size_t i = 0; i < v.sf3d.size(); ++i) 00300 { 00301 s << indent << " sf3d[" << i << "]: "; 00302 Printer<uint32_t>::stream(s, indent + " ", v.sf3d[i]); 00303 } 00304 } 00305 }; 00306 00307 00308 } // namespace message_operations 00309 } // namespace ros 00310 00311 #endif // UBLOX_MSGS_MESSAGE_AIDEPH_H 00312