$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/GNSSChannelStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSCHANNELSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSCHANNELSTATUS_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 GNSSChannelStatus_ { 00022 typedef GNSSChannelStatus_<ContainerAllocator> Type; 00023 00024 GNSSChannelStatus_() 00025 : sv_prn(0) 00026 , status(0) 00027 , sv_azimuth(0.0) 00028 , sv_elevation(0.0) 00029 , sv_l1_snr(0.0) 00030 , sv_l2_snr(0.0) 00031 { 00032 } 00033 00034 GNSSChannelStatus_(const ContainerAllocator& _alloc) 00035 : sv_prn(0) 00036 , status(0) 00037 , sv_azimuth(0.0) 00038 , sv_elevation(0.0) 00039 , sv_l1_snr(0.0) 00040 , sv_l2_snr(0.0) 00041 { 00042 } 00043 00044 typedef uint16_t _sv_prn_type; 00045 uint16_t sv_prn; 00046 00047 typedef uint16_t _status_type; 00048 uint16_t status; 00049 00050 typedef float _sv_azimuth_type; 00051 float sv_azimuth; 00052 00053 typedef float _sv_elevation_type; 00054 float sv_elevation; 00055 00056 typedef float _sv_l1_snr_type; 00057 float sv_l1_snr; 00058 00059 typedef float _sv_l2_snr_type; 00060 float sv_l2_snr; 00061 00062 enum { STATUS_L1_IDLE = 0 }; 00063 enum { STATUS_L1_ACQUISITION = 1 }; 00064 enum { STATUS_L1_CODE_LOCK = 3 }; 00065 enum { STATUS_L1_PHASE_LOCK = 5 }; 00066 enum { STATUS_L2_IDLE = 6 }; 00067 enum { STATUS_L2_ACQUISITION = 8 }; 00068 enum { STATUS_L2_CODE_LOCK = 9 }; 00069 enum { STATUS_L2_PHASE_LOCK = 11 }; 00070 00071 private: 00072 static const char* __s_getDataType_() { return "applanix_msgs/GNSSChannelStatus"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00075 00076 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00077 00078 private: 00079 static const char* __s_getMD5Sum_() { return "e704e6e58bbc7d5b1e03c4dc44b6ebbf"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00082 00083 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00084 00085 private: 00086 static const char* __s_getMessageDefinition_() { return "uint16 sv_prn\n\ 00087 \n\ 00088 uint16 STATUS_L1_IDLE=0\n\ 00089 uint16 STATUS_L1_ACQUISITION=1\n\ 00090 uint16 STATUS_L1_CODE_LOCK=3\n\ 00091 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00092 uint16 STATUS_L2_IDLE=6\n\ 00093 uint16 STATUS_L2_ACQUISITION=8\n\ 00094 uint16 STATUS_L2_CODE_LOCK=9\n\ 00095 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00096 uint16 status\n\ 00097 \n\ 00098 float32 sv_azimuth\n\ 00099 float32 sv_elevation\n\ 00100 float32 sv_l1_snr\n\ 00101 float32 sv_l2_snr\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, sv_prn); 00113 ros::serialization::serialize(stream, status); 00114 ros::serialization::serialize(stream, sv_azimuth); 00115 ros::serialization::serialize(stream, sv_elevation); 00116 ros::serialization::serialize(stream, sv_l1_snr); 00117 ros::serialization::serialize(stream, sv_l2_snr); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00122 { 00123 ros::serialization::IStream stream(read_ptr, 1000000000); 00124 ros::serialization::deserialize(stream, sv_prn); 00125 ros::serialization::deserialize(stream, status); 00126 ros::serialization::deserialize(stream, sv_azimuth); 00127 ros::serialization::deserialize(stream, sv_elevation); 00128 ros::serialization::deserialize(stream, sv_l1_snr); 00129 ros::serialization::deserialize(stream, sv_l2_snr); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(sv_prn); 00137 size += ros::serialization::serializationLength(status); 00138 size += ros::serialization::serializationLength(sv_azimuth); 00139 size += ros::serialization::serializationLength(sv_elevation); 00140 size += ros::serialization::serializationLength(sv_l1_snr); 00141 size += ros::serialization::serializationLength(sv_l2_snr); 00142 return size; 00143 } 00144 00145 typedef boost::shared_ptr< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > Ptr; 00146 typedef boost::shared_ptr< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> const> ConstPtr; 00147 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00148 }; // struct GNSSChannelStatus 00149 typedef ::applanix_msgs::GNSSChannelStatus_<std::allocator<void> > GNSSChannelStatus; 00150 00151 typedef boost::shared_ptr< ::applanix_msgs::GNSSChannelStatus> GNSSChannelStatusPtr; 00152 typedef boost::shared_ptr< ::applanix_msgs::GNSSChannelStatus const> GNSSChannelStatusConstPtr; 00153 00154 00155 template<typename ContainerAllocator> 00156 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> & v) 00157 { 00158 ros::message_operations::Printer< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::stream(s, "", v); 00159 return s;} 00160 00161 } // namespace applanix_msgs 00162 00163 namespace ros 00164 { 00165 namespace message_traits 00166 { 00167 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > : public TrueType {}; 00168 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> const> : public TrueType {}; 00169 template<class ContainerAllocator> 00170 struct MD5Sum< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "e704e6e58bbc7d5b1e03c4dc44b6ebbf"; 00174 } 00175 00176 static const char* value(const ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> &) { return value(); } 00177 static const uint64_t static_value1 = 0xe704e6e58bbc7d5bULL; 00178 static const uint64_t static_value2 = 0x1e03c4dc44b6ebbfULL; 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct DataType< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "applanix_msgs/GNSSChannelStatus"; 00186 } 00187 00188 static const char* value(const ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct Definition< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "uint16 sv_prn\n\ 00196 \n\ 00197 uint16 STATUS_L1_IDLE=0\n\ 00198 uint16 STATUS_L1_ACQUISITION=1\n\ 00199 uint16 STATUS_L1_CODE_LOCK=3\n\ 00200 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00201 uint16 STATUS_L2_IDLE=6\n\ 00202 uint16 STATUS_L2_ACQUISITION=8\n\ 00203 uint16 STATUS_L2_CODE_LOCK=9\n\ 00204 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00205 uint16 status\n\ 00206 \n\ 00207 float32 sv_azimuth\n\ 00208 float32 sv_elevation\n\ 00209 float32 sv_l1_snr\n\ 00210 float32 sv_l2_snr\n\ 00211 \n\ 00212 "; 00213 } 00214 00215 static const char* value(const ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> &) { return value(); } 00216 }; 00217 00218 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > : public TrueType {}; 00219 } // namespace message_traits 00220 } // namespace ros 00221 00222 namespace ros 00223 { 00224 namespace serialization 00225 { 00226 00227 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > 00228 { 00229 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00230 { 00231 stream.next(m.sv_prn); 00232 stream.next(m.status); 00233 stream.next(m.sv_azimuth); 00234 stream.next(m.sv_elevation); 00235 stream.next(m.sv_l1_snr); 00236 stream.next(m.sv_l2_snr); 00237 } 00238 00239 ROS_DECLARE_ALLINONE_SERIALIZER; 00240 }; // struct GNSSChannelStatus_ 00241 } // namespace serialization 00242 } // namespace ros 00243 00244 namespace ros 00245 { 00246 namespace message_operations 00247 { 00248 00249 template<class ContainerAllocator> 00250 struct Printer< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> > 00251 { 00252 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> & v) 00253 { 00254 s << indent << "sv_prn: "; 00255 Printer<uint16_t>::stream(s, indent + " ", v.sv_prn); 00256 s << indent << "status: "; 00257 Printer<uint16_t>::stream(s, indent + " ", v.status); 00258 s << indent << "sv_azimuth: "; 00259 Printer<float>::stream(s, indent + " ", v.sv_azimuth); 00260 s << indent << "sv_elevation: "; 00261 Printer<float>::stream(s, indent + " ", v.sv_elevation); 00262 s << indent << "sv_l1_snr: "; 00263 Printer<float>::stream(s, indent + " ", v.sv_l1_snr); 00264 s << indent << "sv_l2_snr: "; 00265 Printer<float>::stream(s, indent + " ", v.sv_l2_snr); 00266 } 00267 }; 00268 00269 00270 } // namespace message_operations 00271 } // namespace ros 00272 00273 #endif // APPLANIX_MSGS_MESSAGE_GNSSCHANNELSTATUS_H 00274