$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/GNSSAuxStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSAUXSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSAUXSTATUS_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 "applanix_msgs/TimeDistance.h" 00018 #include "applanix_msgs/GNSSChannelStatus.h" 00019 00020 namespace applanix_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct GNSSAuxStatus_ { 00024 typedef GNSSAuxStatus_<ContainerAllocator> Type; 00025 00026 GNSSAuxStatus_() 00027 : td() 00028 , solution_status(0) 00029 , channels_count(0) 00030 , reserved(0) 00031 , channels() 00032 , hdop(0.0) 00033 , vdop(0.0) 00034 , dgps_latency(0.0) 00035 , dgps_reference_id(0) 00036 , gps_week(0) 00037 , gps_time_offset(0.0) 00038 , gnss_latency(0.0) 00039 , geoidal_separation(0.0) 00040 , nmea_messages_received(0) 00041 , in_use(0) 00042 { 00043 } 00044 00045 GNSSAuxStatus_(const ContainerAllocator& _alloc) 00046 : td(_alloc) 00047 , solution_status(0) 00048 , channels_count(0) 00049 , reserved(0) 00050 , channels(_alloc) 00051 , hdop(0.0) 00052 , vdop(0.0) 00053 , dgps_latency(0.0) 00054 , dgps_reference_id(0) 00055 , gps_week(0) 00056 , gps_time_offset(0.0) 00057 , gnss_latency(0.0) 00058 , geoidal_separation(0.0) 00059 , nmea_messages_received(0) 00060 , in_use(0) 00061 { 00062 } 00063 00064 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00065 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00066 00067 typedef uint8_t _solution_status_type; 00068 uint8_t solution_status; 00069 00070 typedef uint8_t _channels_count_type; 00071 uint8_t channels_count; 00072 00073 typedef uint16_t _reserved_type; 00074 uint16_t reserved; 00075 00076 typedef std::vector< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::other > _channels_type; 00077 std::vector< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::other > channels; 00078 00079 typedef float _hdop_type; 00080 float hdop; 00081 00082 typedef float _vdop_type; 00083 float vdop; 00084 00085 typedef float _dgps_latency_type; 00086 float dgps_latency; 00087 00088 typedef uint16_t _dgps_reference_id_type; 00089 uint16_t dgps_reference_id; 00090 00091 typedef uint32_t _gps_week_type; 00092 uint32_t gps_week; 00093 00094 typedef double _gps_time_offset_type; 00095 double gps_time_offset; 00096 00097 typedef float _gnss_latency_type; 00098 float gnss_latency; 00099 00100 typedef float _geoidal_separation_type; 00101 float geoidal_separation; 00102 00103 typedef uint16_t _nmea_messages_received_type; 00104 uint16_t nmea_messages_received; 00105 00106 typedef uint8_t _in_use_type; 00107 uint8_t in_use; 00108 00109 enum { SOLUTION_UNKNOWN = 255 }; 00110 enum { SOLUTION_NO_DATA = 0 }; 00111 enum { SOLUTION_HORIZONTAL_CA = 1 }; 00112 enum { SOLUTION_3D_CA = 2 }; 00113 enum { SOLUTION_HORIZONTAL_DGPS = 3 }; 00114 enum { SOLUTION_3D_DGPS = 4 }; 00115 enum { SOLUTION_FLOAT_RTK = 5 }; 00116 enum { SOLUTION_WIDE_LANE_RTK = 6 }; 00117 enum { SOLUTION_NARROW_LANE_RTK = 7 }; 00118 enum { SOLUTION_P_CODE = 8 }; 00119 enum { SOLUTION_OMNISTAR_HP = 9 }; 00120 enum { SOLUTION_OMNISTAR_XP = 10 }; 00121 enum { SOLUTION_OMNISTAR_VBS = 11 }; 00122 00123 ROS_DEPRECATED uint32_t get_channels_size() const { return (uint32_t)channels.size(); } 00124 ROS_DEPRECATED void set_channels_size(uint32_t size) { channels.resize((size_t)size); } 00125 ROS_DEPRECATED void get_channels_vec(std::vector< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::other > & vec) const { vec = this->channels; } 00126 ROS_DEPRECATED void set_channels_vec(const std::vector< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::other > & vec) { this->channels = vec; } 00127 private: 00128 static const char* __s_getDataType_() { return "applanix_msgs/GNSSAuxStatus"; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00131 00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00133 00134 private: 00135 static const char* __s_getMD5Sum_() { return "7aa22394742b953a48015e9d1c3d090f"; } 00136 public: 00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00138 00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00140 00141 private: 00142 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00143 \n\ 00144 uint8 SOLUTION_UNKNOWN=255\n\ 00145 uint8 SOLUTION_NO_DATA=0\n\ 00146 uint8 SOLUTION_HORIZONTAL_CA=1\n\ 00147 uint8 SOLUTION_3D_CA=2\n\ 00148 uint8 SOLUTION_HORIZONTAL_DGPS=3\n\ 00149 uint8 SOLUTION_3D_DGPS=4\n\ 00150 uint8 SOLUTION_FLOAT_RTK=5\n\ 00151 uint8 SOLUTION_WIDE_LANE_RTK=6\n\ 00152 uint8 SOLUTION_NARROW_LANE_RTK=7\n\ 00153 uint8 SOLUTION_P_CODE=8\n\ 00154 uint8 SOLUTION_OMNISTAR_HP=9\n\ 00155 uint8 SOLUTION_OMNISTAR_XP=10\n\ 00156 uint8 SOLUTION_OMNISTAR_VBS=11\n\ 00157 uint8 solution_status\n\ 00158 \n\ 00159 uint8 channels_count\n\ 00160 uint16 reserved\n\ 00161 GNSSChannelStatus[] channels\n\ 00162 \n\ 00163 float32 hdop\n\ 00164 float32 vdop\n\ 00165 float32 dgps_latency\n\ 00166 uint16 dgps_reference_id\n\ 00167 \n\ 00168 uint32 gps_week\n\ 00169 float64 gps_time_offset\n\ 00170 \n\ 00171 float32 gnss_latency\n\ 00172 float32 geoidal_separation\n\ 00173 \n\ 00174 #TODO: enum\n\ 00175 uint16 nmea_messages_received\n\ 00176 uint8 in_use\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: applanix_msgs/TimeDistance\n\ 00180 float64 time1\n\ 00181 float64 time2\n\ 00182 float64 distance\n\ 00183 uint8 time_types\n\ 00184 uint8 distance_type\n\ 00185 \n\ 00186 ================================================================================\n\ 00187 MSG: applanix_msgs/GNSSChannelStatus\n\ 00188 uint16 sv_prn\n\ 00189 \n\ 00190 uint16 STATUS_L1_IDLE=0\n\ 00191 uint16 STATUS_L1_ACQUISITION=1\n\ 00192 uint16 STATUS_L1_CODE_LOCK=3\n\ 00193 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00194 uint16 STATUS_L2_IDLE=6\n\ 00195 uint16 STATUS_L2_ACQUISITION=8\n\ 00196 uint16 STATUS_L2_CODE_LOCK=9\n\ 00197 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00198 uint16 status\n\ 00199 \n\ 00200 float32 sv_azimuth\n\ 00201 float32 sv_elevation\n\ 00202 float32 sv_l1_snr\n\ 00203 float32 sv_l2_snr\n\ 00204 \n\ 00205 "; } 00206 public: 00207 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00208 00209 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00210 00211 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00212 { 00213 ros::serialization::OStream stream(write_ptr, 1000000000); 00214 ros::serialization::serialize(stream, td); 00215 ros::serialization::serialize(stream, solution_status); 00216 ros::serialization::serialize(stream, channels_count); 00217 ros::serialization::serialize(stream, reserved); 00218 ros::serialization::serialize(stream, channels); 00219 ros::serialization::serialize(stream, hdop); 00220 ros::serialization::serialize(stream, vdop); 00221 ros::serialization::serialize(stream, dgps_latency); 00222 ros::serialization::serialize(stream, dgps_reference_id); 00223 ros::serialization::serialize(stream, gps_week); 00224 ros::serialization::serialize(stream, gps_time_offset); 00225 ros::serialization::serialize(stream, gnss_latency); 00226 ros::serialization::serialize(stream, geoidal_separation); 00227 ros::serialization::serialize(stream, nmea_messages_received); 00228 ros::serialization::serialize(stream, in_use); 00229 return stream.getData(); 00230 } 00231 00232 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00233 { 00234 ros::serialization::IStream stream(read_ptr, 1000000000); 00235 ros::serialization::deserialize(stream, td); 00236 ros::serialization::deserialize(stream, solution_status); 00237 ros::serialization::deserialize(stream, channels_count); 00238 ros::serialization::deserialize(stream, reserved); 00239 ros::serialization::deserialize(stream, channels); 00240 ros::serialization::deserialize(stream, hdop); 00241 ros::serialization::deserialize(stream, vdop); 00242 ros::serialization::deserialize(stream, dgps_latency); 00243 ros::serialization::deserialize(stream, dgps_reference_id); 00244 ros::serialization::deserialize(stream, gps_week); 00245 ros::serialization::deserialize(stream, gps_time_offset); 00246 ros::serialization::deserialize(stream, gnss_latency); 00247 ros::serialization::deserialize(stream, geoidal_separation); 00248 ros::serialization::deserialize(stream, nmea_messages_received); 00249 ros::serialization::deserialize(stream, in_use); 00250 return stream.getData(); 00251 } 00252 00253 ROS_DEPRECATED virtual uint32_t serializationLength() const 00254 { 00255 uint32_t size = 0; 00256 size += ros::serialization::serializationLength(td); 00257 size += ros::serialization::serializationLength(solution_status); 00258 size += ros::serialization::serializationLength(channels_count); 00259 size += ros::serialization::serializationLength(reserved); 00260 size += ros::serialization::serializationLength(channels); 00261 size += ros::serialization::serializationLength(hdop); 00262 size += ros::serialization::serializationLength(vdop); 00263 size += ros::serialization::serializationLength(dgps_latency); 00264 size += ros::serialization::serializationLength(dgps_reference_id); 00265 size += ros::serialization::serializationLength(gps_week); 00266 size += ros::serialization::serializationLength(gps_time_offset); 00267 size += ros::serialization::serializationLength(gnss_latency); 00268 size += ros::serialization::serializationLength(geoidal_separation); 00269 size += ros::serialization::serializationLength(nmea_messages_received); 00270 size += ros::serialization::serializationLength(in_use); 00271 return size; 00272 } 00273 00274 typedef boost::shared_ptr< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > Ptr; 00275 typedef boost::shared_ptr< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> const> ConstPtr; 00276 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00277 }; // struct GNSSAuxStatus 00278 typedef ::applanix_msgs::GNSSAuxStatus_<std::allocator<void> > GNSSAuxStatus; 00279 00280 typedef boost::shared_ptr< ::applanix_msgs::GNSSAuxStatus> GNSSAuxStatusPtr; 00281 typedef boost::shared_ptr< ::applanix_msgs::GNSSAuxStatus const> GNSSAuxStatusConstPtr; 00282 00283 00284 template<typename ContainerAllocator> 00285 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> & v) 00286 { 00287 ros::message_operations::Printer< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> >::stream(s, "", v); 00288 return s;} 00289 00290 } // namespace applanix_msgs 00291 00292 namespace ros 00293 { 00294 namespace message_traits 00295 { 00296 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > : public TrueType {}; 00297 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> const> : public TrueType {}; 00298 template<class ContainerAllocator> 00299 struct MD5Sum< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "7aa22394742b953a48015e9d1c3d090f"; 00303 } 00304 00305 static const char* value(const ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> &) { return value(); } 00306 static const uint64_t static_value1 = 0x7aa22394742b953aULL; 00307 static const uint64_t static_value2 = 0x48015e9d1c3d090fULL; 00308 }; 00309 00310 template<class ContainerAllocator> 00311 struct DataType< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > { 00312 static const char* value() 00313 { 00314 return "applanix_msgs/GNSSAuxStatus"; 00315 } 00316 00317 static const char* value(const ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> &) { return value(); } 00318 }; 00319 00320 template<class ContainerAllocator> 00321 struct Definition< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > { 00322 static const char* value() 00323 { 00324 return "TimeDistance td\n\ 00325 \n\ 00326 uint8 SOLUTION_UNKNOWN=255\n\ 00327 uint8 SOLUTION_NO_DATA=0\n\ 00328 uint8 SOLUTION_HORIZONTAL_CA=1\n\ 00329 uint8 SOLUTION_3D_CA=2\n\ 00330 uint8 SOLUTION_HORIZONTAL_DGPS=3\n\ 00331 uint8 SOLUTION_3D_DGPS=4\n\ 00332 uint8 SOLUTION_FLOAT_RTK=5\n\ 00333 uint8 SOLUTION_WIDE_LANE_RTK=6\n\ 00334 uint8 SOLUTION_NARROW_LANE_RTK=7\n\ 00335 uint8 SOLUTION_P_CODE=8\n\ 00336 uint8 SOLUTION_OMNISTAR_HP=9\n\ 00337 uint8 SOLUTION_OMNISTAR_XP=10\n\ 00338 uint8 SOLUTION_OMNISTAR_VBS=11\n\ 00339 uint8 solution_status\n\ 00340 \n\ 00341 uint8 channels_count\n\ 00342 uint16 reserved\n\ 00343 GNSSChannelStatus[] channels\n\ 00344 \n\ 00345 float32 hdop\n\ 00346 float32 vdop\n\ 00347 float32 dgps_latency\n\ 00348 uint16 dgps_reference_id\n\ 00349 \n\ 00350 uint32 gps_week\n\ 00351 float64 gps_time_offset\n\ 00352 \n\ 00353 float32 gnss_latency\n\ 00354 float32 geoidal_separation\n\ 00355 \n\ 00356 #TODO: enum\n\ 00357 uint16 nmea_messages_received\n\ 00358 uint8 in_use\n\ 00359 \n\ 00360 ================================================================================\n\ 00361 MSG: applanix_msgs/TimeDistance\n\ 00362 float64 time1\n\ 00363 float64 time2\n\ 00364 float64 distance\n\ 00365 uint8 time_types\n\ 00366 uint8 distance_type\n\ 00367 \n\ 00368 ================================================================================\n\ 00369 MSG: applanix_msgs/GNSSChannelStatus\n\ 00370 uint16 sv_prn\n\ 00371 \n\ 00372 uint16 STATUS_L1_IDLE=0\n\ 00373 uint16 STATUS_L1_ACQUISITION=1\n\ 00374 uint16 STATUS_L1_CODE_LOCK=3\n\ 00375 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00376 uint16 STATUS_L2_IDLE=6\n\ 00377 uint16 STATUS_L2_ACQUISITION=8\n\ 00378 uint16 STATUS_L2_CODE_LOCK=9\n\ 00379 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00380 uint16 status\n\ 00381 \n\ 00382 float32 sv_azimuth\n\ 00383 float32 sv_elevation\n\ 00384 float32 sv_l1_snr\n\ 00385 float32 sv_l2_snr\n\ 00386 \n\ 00387 "; 00388 } 00389 00390 static const char* value(const ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> &) { return value(); } 00391 }; 00392 00393 } // namespace message_traits 00394 } // namespace ros 00395 00396 namespace ros 00397 { 00398 namespace serialization 00399 { 00400 00401 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > 00402 { 00403 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00404 { 00405 stream.next(m.td); 00406 stream.next(m.solution_status); 00407 stream.next(m.channels_count); 00408 stream.next(m.reserved); 00409 stream.next(m.channels); 00410 stream.next(m.hdop); 00411 stream.next(m.vdop); 00412 stream.next(m.dgps_latency); 00413 stream.next(m.dgps_reference_id); 00414 stream.next(m.gps_week); 00415 stream.next(m.gps_time_offset); 00416 stream.next(m.gnss_latency); 00417 stream.next(m.geoidal_separation); 00418 stream.next(m.nmea_messages_received); 00419 stream.next(m.in_use); 00420 } 00421 00422 ROS_DECLARE_ALLINONE_SERIALIZER; 00423 }; // struct GNSSAuxStatus_ 00424 } // namespace serialization 00425 } // namespace ros 00426 00427 namespace ros 00428 { 00429 namespace message_operations 00430 { 00431 00432 template<class ContainerAllocator> 00433 struct Printer< ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> > 00434 { 00435 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSAuxStatus_<ContainerAllocator> & v) 00436 { 00437 s << indent << "td: "; 00438 s << std::endl; 00439 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00440 s << indent << "solution_status: "; 00441 Printer<uint8_t>::stream(s, indent + " ", v.solution_status); 00442 s << indent << "channels_count: "; 00443 Printer<uint8_t>::stream(s, indent + " ", v.channels_count); 00444 s << indent << "reserved: "; 00445 Printer<uint16_t>::stream(s, indent + " ", v.reserved); 00446 s << indent << "channels[]" << std::endl; 00447 for (size_t i = 0; i < v.channels.size(); ++i) 00448 { 00449 s << indent << " channels[" << i << "]: "; 00450 s << std::endl; 00451 s << indent; 00452 Printer< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channels[i]); 00453 } 00454 s << indent << "hdop: "; 00455 Printer<float>::stream(s, indent + " ", v.hdop); 00456 s << indent << "vdop: "; 00457 Printer<float>::stream(s, indent + " ", v.vdop); 00458 s << indent << "dgps_latency: "; 00459 Printer<float>::stream(s, indent + " ", v.dgps_latency); 00460 s << indent << "dgps_reference_id: "; 00461 Printer<uint16_t>::stream(s, indent + " ", v.dgps_reference_id); 00462 s << indent << "gps_week: "; 00463 Printer<uint32_t>::stream(s, indent + " ", v.gps_week); 00464 s << indent << "gps_time_offset: "; 00465 Printer<double>::stream(s, indent + " ", v.gps_time_offset); 00466 s << indent << "gnss_latency: "; 00467 Printer<float>::stream(s, indent + " ", v.gnss_latency); 00468 s << indent << "geoidal_separation: "; 00469 Printer<float>::stream(s, indent + " ", v.geoidal_separation); 00470 s << indent << "nmea_messages_received: "; 00471 Printer<uint16_t>::stream(s, indent + " ", v.nmea_messages_received); 00472 s << indent << "in_use: "; 00473 Printer<uint8_t>::stream(s, indent + " ", v.in_use); 00474 } 00475 }; 00476 00477 00478 } // namespace message_operations 00479 } // namespace ros 00480 00481 #endif // APPLANIX_MSGS_MESSAGE_GNSSAUXSTATUS_H 00482