$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/GAMS.msg */ 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 ROS_DEPRECATED uint32_t get_prn_assignment_size() const { return (uint32_t)prn_assignment.size(); } 00091 private: 00092 static const char* __s_getDataType_() { return "applanix_msgs/GAMS"; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00095 00096 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00097 00098 private: 00099 static const char* __s_getMD5Sum_() { return "018cc2b2b8ae19d409c9e0d80bd8927e"; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00102 00103 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00104 00105 private: 00106 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00107 \n\ 00108 uint8 num_satellites\n\ 00109 float32 a_priori_pdop\n\ 00110 float32 antenna_separation\n\ 00111 \n\ 00112 uint8 STATUS_FIXED_INTEGER=0\n\ 00113 uint8 STATUS_FIXED_INTEGER_TEST_INSTALL_DATA=1\n\ 00114 uint8 STATUS_DEGRADED_FIXED_INTEGER=2\n\ 00115 uint8 STATUS_FLOATED_AMBIGUITY=3\n\ 00116 uint8 STATUS_DEGRADED_FLOATED_AMBIGUITY=4\n\ 00117 uint8 STATUS_SOLUTION_WITHOUT_INSTALL_DATA=5\n\ 00118 uint8 STATUS_SOLUTION_FROM_ATTITUDE_AND_INSTALL_DATA=6\n\ 00119 uint8 STATUS_NO_SOLUTION=7\n\ 00120 uint8 status\n\ 00121 \n\ 00122 uint8 PRN_UNASSIGNED=0\n\ 00123 uint8[12] prn_assignment\n\ 00124 \n\ 00125 uint16 cycle_slip_flag\n\ 00126 \n\ 00127 float64 gams_heading\n\ 00128 float64 gams_heading_rms_err\n\ 00129 \n\ 00130 ================================================================================\n\ 00131 MSG: applanix_msgs/TimeDistance\n\ 00132 float64 time1\n\ 00133 float64 time2\n\ 00134 float64 distance\n\ 00135 uint8 time_types\n\ 00136 uint8 distance_type\n\ 00137 \n\ 00138 "; } 00139 public: 00140 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00141 00142 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00143 00144 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00145 { 00146 ros::serialization::OStream stream(write_ptr, 1000000000); 00147 ros::serialization::serialize(stream, td); 00148 ros::serialization::serialize(stream, num_satellites); 00149 ros::serialization::serialize(stream, a_priori_pdop); 00150 ros::serialization::serialize(stream, antenna_separation); 00151 ros::serialization::serialize(stream, status); 00152 ros::serialization::serialize(stream, prn_assignment); 00153 ros::serialization::serialize(stream, cycle_slip_flag); 00154 ros::serialization::serialize(stream, gams_heading); 00155 ros::serialization::serialize(stream, gams_heading_rms_err); 00156 return stream.getData(); 00157 } 00158 00159 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00160 { 00161 ros::serialization::IStream stream(read_ptr, 1000000000); 00162 ros::serialization::deserialize(stream, td); 00163 ros::serialization::deserialize(stream, num_satellites); 00164 ros::serialization::deserialize(stream, a_priori_pdop); 00165 ros::serialization::deserialize(stream, antenna_separation); 00166 ros::serialization::deserialize(stream, status); 00167 ros::serialization::deserialize(stream, prn_assignment); 00168 ros::serialization::deserialize(stream, cycle_slip_flag); 00169 ros::serialization::deserialize(stream, gams_heading); 00170 ros::serialization::deserialize(stream, gams_heading_rms_err); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint32_t serializationLength() const 00175 { 00176 uint32_t size = 0; 00177 size += ros::serialization::serializationLength(td); 00178 size += ros::serialization::serializationLength(num_satellites); 00179 size += ros::serialization::serializationLength(a_priori_pdop); 00180 size += ros::serialization::serializationLength(antenna_separation); 00181 size += ros::serialization::serializationLength(status); 00182 size += ros::serialization::serializationLength(prn_assignment); 00183 size += ros::serialization::serializationLength(cycle_slip_flag); 00184 size += ros::serialization::serializationLength(gams_heading); 00185 size += ros::serialization::serializationLength(gams_heading_rms_err); 00186 return size; 00187 } 00188 00189 typedef boost::shared_ptr< ::applanix_msgs::GAMS_<ContainerAllocator> > Ptr; 00190 typedef boost::shared_ptr< ::applanix_msgs::GAMS_<ContainerAllocator> const> ConstPtr; 00191 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00192 }; // struct GAMS 00193 typedef ::applanix_msgs::GAMS_<std::allocator<void> > GAMS; 00194 00195 typedef boost::shared_ptr< ::applanix_msgs::GAMS> GAMSPtr; 00196 typedef boost::shared_ptr< ::applanix_msgs::GAMS const> GAMSConstPtr; 00197 00198 00199 template<typename ContainerAllocator> 00200 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GAMS_<ContainerAllocator> & v) 00201 { 00202 ros::message_operations::Printer< ::applanix_msgs::GAMS_<ContainerAllocator> >::stream(s, "", v); 00203 return s;} 00204 00205 } // namespace applanix_msgs 00206 00207 namespace ros 00208 { 00209 namespace message_traits 00210 { 00211 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GAMS_<ContainerAllocator> > : public TrueType {}; 00212 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GAMS_<ContainerAllocator> const> : public TrueType {}; 00213 template<class ContainerAllocator> 00214 struct MD5Sum< ::applanix_msgs::GAMS_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "018cc2b2b8ae19d409c9e0d80bd8927e"; 00218 } 00219 00220 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); } 00221 static const uint64_t static_value1 = 0x018cc2b2b8ae19d4ULL; 00222 static const uint64_t static_value2 = 0x09c9e0d80bd8927eULL; 00223 }; 00224 00225 template<class ContainerAllocator> 00226 struct DataType< ::applanix_msgs::GAMS_<ContainerAllocator> > { 00227 static const char* value() 00228 { 00229 return "applanix_msgs/GAMS"; 00230 } 00231 00232 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 template<class ContainerAllocator> 00236 struct Definition< ::applanix_msgs::GAMS_<ContainerAllocator> > { 00237 static const char* value() 00238 { 00239 return "TimeDistance td\n\ 00240 \n\ 00241 uint8 num_satellites\n\ 00242 float32 a_priori_pdop\n\ 00243 float32 antenna_separation\n\ 00244 \n\ 00245 uint8 STATUS_FIXED_INTEGER=0\n\ 00246 uint8 STATUS_FIXED_INTEGER_TEST_INSTALL_DATA=1\n\ 00247 uint8 STATUS_DEGRADED_FIXED_INTEGER=2\n\ 00248 uint8 STATUS_FLOATED_AMBIGUITY=3\n\ 00249 uint8 STATUS_DEGRADED_FLOATED_AMBIGUITY=4\n\ 00250 uint8 STATUS_SOLUTION_WITHOUT_INSTALL_DATA=5\n\ 00251 uint8 STATUS_SOLUTION_FROM_ATTITUDE_AND_INSTALL_DATA=6\n\ 00252 uint8 STATUS_NO_SOLUTION=7\n\ 00253 uint8 status\n\ 00254 \n\ 00255 uint8 PRN_UNASSIGNED=0\n\ 00256 uint8[12] prn_assignment\n\ 00257 \n\ 00258 uint16 cycle_slip_flag\n\ 00259 \n\ 00260 float64 gams_heading\n\ 00261 float64 gams_heading_rms_err\n\ 00262 \n\ 00263 ================================================================================\n\ 00264 MSG: applanix_msgs/TimeDistance\n\ 00265 float64 time1\n\ 00266 float64 time2\n\ 00267 float64 distance\n\ 00268 uint8 time_types\n\ 00269 uint8 distance_type\n\ 00270 \n\ 00271 "; 00272 } 00273 00274 static const char* value(const ::applanix_msgs::GAMS_<ContainerAllocator> &) { return value(); } 00275 }; 00276 00277 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GAMS_<ContainerAllocator> > : public TrueType {}; 00278 } // namespace message_traits 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace serialization 00284 { 00285 00286 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GAMS_<ContainerAllocator> > 00287 { 00288 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00289 { 00290 stream.next(m.td); 00291 stream.next(m.num_satellites); 00292 stream.next(m.a_priori_pdop); 00293 stream.next(m.antenna_separation); 00294 stream.next(m.status); 00295 stream.next(m.prn_assignment); 00296 stream.next(m.cycle_slip_flag); 00297 stream.next(m.gams_heading); 00298 stream.next(m.gams_heading_rms_err); 00299 } 00300 00301 ROS_DECLARE_ALLINONE_SERIALIZER; 00302 }; // struct GAMS_ 00303 } // namespace serialization 00304 } // namespace ros 00305 00306 namespace ros 00307 { 00308 namespace message_operations 00309 { 00310 00311 template<class ContainerAllocator> 00312 struct Printer< ::applanix_msgs::GAMS_<ContainerAllocator> > 00313 { 00314 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GAMS_<ContainerAllocator> & v) 00315 { 00316 s << indent << "td: "; 00317 s << std::endl; 00318 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00319 s << indent << "num_satellites: "; 00320 Printer<uint8_t>::stream(s, indent + " ", v.num_satellites); 00321 s << indent << "a_priori_pdop: "; 00322 Printer<float>::stream(s, indent + " ", v.a_priori_pdop); 00323 s << indent << "antenna_separation: "; 00324 Printer<float>::stream(s, indent + " ", v.antenna_separation); 00325 s << indent << "status: "; 00326 Printer<uint8_t>::stream(s, indent + " ", v.status); 00327 s << indent << "prn_assignment[]" << std::endl; 00328 for (size_t i = 0; i < v.prn_assignment.size(); ++i) 00329 { 00330 s << indent << " prn_assignment[" << i << "]: "; 00331 Printer<uint8_t>::stream(s, indent + " ", v.prn_assignment[i]); 00332 } 00333 s << indent << "cycle_slip_flag: "; 00334 Printer<uint16_t>::stream(s, indent + " ", v.cycle_slip_flag); 00335 s << indent << "gams_heading: "; 00336 Printer<double>::stream(s, indent + " ", v.gams_heading); 00337 s << indent << "gams_heading_rms_err: "; 00338 Printer<double>::stream(s, indent + " ", v.gams_heading_rms_err); 00339 } 00340 }; 00341 00342 00343 } // namespace message_operations 00344 } // namespace ros 00345 00346 #endif // APPLANIX_MSGS_MESSAGE_GAMS_H 00347