$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/GNSSDGPSChannelStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSDGPSCHANNELSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSDGPSCHANNELSTATUS_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 GNSSDGPSChannelStatus_ { 00022 typedef GNSSDGPSChannelStatus_<ContainerAllocator> Type; 00023 00024 GNSSDGPSChannelStatus_() 00025 : frequency(0.0) 00026 , acquisition_mode(0) 00027 , status(0) 00028 , rtcm(0) 00029 , snr(0) 00030 , data_rate(0) 00031 , lock(0) 00032 , dgps_source_auto_switching(0) 00033 , provider(0) 00034 { 00035 } 00036 00037 GNSSDGPSChannelStatus_(const ContainerAllocator& _alloc) 00038 : frequency(0.0) 00039 , acquisition_mode(0) 00040 , status(0) 00041 , rtcm(0) 00042 , snr(0) 00043 , data_rate(0) 00044 , lock(0) 00045 , dgps_source_auto_switching(0) 00046 , provider(0) 00047 { 00048 } 00049 00050 typedef double _frequency_type; 00051 double frequency; 00052 00053 typedef uint8_t _acquisition_mode_type; 00054 uint8_t acquisition_mode; 00055 00056 typedef uint8_t _status_type; 00057 uint8_t status; 00058 00059 typedef uint8_t _rtcm_type; 00060 uint8_t rtcm; 00061 00062 typedef uint8_t _snr_type; 00063 uint8_t snr; 00064 00065 typedef uint8_t _data_rate_type; 00066 uint8_t data_rate; 00067 00068 typedef uint8_t _lock_type; 00069 uint8_t lock; 00070 00071 typedef uint8_t _dgps_source_auto_switching_type; 00072 uint8_t dgps_source_auto_switching; 00073 00074 typedef uint8_t _provider_type; 00075 uint8_t provider; 00076 00077 00078 private: 00079 static const char* __s_getDataType_() { return "applanix_msgs/GNSSDGPSChannelStatus"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00082 00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00084 00085 private: 00086 static const char* __s_getMD5Sum_() { return "8441bd37d9364590ce86273785774816"; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00089 00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00091 00092 private: 00093 static const char* __s_getMessageDefinition_() { return "# Part of Group 25.\n\ 00094 # TODO: enums\n\ 00095 \n\ 00096 float64 frequency\n\ 00097 uint8 acquisition_mode\n\ 00098 uint8 status\n\ 00099 uint8 rtcm\n\ 00100 uint8 snr\n\ 00101 uint8 data_rate\n\ 00102 uint8 lock\n\ 00103 uint8 dgps_source_auto_switching\n\ 00104 uint8 provider\n\ 00105 \n\ 00106 \n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, frequency); 00117 ros::serialization::serialize(stream, acquisition_mode); 00118 ros::serialization::serialize(stream, status); 00119 ros::serialization::serialize(stream, rtcm); 00120 ros::serialization::serialize(stream, snr); 00121 ros::serialization::serialize(stream, data_rate); 00122 ros::serialization::serialize(stream, lock); 00123 ros::serialization::serialize(stream, dgps_source_auto_switching); 00124 ros::serialization::serialize(stream, provider); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, frequency); 00132 ros::serialization::deserialize(stream, acquisition_mode); 00133 ros::serialization::deserialize(stream, status); 00134 ros::serialization::deserialize(stream, rtcm); 00135 ros::serialization::deserialize(stream, snr); 00136 ros::serialization::deserialize(stream, data_rate); 00137 ros::serialization::deserialize(stream, lock); 00138 ros::serialization::deserialize(stream, dgps_source_auto_switching); 00139 ros::serialization::deserialize(stream, provider); 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(frequency); 00147 size += ros::serialization::serializationLength(acquisition_mode); 00148 size += ros::serialization::serializationLength(status); 00149 size += ros::serialization::serializationLength(rtcm); 00150 size += ros::serialization::serializationLength(snr); 00151 size += ros::serialization::serializationLength(data_rate); 00152 size += ros::serialization::serializationLength(lock); 00153 size += ros::serialization::serializationLength(dgps_source_auto_switching); 00154 size += ros::serialization::serializationLength(provider); 00155 return size; 00156 } 00157 00158 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > Ptr; 00159 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> const> ConstPtr; 00160 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00161 }; // struct GNSSDGPSChannelStatus 00162 typedef ::applanix_msgs::GNSSDGPSChannelStatus_<std::allocator<void> > GNSSDGPSChannelStatus; 00163 00164 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSChannelStatus> GNSSDGPSChannelStatusPtr; 00165 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSChannelStatus const> GNSSDGPSChannelStatusConstPtr; 00166 00167 00168 template<typename ContainerAllocator> 00169 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> & v) 00170 { 00171 ros::message_operations::Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> >::stream(s, "", v); 00172 return s;} 00173 00174 } // namespace applanix_msgs 00175 00176 namespace ros 00177 { 00178 namespace message_traits 00179 { 00180 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > : public TrueType {}; 00181 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> const> : public TrueType {}; 00182 template<class ContainerAllocator> 00183 struct MD5Sum< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "8441bd37d9364590ce86273785774816"; 00187 } 00188 00189 static const char* value(const ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> &) { return value(); } 00190 static const uint64_t static_value1 = 0x8441bd37d9364590ULL; 00191 static const uint64_t static_value2 = 0xce86273785774816ULL; 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct DataType< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "applanix_msgs/GNSSDGPSChannelStatus"; 00199 } 00200 00201 static const char* value(const ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> &) { return value(); } 00202 }; 00203 00204 template<class ContainerAllocator> 00205 struct Definition< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > { 00206 static const char* value() 00207 { 00208 return "# Part of Group 25.\n\ 00209 # TODO: enums\n\ 00210 \n\ 00211 float64 frequency\n\ 00212 uint8 acquisition_mode\n\ 00213 uint8 status\n\ 00214 uint8 rtcm\n\ 00215 uint8 snr\n\ 00216 uint8 data_rate\n\ 00217 uint8 lock\n\ 00218 uint8 dgps_source_auto_switching\n\ 00219 uint8 provider\n\ 00220 \n\ 00221 \n\ 00222 "; 00223 } 00224 00225 static const char* value(const ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> &) { return value(); } 00226 }; 00227 00228 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > : public TrueType {}; 00229 } // namespace message_traits 00230 } // namespace ros 00231 00232 namespace ros 00233 { 00234 namespace serialization 00235 { 00236 00237 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > 00238 { 00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00240 { 00241 stream.next(m.frequency); 00242 stream.next(m.acquisition_mode); 00243 stream.next(m.status); 00244 stream.next(m.rtcm); 00245 stream.next(m.snr); 00246 stream.next(m.data_rate); 00247 stream.next(m.lock); 00248 stream.next(m.dgps_source_auto_switching); 00249 stream.next(m.provider); 00250 } 00251 00252 ROS_DECLARE_ALLINONE_SERIALIZER; 00253 }; // struct GNSSDGPSChannelStatus_ 00254 } // namespace serialization 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace message_operations 00260 { 00261 00262 template<class ContainerAllocator> 00263 struct Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> > 00264 { 00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> & v) 00266 { 00267 s << indent << "frequency: "; 00268 Printer<double>::stream(s, indent + " ", v.frequency); 00269 s << indent << "acquisition_mode: "; 00270 Printer<uint8_t>::stream(s, indent + " ", v.acquisition_mode); 00271 s << indent << "status: "; 00272 Printer<uint8_t>::stream(s, indent + " ", v.status); 00273 s << indent << "rtcm: "; 00274 Printer<uint8_t>::stream(s, indent + " ", v.rtcm); 00275 s << indent << "snr: "; 00276 Printer<uint8_t>::stream(s, indent + " ", v.snr); 00277 s << indent << "data_rate: "; 00278 Printer<uint8_t>::stream(s, indent + " ", v.data_rate); 00279 s << indent << "lock: "; 00280 Printer<uint8_t>::stream(s, indent + " ", v.lock); 00281 s << indent << "dgps_source_auto_switching: "; 00282 Printer<uint8_t>::stream(s, indent + " ", v.dgps_source_auto_switching); 00283 s << indent << "provider: "; 00284 Printer<uint8_t>::stream(s, indent + " ", v.provider); 00285 } 00286 }; 00287 00288 00289 } // namespace message_operations 00290 } // namespace ros 00291 00292 #endif // APPLANIX_MSGS_MESSAGE_GNSSDGPSCHANNELSTATUS_H 00293