$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_SV.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_RXMSVSI_SV_H 00003 #define UBLOX_MSGS_MESSAGE_RXMSVSI_SV_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 RxmSVSI_SV_ { 00022 typedef RxmSVSI_SV_<ContainerAllocator> Type; 00023 00024 RxmSVSI_SV_() 00025 : svid(0) 00026 , svFlag(0) 00027 , azi(0) 00028 , elev(0) 00029 , age(0) 00030 { 00031 } 00032 00033 RxmSVSI_SV_(const ContainerAllocator& _alloc) 00034 : svid(0) 00035 , svFlag(0) 00036 , azi(0) 00037 , elev(0) 00038 , age(0) 00039 { 00040 } 00041 00042 typedef uint8_t _svid_type; 00043 uint8_t svid; 00044 00045 typedef uint8_t _svFlag_type; 00046 uint8_t svFlag; 00047 00048 typedef int16_t _azi_type; 00049 int16_t azi; 00050 00051 typedef int8_t _elev_type; 00052 int8_t elev; 00053 00054 typedef uint8_t _age_type; 00055 uint8_t age; 00056 00057 enum { FLAG_URA_MASK = 15 }; 00058 enum { FLAG_HEALTHY = 16 }; 00059 enum { FLAG_EPH_VAL = 32 }; 00060 enum { FLAG_ALM_VAL = 64 }; 00061 enum { FLAG_NOT_AVAIL = 128 }; 00062 enum { AGE_ALM_MASK = 15 }; 00063 enum { AGE_EPH_MASK = 240 }; 00064 00065 private: 00066 static const char* __s_getDataType_() { return "ublox_msgs/RxmSVSI_SV"; } 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 "b58fccf5178b8e0d3921f5737e017cc6"; } 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 "# see message RxmSVSI\n\ 00081 #\n\ 00082 \n\ 00083 uint8 svid # Satellite ID\n\ 00084 \n\ 00085 uint8 svFlag # Information Flags\n\ 00086 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\ 00087 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\ 00088 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\ 00089 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\ 00090 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\ 00091 \n\ 00092 int16 azi # Azimuth\n\ 00093 int8 elev # Elevation\n\ 00094 \n\ 00095 uint8 age # Age of Almanach and Ephemeris\n\ 00096 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\ 00097 # i.e. the reference time may be in the future:\n\ 00098 # ageOfAlm = (age & 0x0f) - 4\n\ 00099 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\ 00100 # i.e. the reference time may be in the future:\n\ 00101 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\ 00102 \n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, svid); 00113 ros::serialization::serialize(stream, svFlag); 00114 ros::serialization::serialize(stream, azi); 00115 ros::serialization::serialize(stream, elev); 00116 ros::serialization::serialize(stream, age); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00121 { 00122 ros::serialization::IStream stream(read_ptr, 1000000000); 00123 ros::serialization::deserialize(stream, svid); 00124 ros::serialization::deserialize(stream, svFlag); 00125 ros::serialization::deserialize(stream, azi); 00126 ros::serialization::deserialize(stream, elev); 00127 ros::serialization::deserialize(stream, age); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint32_t serializationLength() const 00132 { 00133 uint32_t size = 0; 00134 size += ros::serialization::serializationLength(svid); 00135 size += ros::serialization::serializationLength(svFlag); 00136 size += ros::serialization::serializationLength(azi); 00137 size += ros::serialization::serializationLength(elev); 00138 size += ros::serialization::serializationLength(age); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> const> ConstPtr; 00144 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00145 }; // struct RxmSVSI_SV 00146 typedef ::ublox_msgs::RxmSVSI_SV_<std::allocator<void> > RxmSVSI_SV; 00147 00148 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV> RxmSVSI_SVPtr; 00149 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV const> RxmSVSI_SVConstPtr; 00150 00151 00152 template<typename ContainerAllocator> 00153 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> & v) 00154 { 00155 ros::message_operations::Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::stream(s, "", v); 00156 return s;} 00157 00158 } // namespace ublox_msgs 00159 00160 namespace ros 00161 { 00162 namespace message_traits 00163 { 00164 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > : public TrueType {}; 00165 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> const> : public TrueType {}; 00166 template<class ContainerAllocator> 00167 struct MD5Sum< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "b58fccf5178b8e0d3921f5737e017cc6"; 00171 } 00172 00173 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); } 00174 static const uint64_t static_value1 = 0xb58fccf5178b8e0dULL; 00175 static const uint64_t static_value2 = 0x3921f5737e017cc6ULL; 00176 }; 00177 00178 template<class ContainerAllocator> 00179 struct DataType< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "ublox_msgs/RxmSVSI_SV"; 00183 } 00184 00185 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> 00189 struct Definition< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "# see message RxmSVSI\n\ 00193 #\n\ 00194 \n\ 00195 uint8 svid # Satellite ID\n\ 00196 \n\ 00197 uint8 svFlag # Information Flags\n\ 00198 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\ 00199 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\ 00200 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\ 00201 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\ 00202 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\ 00203 \n\ 00204 int16 azi # Azimuth\n\ 00205 int8 elev # Elevation\n\ 00206 \n\ 00207 uint8 age # Age of Almanach and Ephemeris\n\ 00208 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\ 00209 # i.e. the reference time may be in the future:\n\ 00210 # ageOfAlm = (age & 0x0f) - 4\n\ 00211 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\ 00212 # i.e. the reference time may be in the future:\n\ 00213 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\ 00214 \n\ 00215 "; 00216 } 00217 00218 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); } 00219 }; 00220 00221 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > : public TrueType {}; 00222 } // namespace message_traits 00223 } // namespace ros 00224 00225 namespace ros 00226 { 00227 namespace serialization 00228 { 00229 00230 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > 00231 { 00232 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00233 { 00234 stream.next(m.svid); 00235 stream.next(m.svFlag); 00236 stream.next(m.azi); 00237 stream.next(m.elev); 00238 stream.next(m.age); 00239 } 00240 00241 ROS_DECLARE_ALLINONE_SERIALIZER; 00242 }; // struct RxmSVSI_SV_ 00243 } // namespace serialization 00244 } // namespace ros 00245 00246 namespace ros 00247 { 00248 namespace message_operations 00249 { 00250 00251 template<class ContainerAllocator> 00252 struct Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > 00253 { 00254 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> & v) 00255 { 00256 s << indent << "svid: "; 00257 Printer<uint8_t>::stream(s, indent + " ", v.svid); 00258 s << indent << "svFlag: "; 00259 Printer<uint8_t>::stream(s, indent + " ", v.svFlag); 00260 s << indent << "azi: "; 00261 Printer<int16_t>::stream(s, indent + " ", v.azi); 00262 s << indent << "elev: "; 00263 Printer<int8_t>::stream(s, indent + " ", v.elev); 00264 s << indent << "age: "; 00265 Printer<uint8_t>::stream(s, indent + " ", v.age); 00266 } 00267 }; 00268 00269 00270 } // namespace message_operations 00271 } // namespace ros 00272 00273 #endif // UBLOX_MSGS_MESSAGE_RXMSVSI_SV_H 00274