$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/GNSSDGPSStation.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATION_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATION_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 applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct GNSSDGPSStation_ { 00022 typedef GNSSDGPSStation_<ContainerAllocator> Type; 00023 00024 GNSSDGPSStation_() 00025 : flags(0) 00026 , id(0) 00027 , frequency(0) 00028 , health(0) 00029 , distance(0.0) 00030 , range(0.0) 00031 , uscg_index(0) 00032 , seconds(0) 00033 , modulation_rate(0) 00034 { 00035 } 00036 00037 GNSSDGPSStation_(const ContainerAllocator& _alloc) 00038 : flags(0) 00039 , id(0) 00040 , frequency(0) 00041 , health(0) 00042 , distance(0.0) 00043 , range(0.0) 00044 , uscg_index(0) 00045 , seconds(0) 00046 , modulation_rate(0) 00047 { 00048 } 00049 00050 typedef uint8_t _flags_type; 00051 uint8_t flags; 00052 00053 typedef uint16_t _id_type; 00054 uint16_t id; 00055 00056 typedef uint16_t _frequency_type; 00057 uint16_t frequency; 00058 00059 typedef uint8_t _health_type; 00060 uint8_t health; 00061 00062 typedef float _distance_type; 00063 float distance; 00064 00065 typedef float _range_type; 00066 float range; 00067 00068 typedef uint8_t _uscg_index_type; 00069 uint8_t uscg_index; 00070 00071 typedef uint32_t _seconds_type; 00072 uint32_t seconds; 00073 00074 typedef uint8_t _modulation_rate_type; 00075 uint8_t modulation_rate; 00076 00077 enum { FLAGS_SATELLITE = 1 }; 00078 enum { FLAGS_STATION_PROVIDING_CORRECTIONS = 2 }; 00079 enum { FLAGS_STATION_USED_AS_RTCM_SOURCE = 4 }; 00080 enum { FLAGS_OMNISTAR_STATIONS = 8 }; 00081 enum { HEALTH_NORMAL = 0 }; 00082 enum { HEALTH_NOT_MONITORED = 1 }; 00083 enum { HEALTH_NO_INFO_AVAILABLE = 2 }; 00084 enum { HEALTH_DO_NOT_USE = 3 }; 00085 enum { RATE_25BPS = 0 }; 00086 enum { RATE_50BPS = 1 }; 00087 enum { RATE_100BPS = 2 }; 00088 enum { RATE_200BPS = 3 }; 00089 enum { RATE_600BPS = 4 }; 00090 enum { RATE_1200BPS = 5 }; 00091 enum { RATE_2400BPS = 6 }; 00092 enum { RATE_4800BPS = 7 }; 00093 00094 private: 00095 static const char* __s_getDataType_() { return "applanix_msgs/GNSSDGPSStation"; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00098 00099 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00100 00101 private: 00102 static const char* __s_getMD5Sum_() { return "1f46e4339250717d9fe1a568f6172d8b"; } 00103 public: 00104 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00105 00106 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00107 00108 private: 00109 static const char* __s_getMessageDefinition_() { return "# Part of Group 26\n\ 00110 \n\ 00111 uint8 FLAGS_SATELLITE=1\n\ 00112 uint8 FLAGS_STATION_PROVIDING_CORRECTIONS=2\n\ 00113 uint8 FLAGS_STATION_USED_AS_RTCM_SOURCE=4\n\ 00114 uint8 FLAGS_OMNISTAR_STATIONS=8\n\ 00115 uint8 flags\n\ 00116 \n\ 00117 uint16 id\n\ 00118 uint16 frequency\n\ 00119 \n\ 00120 uint8 HEALTH_NORMAL=0\n\ 00121 uint8 HEALTH_NOT_MONITORED=1\n\ 00122 uint8 HEALTH_NO_INFO_AVAILABLE=2\n\ 00123 uint8 HEALTH_DO_NOT_USE=3\n\ 00124 uint8 health\n\ 00125 \n\ 00126 float32 distance\n\ 00127 float32 range\n\ 00128 uint8 uscg_index\n\ 00129 uint32 seconds\n\ 00130 \n\ 00131 uint8 RATE_25BPS=0\n\ 00132 uint8 RATE_50BPS=1\n\ 00133 uint8 RATE_100BPS=2\n\ 00134 uint8 RATE_200BPS=3\n\ 00135 uint8 RATE_600BPS=4\n\ 00136 uint8 RATE_1200BPS=5\n\ 00137 uint8 RATE_2400BPS=6\n\ 00138 uint8 RATE_4800BPS=7\n\ 00139 uint8 modulation_rate\n\ 00140 \n\ 00141 "; } 00142 public: 00143 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00144 00145 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00146 00147 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00148 { 00149 ros::serialization::OStream stream(write_ptr, 1000000000); 00150 ros::serialization::serialize(stream, flags); 00151 ros::serialization::serialize(stream, id); 00152 ros::serialization::serialize(stream, frequency); 00153 ros::serialization::serialize(stream, health); 00154 ros::serialization::serialize(stream, distance); 00155 ros::serialization::serialize(stream, range); 00156 ros::serialization::serialize(stream, uscg_index); 00157 ros::serialization::serialize(stream, seconds); 00158 ros::serialization::serialize(stream, modulation_rate); 00159 return stream.getData(); 00160 } 00161 00162 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00163 { 00164 ros::serialization::IStream stream(read_ptr, 1000000000); 00165 ros::serialization::deserialize(stream, flags); 00166 ros::serialization::deserialize(stream, id); 00167 ros::serialization::deserialize(stream, frequency); 00168 ros::serialization::deserialize(stream, health); 00169 ros::serialization::deserialize(stream, distance); 00170 ros::serialization::deserialize(stream, range); 00171 ros::serialization::deserialize(stream, uscg_index); 00172 ros::serialization::deserialize(stream, seconds); 00173 ros::serialization::deserialize(stream, modulation_rate); 00174 return stream.getData(); 00175 } 00176 00177 ROS_DEPRECATED virtual uint32_t serializationLength() const 00178 { 00179 uint32_t size = 0; 00180 size += ros::serialization::serializationLength(flags); 00181 size += ros::serialization::serializationLength(id); 00182 size += ros::serialization::serializationLength(frequency); 00183 size += ros::serialization::serializationLength(health); 00184 size += ros::serialization::serializationLength(distance); 00185 size += ros::serialization::serializationLength(range); 00186 size += ros::serialization::serializationLength(uscg_index); 00187 size += ros::serialization::serializationLength(seconds); 00188 size += ros::serialization::serializationLength(modulation_rate); 00189 return size; 00190 } 00191 00192 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > Ptr; 00193 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> const> ConstPtr; 00194 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00195 }; // struct GNSSDGPSStation 00196 typedef ::applanix_msgs::GNSSDGPSStation_<std::allocator<void> > GNSSDGPSStation; 00197 00198 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStation> GNSSDGPSStationPtr; 00199 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStation const> GNSSDGPSStationConstPtr; 00200 00201 00202 template<typename ContainerAllocator> 00203 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> & v) 00204 { 00205 ros::message_operations::Printer< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::stream(s, "", v); 00206 return s;} 00207 00208 } // namespace applanix_msgs 00209 00210 namespace ros 00211 { 00212 namespace message_traits 00213 { 00214 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > : public TrueType {}; 00215 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> const> : public TrueType {}; 00216 template<class ContainerAllocator> 00217 struct MD5Sum< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "1f46e4339250717d9fe1a568f6172d8b"; 00221 } 00222 00223 static const char* value(const ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> &) { return value(); } 00224 static const uint64_t static_value1 = 0x1f46e4339250717dULL; 00225 static const uint64_t static_value2 = 0x9fe1a568f6172d8bULL; 00226 }; 00227 00228 template<class ContainerAllocator> 00229 struct DataType< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "applanix_msgs/GNSSDGPSStation"; 00233 } 00234 00235 static const char* value(const ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 template<class ContainerAllocator> 00239 struct Definition< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > { 00240 static const char* value() 00241 { 00242 return "# Part of Group 26\n\ 00243 \n\ 00244 uint8 FLAGS_SATELLITE=1\n\ 00245 uint8 FLAGS_STATION_PROVIDING_CORRECTIONS=2\n\ 00246 uint8 FLAGS_STATION_USED_AS_RTCM_SOURCE=4\n\ 00247 uint8 FLAGS_OMNISTAR_STATIONS=8\n\ 00248 uint8 flags\n\ 00249 \n\ 00250 uint16 id\n\ 00251 uint16 frequency\n\ 00252 \n\ 00253 uint8 HEALTH_NORMAL=0\n\ 00254 uint8 HEALTH_NOT_MONITORED=1\n\ 00255 uint8 HEALTH_NO_INFO_AVAILABLE=2\n\ 00256 uint8 HEALTH_DO_NOT_USE=3\n\ 00257 uint8 health\n\ 00258 \n\ 00259 float32 distance\n\ 00260 float32 range\n\ 00261 uint8 uscg_index\n\ 00262 uint32 seconds\n\ 00263 \n\ 00264 uint8 RATE_25BPS=0\n\ 00265 uint8 RATE_50BPS=1\n\ 00266 uint8 RATE_100BPS=2\n\ 00267 uint8 RATE_200BPS=3\n\ 00268 uint8 RATE_600BPS=4\n\ 00269 uint8 RATE_1200BPS=5\n\ 00270 uint8 RATE_2400BPS=6\n\ 00271 uint8 RATE_4800BPS=7\n\ 00272 uint8 modulation_rate\n\ 00273 \n\ 00274 "; 00275 } 00276 00277 static const char* value(const ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> &) { return value(); } 00278 }; 00279 00280 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > : public TrueType {}; 00281 } // namespace message_traits 00282 } // namespace ros 00283 00284 namespace ros 00285 { 00286 namespace serialization 00287 { 00288 00289 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > 00290 { 00291 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00292 { 00293 stream.next(m.flags); 00294 stream.next(m.id); 00295 stream.next(m.frequency); 00296 stream.next(m.health); 00297 stream.next(m.distance); 00298 stream.next(m.range); 00299 stream.next(m.uscg_index); 00300 stream.next(m.seconds); 00301 stream.next(m.modulation_rate); 00302 } 00303 00304 ROS_DECLARE_ALLINONE_SERIALIZER; 00305 }; // struct GNSSDGPSStation_ 00306 } // namespace serialization 00307 } // namespace ros 00308 00309 namespace ros 00310 { 00311 namespace message_operations 00312 { 00313 00314 template<class ContainerAllocator> 00315 struct Printer< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> > 00316 { 00317 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> & v) 00318 { 00319 s << indent << "flags: "; 00320 Printer<uint8_t>::stream(s, indent + " ", v.flags); 00321 s << indent << "id: "; 00322 Printer<uint16_t>::stream(s, indent + " ", v.id); 00323 s << indent << "frequency: "; 00324 Printer<uint16_t>::stream(s, indent + " ", v.frequency); 00325 s << indent << "health: "; 00326 Printer<uint8_t>::stream(s, indent + " ", v.health); 00327 s << indent << "distance: "; 00328 Printer<float>::stream(s, indent + " ", v.distance); 00329 s << indent << "range: "; 00330 Printer<float>::stream(s, indent + " ", v.range); 00331 s << indent << "uscg_index: "; 00332 Printer<uint8_t>::stream(s, indent + " ", v.uscg_index); 00333 s << indent << "seconds: "; 00334 Printer<uint32_t>::stream(s, indent + " ", v.seconds); 00335 s << indent << "modulation_rate: "; 00336 Printer<uint8_t>::stream(s, indent + " ", v.modulation_rate); 00337 } 00338 }; 00339 00340 00341 } // namespace message_operations 00342 } // namespace ros 00343 00344 #endif // APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATION_H 00345