$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/GNSSDGPSStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATUS_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/GNSSDGPSChannelStatus.h" 00019 #include "applanix_msgs/GNSSDGPSChannelStatus.h" 00020 00021 namespace applanix_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct GNSSDGPSStatus_ { 00025 typedef GNSSDGPSStatus_<ContainerAllocator> Type; 00026 00027 GNSSDGPSStatus_() 00028 : td() 00029 , mode(0) 00030 , channel_0() 00031 , channel_1() 00032 , user_id_code(0) 00033 , user_access(0) 00034 , state(0) 00035 { 00036 } 00037 00038 GNSSDGPSStatus_(const ContainerAllocator& _alloc) 00039 : td(_alloc) 00040 , mode(0) 00041 , channel_0(_alloc) 00042 , channel_1(_alloc) 00043 , user_id_code(0) 00044 , user_access(0) 00045 , state(0) 00046 { 00047 } 00048 00049 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00050 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00051 00052 typedef uint8_t _mode_type; 00053 uint8_t mode; 00054 00055 typedef ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> _channel_0_type; 00056 ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> channel_0; 00057 00058 typedef ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> _channel_1_type; 00059 ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> channel_1; 00060 00061 typedef uint64_t _user_id_code_type; 00062 uint64_t user_id_code; 00063 00064 typedef uint8_t _user_access_type; 00065 uint8_t user_access; 00066 00067 typedef uint8_t _state_type; 00068 uint8_t state; 00069 00070 enum { MODE_MANUAL_GPS = 0 }; 00071 enum { MODE_MANUAL_DGPS = 1 }; 00072 enum { MODE_DIFFERENTIAL_AUTO = 2 }; 00073 enum { MODE_UNKNOWN = 3 }; 00074 enum { USER_ACCESS_INFO_UNAVAILABLE = 0 }; 00075 enum { USER_OMNISTAR_DISABLED = 1 }; 00076 enum { USER_OMNISTAR_ENABLED = 2 }; 00077 enum { USER_LANDSTAR_DISABLED = 3 }; 00078 enum { USER_LANDSTAR_ENABLED = 4 }; 00079 enum { STATE_INIT_0 = 0 }; 00080 enum { STATE_INIT_1 = 1 }; 00081 enum { STATE_INIT_2 = 2 }; 00082 enum { STATE_INIT_3 = 3 }; 00083 enum { STATE_INIT_4 = 4 }; 00084 enum { STATE_INIT_COMPLETE = 5 }; 00085 enum { STATE_USER_ACCESS_CONFIRMED = 6 }; 00086 enum { STATE_RTCM_DATA_RECEIVED = 7 }; 00087 enum { STATE_DECODER_RESET_DETECTED = 8 }; 00088 enum { STATE_DECODER_UNAVAILABLE = 9 }; 00089 enum { STATE_NO_NEW_RTCM_DATA = 10 }; 00090 enum { STATE_NEED_UPDATE_FROM_MASTER = 11 }; 00091 enum { STATE_OFFSHORE_OPERATION_PROHIBITED = 12 }; 00092 enum { STATE_INVALID_OPERATING_REGION = 13 }; 00093 enum { STATE_INVALID_SATELLITE_LINK = 14 }; 00094 00095 private: 00096 static const char* __s_getDataType_() { return "applanix_msgs/GNSSDGPSStatus"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00099 00100 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00101 00102 private: 00103 static const char* __s_getMD5Sum_() { return "e2533637a63b63e4d4385cf8f136e39a"; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00106 00107 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00108 00109 private: 00110 static const char* __s_getMessageDefinition_() { return "# Group 25\n\ 00111 TimeDistance td\n\ 00112 \n\ 00113 uint8 MODE_MANUAL_GPS=0\n\ 00114 uint8 MODE_MANUAL_DGPS=1\n\ 00115 uint8 MODE_DIFFERENTIAL_AUTO=2\n\ 00116 uint8 MODE_UNKNOWN=3\n\ 00117 uint8 mode\n\ 00118 \n\ 00119 GNSSDGPSChannelStatus channel_0\n\ 00120 GNSSDGPSChannelStatus channel_1\n\ 00121 \n\ 00122 # Service provider information\n\ 00123 uint64 user_id_code\n\ 00124 \n\ 00125 uint8 USER_ACCESS_INFO_UNAVAILABLE=0\n\ 00126 uint8 USER_OMNISTAR_DISABLED=1\n\ 00127 uint8 USER_OMNISTAR_ENABLED=2\n\ 00128 uint8 USER_LANDSTAR_DISABLED=3\n\ 00129 uint8 USER_LANDSTAR_ENABLED=4\n\ 00130 uint8 user_access\n\ 00131 \n\ 00132 uint8 STATE_INIT_0=0\n\ 00133 uint8 STATE_INIT_1=1\n\ 00134 uint8 STATE_INIT_2=2\n\ 00135 uint8 STATE_INIT_3=3\n\ 00136 uint8 STATE_INIT_4=4\n\ 00137 uint8 STATE_INIT_COMPLETE=5\n\ 00138 uint8 STATE_USER_ACCESS_CONFIRMED=6\n\ 00139 uint8 STATE_RTCM_DATA_RECEIVED=7\n\ 00140 uint8 STATE_DECODER_RESET_DETECTED=8\n\ 00141 uint8 STATE_DECODER_UNAVAILABLE=9\n\ 00142 uint8 STATE_NO_NEW_RTCM_DATA=10\n\ 00143 uint8 STATE_NEED_UPDATE_FROM_MASTER=11\n\ 00144 uint8 STATE_OFFSHORE_OPERATION_PROHIBITED=12\n\ 00145 uint8 STATE_INVALID_OPERATING_REGION=13\n\ 00146 uint8 STATE_INVALID_SATELLITE_LINK=14\n\ 00147 uint8 state\n\ 00148 \n\ 00149 ================================================================================\n\ 00150 MSG: applanix_msgs/TimeDistance\n\ 00151 float64 time1\n\ 00152 float64 time2\n\ 00153 float64 distance\n\ 00154 uint8 time_types\n\ 00155 uint8 distance_type\n\ 00156 \n\ 00157 ================================================================================\n\ 00158 MSG: applanix_msgs/GNSSDGPSChannelStatus\n\ 00159 # Part of Group 25.\n\ 00160 # TODO: enums\n\ 00161 \n\ 00162 float64 frequency\n\ 00163 uint8 acquisition_mode\n\ 00164 uint8 status\n\ 00165 uint8 rtcm\n\ 00166 uint8 snr\n\ 00167 uint8 data_rate\n\ 00168 uint8 lock\n\ 00169 uint8 dgps_source_auto_switching\n\ 00170 uint8 provider\n\ 00171 \n\ 00172 \n\ 00173 "; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00176 00177 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00178 00179 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00180 { 00181 ros::serialization::OStream stream(write_ptr, 1000000000); 00182 ros::serialization::serialize(stream, td); 00183 ros::serialization::serialize(stream, mode); 00184 ros::serialization::serialize(stream, channel_0); 00185 ros::serialization::serialize(stream, channel_1); 00186 ros::serialization::serialize(stream, user_id_code); 00187 ros::serialization::serialize(stream, user_access); 00188 ros::serialization::serialize(stream, state); 00189 return stream.getData(); 00190 } 00191 00192 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00193 { 00194 ros::serialization::IStream stream(read_ptr, 1000000000); 00195 ros::serialization::deserialize(stream, td); 00196 ros::serialization::deserialize(stream, mode); 00197 ros::serialization::deserialize(stream, channel_0); 00198 ros::serialization::deserialize(stream, channel_1); 00199 ros::serialization::deserialize(stream, user_id_code); 00200 ros::serialization::deserialize(stream, user_access); 00201 ros::serialization::deserialize(stream, state); 00202 return stream.getData(); 00203 } 00204 00205 ROS_DEPRECATED virtual uint32_t serializationLength() const 00206 { 00207 uint32_t size = 0; 00208 size += ros::serialization::serializationLength(td); 00209 size += ros::serialization::serializationLength(mode); 00210 size += ros::serialization::serializationLength(channel_0); 00211 size += ros::serialization::serializationLength(channel_1); 00212 size += ros::serialization::serializationLength(user_id_code); 00213 size += ros::serialization::serializationLength(user_access); 00214 size += ros::serialization::serializationLength(state); 00215 return size; 00216 } 00217 00218 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > Ptr; 00219 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> const> ConstPtr; 00220 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00221 }; // struct GNSSDGPSStatus 00222 typedef ::applanix_msgs::GNSSDGPSStatus_<std::allocator<void> > GNSSDGPSStatus; 00223 00224 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus> GNSSDGPSStatusPtr; 00225 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus const> GNSSDGPSStatusConstPtr; 00226 00227 00228 template<typename ContainerAllocator> 00229 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> & v) 00230 { 00231 ros::message_operations::Printer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> >::stream(s, "", v); 00232 return s;} 00233 00234 } // namespace applanix_msgs 00235 00236 namespace ros 00237 { 00238 namespace message_traits 00239 { 00240 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > : public TrueType {}; 00241 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> const> : public TrueType {}; 00242 template<class ContainerAllocator> 00243 struct MD5Sum< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > { 00244 static const char* value() 00245 { 00246 return "e2533637a63b63e4d4385cf8f136e39a"; 00247 } 00248 00249 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); } 00250 static const uint64_t static_value1 = 0xe2533637a63b63e4ULL; 00251 static const uint64_t static_value2 = 0xd4385cf8f136e39aULL; 00252 }; 00253 00254 template<class ContainerAllocator> 00255 struct DataType< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > { 00256 static const char* value() 00257 { 00258 return "applanix_msgs/GNSSDGPSStatus"; 00259 } 00260 00261 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); } 00262 }; 00263 00264 template<class ContainerAllocator> 00265 struct Definition< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > { 00266 static const char* value() 00267 { 00268 return "# Group 25\n\ 00269 TimeDistance td\n\ 00270 \n\ 00271 uint8 MODE_MANUAL_GPS=0\n\ 00272 uint8 MODE_MANUAL_DGPS=1\n\ 00273 uint8 MODE_DIFFERENTIAL_AUTO=2\n\ 00274 uint8 MODE_UNKNOWN=3\n\ 00275 uint8 mode\n\ 00276 \n\ 00277 GNSSDGPSChannelStatus channel_0\n\ 00278 GNSSDGPSChannelStatus channel_1\n\ 00279 \n\ 00280 # Service provider information\n\ 00281 uint64 user_id_code\n\ 00282 \n\ 00283 uint8 USER_ACCESS_INFO_UNAVAILABLE=0\n\ 00284 uint8 USER_OMNISTAR_DISABLED=1\n\ 00285 uint8 USER_OMNISTAR_ENABLED=2\n\ 00286 uint8 USER_LANDSTAR_DISABLED=3\n\ 00287 uint8 USER_LANDSTAR_ENABLED=4\n\ 00288 uint8 user_access\n\ 00289 \n\ 00290 uint8 STATE_INIT_0=0\n\ 00291 uint8 STATE_INIT_1=1\n\ 00292 uint8 STATE_INIT_2=2\n\ 00293 uint8 STATE_INIT_3=3\n\ 00294 uint8 STATE_INIT_4=4\n\ 00295 uint8 STATE_INIT_COMPLETE=5\n\ 00296 uint8 STATE_USER_ACCESS_CONFIRMED=6\n\ 00297 uint8 STATE_RTCM_DATA_RECEIVED=7\n\ 00298 uint8 STATE_DECODER_RESET_DETECTED=8\n\ 00299 uint8 STATE_DECODER_UNAVAILABLE=9\n\ 00300 uint8 STATE_NO_NEW_RTCM_DATA=10\n\ 00301 uint8 STATE_NEED_UPDATE_FROM_MASTER=11\n\ 00302 uint8 STATE_OFFSHORE_OPERATION_PROHIBITED=12\n\ 00303 uint8 STATE_INVALID_OPERATING_REGION=13\n\ 00304 uint8 STATE_INVALID_SATELLITE_LINK=14\n\ 00305 uint8 state\n\ 00306 \n\ 00307 ================================================================================\n\ 00308 MSG: applanix_msgs/TimeDistance\n\ 00309 float64 time1\n\ 00310 float64 time2\n\ 00311 float64 distance\n\ 00312 uint8 time_types\n\ 00313 uint8 distance_type\n\ 00314 \n\ 00315 ================================================================================\n\ 00316 MSG: applanix_msgs/GNSSDGPSChannelStatus\n\ 00317 # Part of Group 25.\n\ 00318 # TODO: enums\n\ 00319 \n\ 00320 float64 frequency\n\ 00321 uint8 acquisition_mode\n\ 00322 uint8 status\n\ 00323 uint8 rtcm\n\ 00324 uint8 snr\n\ 00325 uint8 data_rate\n\ 00326 uint8 lock\n\ 00327 uint8 dgps_source_auto_switching\n\ 00328 uint8 provider\n\ 00329 \n\ 00330 \n\ 00331 "; 00332 } 00333 00334 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); } 00335 }; 00336 00337 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > : public TrueType {}; 00338 } // namespace message_traits 00339 } // namespace ros 00340 00341 namespace ros 00342 { 00343 namespace serialization 00344 { 00345 00346 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > 00347 { 00348 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00349 { 00350 stream.next(m.td); 00351 stream.next(m.mode); 00352 stream.next(m.channel_0); 00353 stream.next(m.channel_1); 00354 stream.next(m.user_id_code); 00355 stream.next(m.user_access); 00356 stream.next(m.state); 00357 } 00358 00359 ROS_DECLARE_ALLINONE_SERIALIZER; 00360 }; // struct GNSSDGPSStatus_ 00361 } // namespace serialization 00362 } // namespace ros 00363 00364 namespace ros 00365 { 00366 namespace message_operations 00367 { 00368 00369 template<class ContainerAllocator> 00370 struct Printer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > 00371 { 00372 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> & v) 00373 { 00374 s << indent << "td: "; 00375 s << std::endl; 00376 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00377 s << indent << "mode: "; 00378 Printer<uint8_t>::stream(s, indent + " ", v.mode); 00379 s << indent << "channel_0: "; 00380 s << std::endl; 00381 Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channel_0); 00382 s << indent << "channel_1: "; 00383 s << std::endl; 00384 Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channel_1); 00385 s << indent << "user_id_code: "; 00386 Printer<uint64_t>::stream(s, indent + " ", v.user_id_code); 00387 s << indent << "user_access: "; 00388 Printer<uint8_t>::stream(s, indent + " ", v.user_access); 00389 s << indent << "state: "; 00390 Printer<uint8_t>::stream(s, indent + " ", v.state); 00391 } 00392 }; 00393 00394 00395 } // namespace message_operations 00396 } // namespace ros 00397 00398 #endif // APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATUS_H 00399