Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_GAMS_H
00003 #define APPLANIX_MSGS_MESSAGE_GAMS_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
00019 namespace applanix_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GAMS_ {
00023 typedef GAMS_<ContainerAllocator> Type;
00024
00025 GAMS_()
00026 : td()
00027 , num_satellites(0)
00028 , a_priori_pdop(0.0)
00029 , antenna_separation(0.0)
00030 , status(0)
00031 , prn_assignment()
00032 , cycle_slip_flag(0)
00033 , gams_heading(0.0)
00034 , gams_heading_rms_err(0.0)
00035 {
00036 prn_assignment.assign(0);
00037 }
00038
00039 GAMS_(const ContainerAllocator& _alloc)
00040 : td(_alloc)
00041 , num_satellites(0)
00042 , a_priori_pdop(0.0)
00043 , antenna_separation(0.0)
00044 , status(0)
00045 , prn_assignment()
00046 , cycle_slip_flag(0)
00047 , gams_heading(0.0)
00048 , gams_heading_rms_err(0.0)
00049 {
00050 prn_assignment.assign(0);
00051 }
00052
00053 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type;
00054 ::applanix_msgs::TimeDistance_<ContainerAllocator> td;
00055
00056 typedef uint8_t _num_satellites_type;
00057 uint8_t num_satellites;
00058
00059 typedef float _a_priori_pdop_type;
00060 float a_priori_pdop;
00061
00062 typedef float _antenna_separation_type;
00063 float antenna_separation;
00064
00065 typedef uint8_t _status_type;
00066 uint8_t status;
00067
00068 typedef boost::array<uint8_t, 12> _prn_assignment_type;
00069 boost::array<uint8_t, 12> prn_assignment;
00070
00071 typedef uint16_t _cycle_slip_flag_type;
00072 uint16_t cycle_slip_flag;
00073
00074 typedef double _gams_heading_type;
00075 double gams_heading;
00076
00077 typedef double _gams_heading_rms_err_type;
00078 double gams_heading_rms_err;
00079
00080 enum { STATUS_FIXED_INTEGER = 0 };
00081 enum { STATUS_FIXED_INTEGER_TEST_INSTALL_DATA = 1 };
00082 enum { STATUS_DEGRADED_FIXED_INTEGER = 2 };
00083 enum { STATUS_FLOATED_AMBIGUITY = 3 };
00084 enum { STATUS_DEGRADED_FLOATED_AMBIGUITY = 4 };
00085 enum { STATUS_SOLUTION_WITHOUT_INSTALL_DATA = 5 };
00086 enum { STATUS_SOLUTION_FROM_ATTITUDE_AND_INSTALL_DATA = 6 };
00087 enum { STATUS_NO_SOLUTION = 7 };
00088 enum { PRN_UNASSIGNED = 0 };
00089
00090 typedef boost::shared_ptr< ::applanix_msgs::GAMS_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::applanix_msgs::GAMS_<ContainerAllocator> const> ConstPtr;
00092 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00093 };
00094 typedef ::applanix_msgs::GAMS_<std::allocator<void> > GAMS;
00095
00096 typedef boost::shared_ptr< ::applanix_msgs::GAMS> GAMSPtr;
00097 typedef boost::shared_ptr< ::applanix_msgs::GAMS const> GAMSConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GAMS_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::applanix_msgs::GAMS_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GAMS_<ContainerAllocator> > : public TrueType {};
00113 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GAMS_<ContainerAllocator> const> : public TrueType {};
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::applanix_msgs::GAMS_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "018cc2b2b8ae19d409c9e0d80bd8927e";
00119 }
00120
00121 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0x018cc2b2b8ae19d4ULL;
00123 static const uint64_t static_value2 = 0x09c9e0d80bd8927eULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::applanix_msgs::GAMS_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "applanix_msgs/GAMS";
00131 }
00132
00133 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::applanix_msgs::GAMS_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "TimeDistance td\n\
00141 \n\
00142 uint8 num_satellites\n\
00143 float32 a_priori_pdop\n\
00144 float32 antenna_separation\n\
00145 \n\
00146 uint8 STATUS_FIXED_INTEGER=0\n\
00147 uint8 STATUS_FIXED_INTEGER_TEST_INSTALL_DATA=1\n\
00148 uint8 STATUS_DEGRADED_FIXED_INTEGER=2\n\
00149 uint8 STATUS_FLOATED_AMBIGUITY=3\n\
00150 uint8 STATUS_DEGRADED_FLOATED_AMBIGUITY=4\n\
00151 uint8 STATUS_SOLUTION_WITHOUT_INSTALL_DATA=5\n\
00152 uint8 STATUS_SOLUTION_FROM_ATTITUDE_AND_INSTALL_DATA=6\n\
00153 uint8 STATUS_NO_SOLUTION=7\n\
00154 uint8 status\n\
00155 \n\
00156 uint8 PRN_UNASSIGNED=0\n\
00157 uint8[12] prn_assignment\n\
00158 \n\
00159 uint16 cycle_slip_flag\n\
00160 \n\
00161 float64 gams_heading\n\
00162 float64 gams_heading_rms_err\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: applanix_msgs/TimeDistance\n\
00166 float64 time1\n\
00167 float64 time2\n\
00168 float64 distance\n\
00169 uint8 time_types\n\
00170 uint8 distance_type\n\
00171 \n\
00172 ";
00173 }
00174
00175 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); }
00176 };
00177
00178 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GAMS_<ContainerAllocator> > : public TrueType {};
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace serialization
00185 {
00186
00187 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GAMS_<ContainerAllocator> >
00188 {
00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00190 {
00191 stream.next(m.td);
00192 stream.next(m.num_satellites);
00193 stream.next(m.a_priori_pdop);
00194 stream.next(m.antenna_separation);
00195 stream.next(m.status);
00196 stream.next(m.prn_assignment);
00197 stream.next(m.cycle_slip_flag);
00198 stream.next(m.gams_heading);
00199 stream.next(m.gams_heading_rms_err);
00200 }
00201
00202 ROS_DECLARE_ALLINONE_SERIALIZER;
00203 };
00204 }
00205 }
00206
00207 namespace ros
00208 {
00209 namespace message_operations
00210 {
00211
00212 template<class ContainerAllocator>
00213 struct Printer< ::applanix_msgs::GAMS_<ContainerAllocator> >
00214 {
00215 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GAMS_<ContainerAllocator> & v)
00216 {
00217 s << indent << "td: ";
00218 s << std::endl;
00219 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00220 s << indent << "num_satellites: ";
00221 Printer<uint8_t>::stream(s, indent + " ", v.num_satellites);
00222 s << indent << "a_priori_pdop: ";
00223 Printer<float>::stream(s, indent + " ", v.a_priori_pdop);
00224 s << indent << "antenna_separation: ";
00225 Printer<float>::stream(s, indent + " ", v.antenna_separation);
00226 s << indent << "status: ";
00227 Printer<uint8_t>::stream(s, indent + " ", v.status);
00228 s << indent << "prn_assignment[]" << std::endl;
00229 for (size_t i = 0; i < v.prn_assignment.size(); ++i)
00230 {
00231 s << indent << " prn_assignment[" << i << "]: ";
00232 Printer<uint8_t>::stream(s, indent + " ", v.prn_assignment[i]);
00233 }
00234 s << indent << "cycle_slip_flag: ";
00235 Printer<uint16_t>::stream(s, indent + " ", v.cycle_slip_flag);
00236 s << indent << "gams_heading: ";
00237 Printer<double>::stream(s, indent + " ", v.gams_heading);
00238 s << indent << "gams_heading_rms_err: ";
00239 Printer<double>::stream(s, indent + " ", v.gams_heading_rms_err);
00240 }
00241 };
00242
00243
00244 }
00245 }
00246
00247 #endif // APPLANIX_MSGS_MESSAGE_GAMS_H
00248