Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > Ptr;
00096 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> const> ConstPtr;
00097 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00098 };
00099 typedef ::applanix_msgs::GNSSDGPSStatus_<std::allocator<void> > GNSSDGPSStatus;
00100
00101 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus> GNSSDGPSStatusPtr;
00102 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStatus const> GNSSDGPSStatusConstPtr;
00103
00104
00105 template<typename ContainerAllocator>
00106 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> & v)
00107 {
00108 ros::message_operations::Printer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> >::stream(s, "", v);
00109 return s;}
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > : public TrueType {};
00118 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> const> : public TrueType {};
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "e2533637a63b63e4d4385cf8f136e39a";
00124 }
00125
00126 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0xe2533637a63b63e4ULL;
00128 static const uint64_t static_value2 = 0xd4385cf8f136e39aULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "applanix_msgs/GNSSDGPSStatus";
00136 }
00137
00138 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "# Group 25\n\
00146 TimeDistance td\n\
00147 \n\
00148 uint8 MODE_MANUAL_GPS=0\n\
00149 uint8 MODE_MANUAL_DGPS=1\n\
00150 uint8 MODE_DIFFERENTIAL_AUTO=2\n\
00151 uint8 MODE_UNKNOWN=3\n\
00152 uint8 mode\n\
00153 \n\
00154 GNSSDGPSChannelStatus channel_0\n\
00155 GNSSDGPSChannelStatus channel_1\n\
00156 \n\
00157 # Service provider information\n\
00158 uint64 user_id_code\n\
00159 \n\
00160 uint8 USER_ACCESS_INFO_UNAVAILABLE=0\n\
00161 uint8 USER_OMNISTAR_DISABLED=1\n\
00162 uint8 USER_OMNISTAR_ENABLED=2\n\
00163 uint8 USER_LANDSTAR_DISABLED=3\n\
00164 uint8 USER_LANDSTAR_ENABLED=4\n\
00165 uint8 user_access\n\
00166 \n\
00167 uint8 STATE_INIT_0=0\n\
00168 uint8 STATE_INIT_1=1\n\
00169 uint8 STATE_INIT_2=2\n\
00170 uint8 STATE_INIT_3=3\n\
00171 uint8 STATE_INIT_4=4\n\
00172 uint8 STATE_INIT_COMPLETE=5\n\
00173 uint8 STATE_USER_ACCESS_CONFIRMED=6\n\
00174 uint8 STATE_RTCM_DATA_RECEIVED=7\n\
00175 uint8 STATE_DECODER_RESET_DETECTED=8\n\
00176 uint8 STATE_DECODER_UNAVAILABLE=9\n\
00177 uint8 STATE_NO_NEW_RTCM_DATA=10\n\
00178 uint8 STATE_NEED_UPDATE_FROM_MASTER=11\n\
00179 uint8 STATE_OFFSHORE_OPERATION_PROHIBITED=12\n\
00180 uint8 STATE_INVALID_OPERATING_REGION=13\n\
00181 uint8 STATE_INVALID_SATELLITE_LINK=14\n\
00182 uint8 state\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: applanix_msgs/TimeDistance\n\
00186 float64 time1\n\
00187 float64 time2\n\
00188 float64 distance\n\
00189 uint8 time_types\n\
00190 uint8 distance_type\n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: applanix_msgs/GNSSDGPSChannelStatus\n\
00194 # Part of Group 25.\n\
00195 # TODO: enums\n\
00196 \n\
00197 float64 frequency\n\
00198 uint8 acquisition_mode\n\
00199 uint8 status\n\
00200 uint8 rtcm\n\
00201 uint8 snr\n\
00202 uint8 data_rate\n\
00203 uint8 lock\n\
00204 uint8 dgps_source_auto_switching\n\
00205 uint8 provider\n\
00206 \n\
00207 \n\
00208 ";
00209 }
00210
00211 static const char* value(const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> > : public TrueType {};
00215 }
00216 }
00217
00218 namespace ros
00219 {
00220 namespace serialization
00221 {
00222
00223 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> >
00224 {
00225 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00226 {
00227 stream.next(m.td);
00228 stream.next(m.mode);
00229 stream.next(m.channel_0);
00230 stream.next(m.channel_1);
00231 stream.next(m.user_id_code);
00232 stream.next(m.user_access);
00233 stream.next(m.state);
00234 }
00235
00236 ROS_DECLARE_ALLINONE_SERIALIZER;
00237 };
00238 }
00239 }
00240
00241 namespace ros
00242 {
00243 namespace message_operations
00244 {
00245
00246 template<class ContainerAllocator>
00247 struct Printer< ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> >
00248 {
00249 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSDGPSStatus_<ContainerAllocator> & v)
00250 {
00251 s << indent << "td: ";
00252 s << std::endl;
00253 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00254 s << indent << "mode: ";
00255 Printer<uint8_t>::stream(s, indent + " ", v.mode);
00256 s << indent << "channel_0: ";
00257 s << std::endl;
00258 Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channel_0);
00259 s << indent << "channel_1: ";
00260 s << std::endl;
00261 Printer< ::applanix_msgs::GNSSDGPSChannelStatus_<ContainerAllocator> >::stream(s, indent + " ", v.channel_1);
00262 s << indent << "user_id_code: ";
00263 Printer<uint64_t>::stream(s, indent + " ", v.user_id_code);
00264 s << indent << "user_access: ";
00265 Printer<uint8_t>::stream(s, indent + " ", v.user_access);
00266 s << indent << "state: ";
00267 Printer<uint8_t>::stream(s, indent + " ", v.state);
00268 }
00269 };
00270
00271
00272 }
00273 }
00274
00275 #endif // APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATUS_H
00276