$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/RxmEPH.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_RXMEPH_H 00003 #define UBLOX_MSGS_MESSAGE_RXMEPH_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 RxmEPH_ { 00022 typedef RxmEPH_<ContainerAllocator> Type; 00023 00024 RxmEPH_() 00025 : svid(0) 00026 , how(0) 00027 , sf1d() 00028 , sf2d() 00029 , sf3d() 00030 { 00031 } 00032 00033 RxmEPH_(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 = 2 }; 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/RxmEPH"; } 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 "378ed135397be8e1e42a9e0e5eb180f5"; } 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 "# RXM-EPH (0x02 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.\n\ 00094 # - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the\n\ 00095 # GPS navigation message, subframes 1 to 3. See IS-GPS-200 for a full description of the\n\ 00096 # contents of the Subframes.\n\ 00097 # - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are\n\ 00098 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00099 #\n\ 00100 \n\ 00101 uint8 CLASS_ID = 2\n\ 00102 uint8 MESSAGE_ID = 49\n\ 00103 \n\ 00104 uint32 svid # SV ID for which this ephemeris data is (Valid Range: 1 .. 32).\n\ 00105 uint32 how # Hand-Over Word of first Subframe. This is\n\ 00106 # required if data is sent to the receiver.\n\ 00107 # 0 indicates that no Ephemeris Data is following.\n\ 00108 \n\ 00109 # Start of optional block\n\ 00110 uint32[] sf1d # Subframe 1 Words 3..10 (SF1D0..SF1D7)\n\ 00111 uint32[] sf2d # Subframe 2 Words 3..10 (SF2D0..SF2D7)\n\ 00112 uint32[] sf3d # Subframe 3 Words 3..10 (SF3D0..SF3D7)\n\ 00113 # End of optional block\n\ 00114 \n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, svid); 00125 ros::serialization::serialize(stream, how); 00126 ros::serialization::serialize(stream, sf1d); 00127 ros::serialization::serialize(stream, sf2d); 00128 ros::serialization::serialize(stream, sf3d); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00133 { 00134 ros::serialization::IStream stream(read_ptr, 1000000000); 00135 ros::serialization::deserialize(stream, svid); 00136 ros::serialization::deserialize(stream, how); 00137 ros::serialization::deserialize(stream, sf1d); 00138 ros::serialization::deserialize(stream, sf2d); 00139 ros::serialization::deserialize(stream, sf3d); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint32_t serializationLength() const 00144 { 00145 uint32_t size = 0; 00146 size += ros::serialization::serializationLength(svid); 00147 size += ros::serialization::serializationLength(how); 00148 size += ros::serialization::serializationLength(sf1d); 00149 size += ros::serialization::serializationLength(sf2d); 00150 size += ros::serialization::serializationLength(sf3d); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::ublox_msgs::RxmEPH_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::ublox_msgs::RxmEPH_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct RxmEPH 00158 typedef ::ublox_msgs::RxmEPH_<std::allocator<void> > RxmEPH; 00159 00160 typedef boost::shared_ptr< ::ublox_msgs::RxmEPH> RxmEPHPtr; 00161 typedef boost::shared_ptr< ::ublox_msgs::RxmEPH const> RxmEPHConstPtr; 00162 00163 00164 template<typename ContainerAllocator> 00165 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmEPH_<ContainerAllocator> & v) 00166 { 00167 ros::message_operations::Printer< ::ublox_msgs::RxmEPH_<ContainerAllocator> >::stream(s, "", v); 00168 return s;} 00169 00170 } // namespace ublox_msgs 00171 00172 namespace ros 00173 { 00174 namespace message_traits 00175 { 00176 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmEPH_<ContainerAllocator> > : public TrueType {}; 00177 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmEPH_<ContainerAllocator> const> : public TrueType {}; 00178 template<class ContainerAllocator> 00179 struct MD5Sum< ::ublox_msgs::RxmEPH_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "378ed135397be8e1e42a9e0e5eb180f5"; 00183 } 00184 00185 static const char* value(const ::ublox_msgs::RxmEPH_<ContainerAllocator> &) { return value(); } 00186 static const uint64_t static_value1 = 0x378ed135397be8e1ULL; 00187 static const uint64_t static_value2 = 0xe42a9e0e5eb180f5ULL; 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct DataType< ::ublox_msgs::RxmEPH_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "ublox_msgs/RxmEPH"; 00195 } 00196 00197 static const char* value(const ::ublox_msgs::RxmEPH_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct Definition< ::ublox_msgs::RxmEPH_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "# RXM-EPH (0x02 0x31)\n\ 00205 # GPS Aiding Ephemeris Input/Output Message\n\ 00206 #\n\ 00207 # This message is provided considered obsolete, please use AID-EPH instead!\n\ 00208 # - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may\n\ 00209 # be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does\n\ 00210 # not have valid ephemeris for the moment.\n\ 00211 # - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the\n\ 00212 # GPS navigation message, subframes 1 to 3. See IS-GPS-200 for a full description of the\n\ 00213 # contents of the Subframes.\n\ 00214 # - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are\n\ 00215 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00216 #\n\ 00217 \n\ 00218 uint8 CLASS_ID = 2\n\ 00219 uint8 MESSAGE_ID = 49\n\ 00220 \n\ 00221 uint32 svid # SV ID for which this ephemeris data is (Valid Range: 1 .. 32).\n\ 00222 uint32 how # Hand-Over Word of first Subframe. This is\n\ 00223 # required if data is sent to the receiver.\n\ 00224 # 0 indicates that no Ephemeris Data is following.\n\ 00225 \n\ 00226 # Start of optional block\n\ 00227 uint32[] sf1d # Subframe 1 Words 3..10 (SF1D0..SF1D7)\n\ 00228 uint32[] sf2d # Subframe 2 Words 3..10 (SF2D0..SF2D7)\n\ 00229 uint32[] sf3d # Subframe 3 Words 3..10 (SF3D0..SF3D7)\n\ 00230 # End of optional block\n\ 00231 \n\ 00232 "; 00233 } 00234 00235 static const char* value(const ::ublox_msgs::RxmEPH_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 } // namespace message_traits 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace serialization 00244 { 00245 00246 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmEPH_<ContainerAllocator> > 00247 { 00248 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00249 { 00250 stream.next(m.svid); 00251 stream.next(m.how); 00252 stream.next(m.sf1d); 00253 stream.next(m.sf2d); 00254 stream.next(m.sf3d); 00255 } 00256 00257 ROS_DECLARE_ALLINONE_SERIALIZER; 00258 }; // struct RxmEPH_ 00259 } // namespace serialization 00260 } // namespace ros 00261 00262 namespace ros 00263 { 00264 namespace message_operations 00265 { 00266 00267 template<class ContainerAllocator> 00268 struct Printer< ::ublox_msgs::RxmEPH_<ContainerAllocator> > 00269 { 00270 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmEPH_<ContainerAllocator> & v) 00271 { 00272 s << indent << "svid: "; 00273 Printer<uint32_t>::stream(s, indent + " ", v.svid); 00274 s << indent << "how: "; 00275 Printer<uint32_t>::stream(s, indent + " ", v.how); 00276 s << indent << "sf1d[]" << std::endl; 00277 for (size_t i = 0; i < v.sf1d.size(); ++i) 00278 { 00279 s << indent << " sf1d[" << i << "]: "; 00280 Printer<uint32_t>::stream(s, indent + " ", v.sf1d[i]); 00281 } 00282 s << indent << "sf2d[]" << std::endl; 00283 for (size_t i = 0; i < v.sf2d.size(); ++i) 00284 { 00285 s << indent << " sf2d[" << i << "]: "; 00286 Printer<uint32_t>::stream(s, indent + " ", v.sf2d[i]); 00287 } 00288 s << indent << "sf3d[]" << std::endl; 00289 for (size_t i = 0; i < v.sf3d.size(); ++i) 00290 { 00291 s << indent << " sf3d[" << i << "]: "; 00292 Printer<uint32_t>::stream(s, indent + " ", v.sf3d[i]); 00293 } 00294 } 00295 }; 00296 00297 00298 } // namespace message_operations 00299 } // namespace ros 00300 00301 #endif // UBLOX_MSGS_MESSAGE_RXMEPH_H 00302