$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/RxmSVSI.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_RXMSVSI_H 00003 #define UBLOX_MSGS_MESSAGE_RXMSVSI_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 "ublox_msgs/RxmSVSI_SV.h" 00018 00019 namespace ublox_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct RxmSVSI_ { 00023 typedef RxmSVSI_<ContainerAllocator> Type; 00024 00025 RxmSVSI_() 00026 : iTOW(0) 00027 , week(0) 00028 , numVis(0) 00029 , numSV(0) 00030 , sv() 00031 { 00032 } 00033 00034 RxmSVSI_(const ContainerAllocator& _alloc) 00035 : iTOW(0) 00036 , week(0) 00037 , numVis(0) 00038 , numSV(0) 00039 , sv(_alloc) 00040 { 00041 } 00042 00043 typedef int32_t _iTOW_type; 00044 int32_t iTOW; 00045 00046 typedef int16_t _week_type; 00047 int16_t week; 00048 00049 typedef uint8_t _numVis_type; 00050 uint8_t numVis; 00051 00052 typedef uint8_t _numSV_type; 00053 uint8_t numSV; 00054 00055 typedef std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > _sv_type; 00056 std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > sv; 00057 00058 enum { CLASS_ID = 2 }; 00059 enum { MESSAGE_ID = 32 }; 00060 00061 ROS_DEPRECATED uint32_t get_sv_size() const { return (uint32_t)sv.size(); } 00062 ROS_DEPRECATED void set_sv_size(uint32_t size) { sv.resize((size_t)size); } 00063 ROS_DEPRECATED void get_sv_vec(std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > & vec) const { vec = this->sv; } 00064 ROS_DEPRECATED void set_sv_vec(const std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > & vec) { this->sv = vec; } 00065 private: 00066 static const char* __s_getDataType_() { return "ublox_msgs/RxmSVSI"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00069 00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00071 00072 private: 00073 static const char* __s_getMD5Sum_() { return "98aa3a36683a81726f4382ea8e0b7c1b"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "# RXM-SVSI (0x02 0x20)\n\ 00081 # SV Status Info\n\ 00082 #\n\ 00083 # Status of the receiver manager knowledge about GPS Orbit Validity\n\ 00084 #\n\ 00085 \n\ 00086 uint8 CLASS_ID = 2\n\ 00087 uint8 MESSAGE_ID = 32\n\ 00088 \n\ 00089 int32 iTOW # Measurement integer millisecond GPS time of week [ms]\n\ 00090 int16 week # Measurement GPS week number [weeks]\n\ 00091 \n\ 00092 uint8 numVis # Number of visible satellites\n\ 00093 uint8 numSV # Number of per-SV data blocks following\n\ 00094 \n\ 00095 RxmSVSI_SV[] sv\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: ublox_msgs/RxmSVSI_SV\n\ 00099 # see message RxmSVSI\n\ 00100 #\n\ 00101 \n\ 00102 uint8 svid # Satellite ID\n\ 00103 \n\ 00104 uint8 svFlag # Information Flags\n\ 00105 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\ 00106 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\ 00107 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\ 00108 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\ 00109 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\ 00110 \n\ 00111 int16 azi # Azimuth\n\ 00112 int8 elev # Elevation\n\ 00113 \n\ 00114 uint8 age # Age of Almanach and Ephemeris\n\ 00115 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\ 00116 # i.e. the reference time may be in the future:\n\ 00117 # ageOfAlm = (age & 0x0f) - 4\n\ 00118 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\ 00119 # i.e. the reference time may be in the future:\n\ 00120 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\ 00121 \n\ 00122 "; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00129 { 00130 ros::serialization::OStream stream(write_ptr, 1000000000); 00131 ros::serialization::serialize(stream, iTOW); 00132 ros::serialization::serialize(stream, week); 00133 ros::serialization::serialize(stream, numVis); 00134 ros::serialization::serialize(stream, numSV); 00135 ros::serialization::serialize(stream, sv); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00140 { 00141 ros::serialization::IStream stream(read_ptr, 1000000000); 00142 ros::serialization::deserialize(stream, iTOW); 00143 ros::serialization::deserialize(stream, week); 00144 ros::serialization::deserialize(stream, numVis); 00145 ros::serialization::deserialize(stream, numSV); 00146 ros::serialization::deserialize(stream, sv); 00147 return stream.getData(); 00148 } 00149 00150 ROS_DEPRECATED virtual uint32_t serializationLength() const 00151 { 00152 uint32_t size = 0; 00153 size += ros::serialization::serializationLength(iTOW); 00154 size += ros::serialization::serializationLength(week); 00155 size += ros::serialization::serializationLength(numVis); 00156 size += ros::serialization::serializationLength(numSV); 00157 size += ros::serialization::serializationLength(sv); 00158 return size; 00159 } 00160 00161 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > Ptr; 00162 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_<ContainerAllocator> const> ConstPtr; 00163 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00164 }; // struct RxmSVSI 00165 typedef ::ublox_msgs::RxmSVSI_<std::allocator<void> > RxmSVSI; 00166 00167 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI> RxmSVSIPtr; 00168 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI const> RxmSVSIConstPtr; 00169 00170 00171 template<typename ContainerAllocator> 00172 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmSVSI_<ContainerAllocator> & v) 00173 { 00174 ros::message_operations::Printer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> >::stream(s, "", v); 00175 return s;} 00176 00177 } // namespace ublox_msgs 00178 00179 namespace ros 00180 { 00181 namespace message_traits 00182 { 00183 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > : public TrueType {}; 00184 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_<ContainerAllocator> const> : public TrueType {}; 00185 template<class ContainerAllocator> 00186 struct MD5Sum< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > { 00187 static const char* value() 00188 { 00189 return "98aa3a36683a81726f4382ea8e0b7c1b"; 00190 } 00191 00192 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); } 00193 static const uint64_t static_value1 = 0x98aa3a36683a8172ULL; 00194 static const uint64_t static_value2 = 0x6f4382ea8e0b7c1bULL; 00195 }; 00196 00197 template<class ContainerAllocator> 00198 struct DataType< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > { 00199 static const char* value() 00200 { 00201 return "ublox_msgs/RxmSVSI"; 00202 } 00203 00204 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); } 00205 }; 00206 00207 template<class ContainerAllocator> 00208 struct Definition< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > { 00209 static const char* value() 00210 { 00211 return "# RXM-SVSI (0x02 0x20)\n\ 00212 # SV Status Info\n\ 00213 #\n\ 00214 # Status of the receiver manager knowledge about GPS Orbit Validity\n\ 00215 #\n\ 00216 \n\ 00217 uint8 CLASS_ID = 2\n\ 00218 uint8 MESSAGE_ID = 32\n\ 00219 \n\ 00220 int32 iTOW # Measurement integer millisecond GPS time of week [ms]\n\ 00221 int16 week # Measurement GPS week number [weeks]\n\ 00222 \n\ 00223 uint8 numVis # Number of visible satellites\n\ 00224 uint8 numSV # Number of per-SV data blocks following\n\ 00225 \n\ 00226 RxmSVSI_SV[] sv\n\ 00227 \n\ 00228 ================================================================================\n\ 00229 MSG: ublox_msgs/RxmSVSI_SV\n\ 00230 # see message RxmSVSI\n\ 00231 #\n\ 00232 \n\ 00233 uint8 svid # Satellite ID\n\ 00234 \n\ 00235 uint8 svFlag # Information Flags\n\ 00236 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\ 00237 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\ 00238 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\ 00239 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\ 00240 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\ 00241 \n\ 00242 int16 azi # Azimuth\n\ 00243 int8 elev # Elevation\n\ 00244 \n\ 00245 uint8 age # Age of Almanach and Ephemeris\n\ 00246 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\ 00247 # i.e. the reference time may be in the future:\n\ 00248 # ageOfAlm = (age & 0x0f) - 4\n\ 00249 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\ 00250 # i.e. the reference time may be in the future:\n\ 00251 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\ 00252 \n\ 00253 "; 00254 } 00255 00256 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 } // namespace message_traits 00260 } // namespace ros 00261 00262 namespace ros 00263 { 00264 namespace serialization 00265 { 00266 00267 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > 00268 { 00269 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00270 { 00271 stream.next(m.iTOW); 00272 stream.next(m.week); 00273 stream.next(m.numVis); 00274 stream.next(m.numSV); 00275 stream.next(m.sv); 00276 } 00277 00278 ROS_DECLARE_ALLINONE_SERIALIZER; 00279 }; // struct RxmSVSI_ 00280 } // namespace serialization 00281 } // namespace ros 00282 00283 namespace ros 00284 { 00285 namespace message_operations 00286 { 00287 00288 template<class ContainerAllocator> 00289 struct Printer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > 00290 { 00291 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmSVSI_<ContainerAllocator> & v) 00292 { 00293 s << indent << "iTOW: "; 00294 Printer<int32_t>::stream(s, indent + " ", v.iTOW); 00295 s << indent << "week: "; 00296 Printer<int16_t>::stream(s, indent + " ", v.week); 00297 s << indent << "numVis: "; 00298 Printer<uint8_t>::stream(s, indent + " ", v.numVis); 00299 s << indent << "numSV: "; 00300 Printer<uint8_t>::stream(s, indent + " ", v.numSV); 00301 s << indent << "sv[]" << std::endl; 00302 for (size_t i = 0; i < v.sv.size(); ++i) 00303 { 00304 s << indent << " sv[" << i << "]: "; 00305 s << std::endl; 00306 s << indent; 00307 Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]); 00308 } 00309 } 00310 }; 00311 00312 00313 } // namespace message_operations 00314 } // namespace ros 00315 00316 #endif // UBLOX_MSGS_MESSAGE_RXMSVSI_H 00317