$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/GNSSStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSSTATUS_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 GNSSStatus_ { 00024 typedef GNSSStatus_<ContainerAllocator> Type; 00025 00026 GNSSStatus_() 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 , gnss_type(0) 00041 , gnss_status(0) 00042 { 00043 } 00044 00045 GNSSStatus_(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 , gnss_type(0) 00060 , gnss_status(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 _gnss_type_type; 00104 uint16_t gnss_type; 00105 00106 typedef uint32_t _gnss_status_type; 00107 uint32_t gnss_status; 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 enum { TYPE_NONE = 0 }; 00123 enum { TYPE_TRIMBLE_BD960 = 16 }; 00124 00125 ROS_DEPRECATED uint32_t get_channels_size() const { return (uint32_t)channels.size(); } 00126 ROS_DEPRECATED void set_channels_size(uint32_t size) { channels.resize((size_t)size); } 00127 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; } 00128 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; } 00129 private: 00130 static const char* __s_getDataType_() { return "applanix_msgs/GNSSStatus"; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00133 00134 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00135 00136 private: 00137 static const char* __s_getMD5Sum_() { return "025a8154ac59effa20d8e6dc5c1ba784"; } 00138 public: 00139 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00140 00141 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00142 00143 private: 00144 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00145 \n\ 00146 uint8 SOLUTION_UNKNOWN=255\n\ 00147 uint8 SOLUTION_NO_DATA=0\n\ 00148 uint8 SOLUTION_HORIZONTAL_CA=1\n\ 00149 uint8 SOLUTION_3D_CA=2\n\ 00150 uint8 SOLUTION_HORIZONTAL_DGPS=3\n\ 00151 uint8 SOLUTION_3D_DGPS=4\n\ 00152 uint8 SOLUTION_FLOAT_RTK=5\n\ 00153 uint8 SOLUTION_WIDE_LANE_RTK=6\n\ 00154 uint8 SOLUTION_NARROW_LANE_RTK=7\n\ 00155 uint8 SOLUTION_P_CODE=8\n\ 00156 uint8 SOLUTION_OMNISTAR_HP=9\n\ 00157 uint8 SOLUTION_OMNISTAR_XP=10\n\ 00158 uint8 SOLUTION_OMNISTAR_VBS=11\n\ 00159 uint8 solution_status\n\ 00160 \n\ 00161 uint8 channels_count\n\ 00162 uint16 reserved\n\ 00163 GNSSChannelStatus[] channels\n\ 00164 \n\ 00165 float32 hdop\n\ 00166 float32 vdop\n\ 00167 float32 dgps_latency\n\ 00168 uint16 dgps_reference_id\n\ 00169 \n\ 00170 uint32 gps_week\n\ 00171 float64 gps_time_offset\n\ 00172 \n\ 00173 float32 gnss_latency\n\ 00174 float32 geoidal_separation\n\ 00175 \n\ 00176 uint16 TYPE_NONE=0\n\ 00177 uint16 TYPE_TRIMBLE_BD960=16\n\ 00178 uint16 gnss_type\n\ 00179 \n\ 00180 # Receiver-dependent.\n\ 00181 uint32 gnss_status\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: applanix_msgs/TimeDistance\n\ 00185 float64 time1\n\ 00186 float64 time2\n\ 00187 float64 distance\n\ 00188 uint8 time_types\n\ 00189 uint8 distance_type\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: applanix_msgs/GNSSChannelStatus\n\ 00193 uint16 sv_prn\n\ 00194 \n\ 00195 uint16 STATUS_L1_IDLE=0\n\ 00196 uint16 STATUS_L1_ACQUISITION=1\n\ 00197 uint16 STATUS_L1_CODE_LOCK=3\n\ 00198 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00199 uint16 STATUS_L2_IDLE=6\n\ 00200 uint16 STATUS_L2_ACQUISITION=8\n\ 00201 uint16 STATUS_L2_CODE_LOCK=9\n\ 00202 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00203 uint16 status\n\ 00204 \n\ 00205 float32 sv_azimuth\n\ 00206 float32 sv_elevation\n\ 00207 float32 sv_l1_snr\n\ 00208 float32 sv_l2_snr\n\ 00209 \n\ 00210 "; } 00211 public: 00212 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00213 00214 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00215 00216 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00217 { 00218 ros::serialization::OStream stream(write_ptr, 1000000000); 00219 ros::serialization::serialize(stream, td); 00220 ros::serialization::serialize(stream, solution_status); 00221 ros::serialization::serialize(stream, channels_count); 00222 ros::serialization::serialize(stream, reserved); 00223 ros::serialization::serialize(stream, channels); 00224 ros::serialization::serialize(stream, hdop); 00225 ros::serialization::serialize(stream, vdop); 00226 ros::serialization::serialize(stream, dgps_latency); 00227 ros::serialization::serialize(stream, dgps_reference_id); 00228 ros::serialization::serialize(stream, gps_week); 00229 ros::serialization::serialize(stream, gps_time_offset); 00230 ros::serialization::serialize(stream, gnss_latency); 00231 ros::serialization::serialize(stream, geoidal_separation); 00232 ros::serialization::serialize(stream, gnss_type); 00233 ros::serialization::serialize(stream, gnss_status); 00234 return stream.getData(); 00235 } 00236 00237 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00238 { 00239 ros::serialization::IStream stream(read_ptr, 1000000000); 00240 ros::serialization::deserialize(stream, td); 00241 ros::serialization::deserialize(stream, solution_status); 00242 ros::serialization::deserialize(stream, channels_count); 00243 ros::serialization::deserialize(stream, reserved); 00244 ros::serialization::deserialize(stream, channels); 00245 ros::serialization::deserialize(stream, hdop); 00246 ros::serialization::deserialize(stream, vdop); 00247 ros::serialization::deserialize(stream, dgps_latency); 00248 ros::serialization::deserialize(stream, dgps_reference_id); 00249 ros::serialization::deserialize(stream, gps_week); 00250 ros::serialization::deserialize(stream, gps_time_offset); 00251 ros::serialization::deserialize(stream, gnss_latency); 00252 ros::serialization::deserialize(stream, geoidal_separation); 00253 ros::serialization::deserialize(stream, gnss_type); 00254 ros::serialization::deserialize(stream, gnss_status); 00255 return stream.getData(); 00256 } 00257 00258 ROS_DEPRECATED virtual uint32_t serializationLength() const 00259 { 00260 uint32_t size = 0; 00261 size += ros::serialization::serializationLength(td); 00262 size += ros::serialization::serializationLength(solution_status); 00263 size += ros::serialization::serializationLength(channels_count); 00264 size += ros::serialization::serializationLength(reserved); 00265 size += ros::serialization::serializationLength(channels); 00266 size += ros::serialization::serializationLength(hdop); 00267 size += ros::serialization::serializationLength(vdop); 00268 size += ros::serialization::serializationLength(dgps_latency); 00269 size += ros::serialization::serializationLength(dgps_reference_id); 00270 size += ros::serialization::serializationLength(gps_week); 00271 size += ros::serialization::serializationLength(gps_time_offset); 00272 size += ros::serialization::serializationLength(gnss_latency); 00273 size += ros::serialization::serializationLength(geoidal_separation); 00274 size += ros::serialization::serializationLength(gnss_type); 00275 size += ros::serialization::serializationLength(gnss_status); 00276 return size; 00277 } 00278 00279 typedef boost::shared_ptr< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > Ptr; 00280 typedef boost::shared_ptr< ::applanix_msgs::GNSSStatus_<ContainerAllocator> const> ConstPtr; 00281 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00282 }; // struct GNSSStatus 00283 typedef ::applanix_msgs::GNSSStatus_<std::allocator<void> > GNSSStatus; 00284 00285 typedef boost::shared_ptr< ::applanix_msgs::GNSSStatus> GNSSStatusPtr; 00286 typedef boost::shared_ptr< ::applanix_msgs::GNSSStatus const> GNSSStatusConstPtr; 00287 00288 00289 template<typename ContainerAllocator> 00290 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSStatus_<ContainerAllocator> & v) 00291 { 00292 ros::message_operations::Printer< ::applanix_msgs::GNSSStatus_<ContainerAllocator> >::stream(s, "", v); 00293 return s;} 00294 00295 } // namespace applanix_msgs 00296 00297 namespace ros 00298 { 00299 namespace message_traits 00300 { 00301 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > : public TrueType {}; 00302 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSStatus_<ContainerAllocator> const> : public TrueType {}; 00303 template<class ContainerAllocator> 00304 struct MD5Sum< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "025a8154ac59effa20d8e6dc5c1ba784"; 00308 } 00309 00310 static const char* value(const ::applanix_msgs::GNSSStatus_<ContainerAllocator> &) { return value(); } 00311 static const uint64_t static_value1 = 0x025a8154ac59effaULL; 00312 static const uint64_t static_value2 = 0x20d8e6dc5c1ba784ULL; 00313 }; 00314 00315 template<class ContainerAllocator> 00316 struct DataType< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > { 00317 static const char* value() 00318 { 00319 return "applanix_msgs/GNSSStatus"; 00320 } 00321 00322 static const char* value(const ::applanix_msgs::GNSSStatus_<ContainerAllocator> &) { return value(); } 00323 }; 00324 00325 template<class ContainerAllocator> 00326 struct Definition< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > { 00327 static const char* value() 00328 { 00329 return "TimeDistance td\n\ 00330 \n\ 00331 uint8 SOLUTION_UNKNOWN=255\n\ 00332 uint8 SOLUTION_NO_DATA=0\n\ 00333 uint8 SOLUTION_HORIZONTAL_CA=1\n\ 00334 uint8 SOLUTION_3D_CA=2\n\ 00335 uint8 SOLUTION_HORIZONTAL_DGPS=3\n\ 00336 uint8 SOLUTION_3D_DGPS=4\n\ 00337 uint8 SOLUTION_FLOAT_RTK=5\n\ 00338 uint8 SOLUTION_WIDE_LANE_RTK=6\n\ 00339 uint8 SOLUTION_NARROW_LANE_RTK=7\n\ 00340 uint8 SOLUTION_P_CODE=8\n\ 00341 uint8 SOLUTION_OMNISTAR_HP=9\n\ 00342 uint8 SOLUTION_OMNISTAR_XP=10\n\ 00343 uint8 SOLUTION_OMNISTAR_VBS=11\n\ 00344 uint8 solution_status\n\ 00345 \n\ 00346 uint8 channels_count\n\ 00347 uint16 reserved\n\ 00348 GNSSChannelStatus[] channels\n\ 00349 \n\ 00350 float32 hdop\n\ 00351 float32 vdop\n\ 00352 float32 dgps_latency\n\ 00353 uint16 dgps_reference_id\n\ 00354 \n\ 00355 uint32 gps_week\n\ 00356 float64 gps_time_offset\n\ 00357 \n\ 00358 float32 gnss_latency\n\ 00359 float32 geoidal_separation\n\ 00360 \n\ 00361 uint16 TYPE_NONE=0\n\ 00362 uint16 TYPE_TRIMBLE_BD960=16\n\ 00363 uint16 gnss_type\n\ 00364 \n\ 00365 # Receiver-dependent.\n\ 00366 uint32 gnss_status\n\ 00367 \n\ 00368 ================================================================================\n\ 00369 MSG: applanix_msgs/TimeDistance\n\ 00370 float64 time1\n\ 00371 float64 time2\n\ 00372 float64 distance\n\ 00373 uint8 time_types\n\ 00374 uint8 distance_type\n\ 00375 \n\ 00376 ================================================================================\n\ 00377 MSG: applanix_msgs/GNSSChannelStatus\n\ 00378 uint16 sv_prn\n\ 00379 \n\ 00380 uint16 STATUS_L1_IDLE=0\n\ 00381 uint16 STATUS_L1_ACQUISITION=1\n\ 00382 uint16 STATUS_L1_CODE_LOCK=3\n\ 00383 uint16 STATUS_L1_PHASE_LOCK=5\n\ 00384 uint16 STATUS_L2_IDLE=6\n\ 00385 uint16 STATUS_L2_ACQUISITION=8\n\ 00386 uint16 STATUS_L2_CODE_LOCK=9\n\ 00387 uint16 STATUS_L2_PHASE_LOCK=11\n\ 00388 uint16 status\n\ 00389 \n\ 00390 float32 sv_azimuth\n\ 00391 float32 sv_elevation\n\ 00392 float32 sv_l1_snr\n\ 00393 float32 sv_l2_snr\n\ 00394 \n\ 00395 "; 00396 } 00397 00398 static const char* value(const ::applanix_msgs::GNSSStatus_<ContainerAllocator> &) { return value(); } 00399 }; 00400 00401 } // namespace message_traits 00402 } // namespace ros 00403 00404 namespace ros 00405 { 00406 namespace serialization 00407 { 00408 00409 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > 00410 { 00411 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00412 { 00413 stream.next(m.td); 00414 stream.next(m.solution_status); 00415 stream.next(m.channels_count); 00416 stream.next(m.reserved); 00417 stream.next(m.channels); 00418 stream.next(m.hdop); 00419 stream.next(m.vdop); 00420 stream.next(m.dgps_latency); 00421 stream.next(m.dgps_reference_id); 00422 stream.next(m.gps_week); 00423 stream.next(m.gps_time_offset); 00424 stream.next(m.gnss_latency); 00425 stream.next(m.geoidal_separation); 00426 stream.next(m.gnss_type); 00427 stream.next(m.gnss_status); 00428 } 00429 00430 ROS_DECLARE_ALLINONE_SERIALIZER; 00431 }; // struct GNSSStatus_ 00432 } // namespace serialization 00433 } // namespace ros 00434 00435 namespace ros 00436 { 00437 namespace message_operations 00438 { 00439 00440 template<class ContainerAllocator> 00441 struct Printer< ::applanix_msgs::GNSSStatus_<ContainerAllocator> > 00442 { 00443 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSStatus_<ContainerAllocator> & v) 00444 { 00445 s << indent << "td: "; 00446 s << std::endl; 00447 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00448 s << indent << "solution_status: "; 00449 Printer<uint8_t>::stream(s, indent + " ", v.solution_status); 00450 s << indent << "channels_count: "; 00451 Printer<uint8_t>::stream(s, indent + " ", v.channels_count); 00452 s << indent << "reserved: "; 00453 Printer<uint16_t>::stream(s, indent + " ", v.reserved); 00454 s << indent << "channels[]" << std::endl; 00455 for (size_t i = 0; i < v.channels.size(); ++i) 00456 { 00457 s << indent << " channels[" << i << "]: "; 00458 s << std::endl; 00459 s << indent; 00460 Printer< ::applanix_msgs::GNSSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channels[i]); 00461 } 00462 s << indent << "hdop: "; 00463 Printer<float>::stream(s, indent + " ", v.hdop); 00464 s << indent << "vdop: "; 00465 Printer<float>::stream(s, indent + " ", v.vdop); 00466 s << indent << "dgps_latency: "; 00467 Printer<float>::stream(s, indent + " ", v.dgps_latency); 00468 s << indent << "dgps_reference_id: "; 00469 Printer<uint16_t>::stream(s, indent + " ", v.dgps_reference_id); 00470 s << indent << "gps_week: "; 00471 Printer<uint32_t>::stream(s, indent + " ", v.gps_week); 00472 s << indent << "gps_time_offset: "; 00473 Printer<double>::stream(s, indent + " ", v.gps_time_offset); 00474 s << indent << "gnss_latency: "; 00475 Printer<float>::stream(s, indent + " ", v.gnss_latency); 00476 s << indent << "geoidal_separation: "; 00477 Printer<float>::stream(s, indent + " ", v.geoidal_separation); 00478 s << indent << "gnss_type: "; 00479 Printer<uint16_t>::stream(s, indent + " ", v.gnss_type); 00480 s << indent << "gnss_status: "; 00481 Printer<uint32_t>::stream(s, indent + " ", v.gnss_status); 00482 } 00483 }; 00484 00485 00486 } // namespace message_operations 00487 } // namespace ros 00488 00489 #endif // APPLANIX_MSGS_MESSAGE_GNSSSTATUS_H 00490