$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/IINSolutionStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_IINSOLUTIONSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_IINSOLUTIONSTATUS_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 IINSolutionStatus_ { 00023 typedef IINSolutionStatus_<ContainerAllocator> Type; 00024 00025 IINSolutionStatus_() 00026 : td() 00027 , num_satellites(0) 00028 , a_priori_pdop(0.0) 00029 , baseline_length(0.0) 00030 , status(0) 00031 , prn_assignment() 00032 , l1_cycle_slip_flag(0) 00033 , l2_cycle_slip_flag(0) 00034 { 00035 prn_assignment.assign(0); 00036 } 00037 00038 IINSolutionStatus_(const ContainerAllocator& _alloc) 00039 : td(_alloc) 00040 , num_satellites(0) 00041 , a_priori_pdop(0.0) 00042 , baseline_length(0.0) 00043 , status(0) 00044 , prn_assignment() 00045 , l1_cycle_slip_flag(0) 00046 , l2_cycle_slip_flag(0) 00047 { 00048 prn_assignment.assign(0); 00049 } 00050 00051 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00052 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00053 00054 typedef uint16_t _num_satellites_type; 00055 uint16_t num_satellites; 00056 00057 typedef float _a_priori_pdop_type; 00058 float a_priori_pdop; 00059 00060 typedef float _baseline_length_type; 00061 float baseline_length; 00062 00063 typedef uint16_t _status_type; 00064 uint16_t status; 00065 00066 typedef boost::array<uint8_t, 12> _prn_assignment_type; 00067 boost::array<uint8_t, 12> prn_assignment; 00068 00069 typedef uint16_t _l1_cycle_slip_flag_type; 00070 uint16_t l1_cycle_slip_flag; 00071 00072 typedef uint16_t _l2_cycle_slip_flag_type; 00073 uint16_t l2_cycle_slip_flag; 00074 00075 enum { STATUS_FIXED_NARROW_LANE_RTK = 1 }; 00076 enum { STATUS_FIXED_WIDE_LANE_RTK = 2 }; 00077 enum { STATUS_FLOAT_RTK = 3 }; 00078 enum { STATUS_CODE_DGPS = 4 }; 00079 enum { STATUS_RTCM_DGPS = 5 }; 00080 enum { STATUS_AUTONOMOUS_CA = 6 }; 00081 enum { STATUS_GNSS_NAV_SOLUTION = 7 }; 00082 enum { STATUS_NO_SOLUTION = 8 }; 00083 00084 ROS_DEPRECATED uint32_t get_prn_assignment_size() const { return (uint32_t)prn_assignment.size(); } 00085 private: 00086 static const char* __s_getDataType_() { return "applanix_msgs/IINSolutionStatus"; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00089 00090 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00091 00092 private: 00093 static const char* __s_getMD5Sum_() { return "421e809231149ab046729933cacbd490"; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00096 00097 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00098 00099 private: 00100 static const char* __s_getMessageDefinition_() { return "# Group 20\n\ 00101 TimeDistance td\n\ 00102 \n\ 00103 uint16 num_satellites\n\ 00104 float32 a_priori_pdop\n\ 00105 float32 baseline_length\n\ 00106 \n\ 00107 uint16 STATUS_FIXED_NARROW_LANE_RTK=1\n\ 00108 uint16 STATUS_FIXED_WIDE_LANE_RTK=2\n\ 00109 uint16 STATUS_FLOAT_RTK=3\n\ 00110 uint16 STATUS_CODE_DGPS=4\n\ 00111 uint16 STATUS_RTCM_DGPS=5\n\ 00112 uint16 STATUS_AUTONOMOUS_CA=6\n\ 00113 uint16 STATUS_GNSS_NAV_SOLUTION=7\n\ 00114 uint16 STATUS_NO_SOLUTION=8\n\ 00115 uint16 status\n\ 00116 \n\ 00117 uint8[12] prn_assignment\n\ 00118 \n\ 00119 uint16 l1_cycle_slip_flag \n\ 00120 uint16 l2_cycle_slip_flag \n\ 00121 \n\ 00122 ================================================================================\n\ 00123 MSG: applanix_msgs/TimeDistance\n\ 00124 float64 time1\n\ 00125 float64 time2\n\ 00126 float64 distance\n\ 00127 uint8 time_types\n\ 00128 uint8 distance_type\n\ 00129 \n\ 00130 "; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00137 { 00138 ros::serialization::OStream stream(write_ptr, 1000000000); 00139 ros::serialization::serialize(stream, td); 00140 ros::serialization::serialize(stream, num_satellites); 00141 ros::serialization::serialize(stream, a_priori_pdop); 00142 ros::serialization::serialize(stream, baseline_length); 00143 ros::serialization::serialize(stream, status); 00144 ros::serialization::serialize(stream, prn_assignment); 00145 ros::serialization::serialize(stream, l1_cycle_slip_flag); 00146 ros::serialization::serialize(stream, l2_cycle_slip_flag); 00147 return stream.getData(); 00148 } 00149 00150 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00151 { 00152 ros::serialization::IStream stream(read_ptr, 1000000000); 00153 ros::serialization::deserialize(stream, td); 00154 ros::serialization::deserialize(stream, num_satellites); 00155 ros::serialization::deserialize(stream, a_priori_pdop); 00156 ros::serialization::deserialize(stream, baseline_length); 00157 ros::serialization::deserialize(stream, status); 00158 ros::serialization::deserialize(stream, prn_assignment); 00159 ros::serialization::deserialize(stream, l1_cycle_slip_flag); 00160 ros::serialization::deserialize(stream, l2_cycle_slip_flag); 00161 return stream.getData(); 00162 } 00163 00164 ROS_DEPRECATED virtual uint32_t serializationLength() const 00165 { 00166 uint32_t size = 0; 00167 size += ros::serialization::serializationLength(td); 00168 size += ros::serialization::serializationLength(num_satellites); 00169 size += ros::serialization::serializationLength(a_priori_pdop); 00170 size += ros::serialization::serializationLength(baseline_length); 00171 size += ros::serialization::serializationLength(status); 00172 size += ros::serialization::serializationLength(prn_assignment); 00173 size += ros::serialization::serializationLength(l1_cycle_slip_flag); 00174 size += ros::serialization::serializationLength(l2_cycle_slip_flag); 00175 return size; 00176 } 00177 00178 typedef boost::shared_ptr< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > Ptr; 00179 typedef boost::shared_ptr< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> const> ConstPtr; 00180 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00181 }; // struct IINSolutionStatus 00182 typedef ::applanix_msgs::IINSolutionStatus_<std::allocator<void> > IINSolutionStatus; 00183 00184 typedef boost::shared_ptr< ::applanix_msgs::IINSolutionStatus> IINSolutionStatusPtr; 00185 typedef boost::shared_ptr< ::applanix_msgs::IINSolutionStatus const> IINSolutionStatusConstPtr; 00186 00187 00188 template<typename ContainerAllocator> 00189 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> & v) 00190 { 00191 ros::message_operations::Printer< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> >::stream(s, "", v); 00192 return s;} 00193 00194 } // namespace applanix_msgs 00195 00196 namespace ros 00197 { 00198 namespace message_traits 00199 { 00200 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > : public TrueType {}; 00201 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> const> : public TrueType {}; 00202 template<class ContainerAllocator> 00203 struct MD5Sum< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > { 00204 static const char* value() 00205 { 00206 return "421e809231149ab046729933cacbd490"; 00207 } 00208 00209 static const char* value(const ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> &) { return value(); } 00210 static const uint64_t static_value1 = 0x421e809231149ab0ULL; 00211 static const uint64_t static_value2 = 0x46729933cacbd490ULL; 00212 }; 00213 00214 template<class ContainerAllocator> 00215 struct DataType< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > { 00216 static const char* value() 00217 { 00218 return "applanix_msgs/IINSolutionStatus"; 00219 } 00220 00221 static const char* value(const ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> &) { return value(); } 00222 }; 00223 00224 template<class ContainerAllocator> 00225 struct Definition< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "# Group 20\n\ 00229 TimeDistance td\n\ 00230 \n\ 00231 uint16 num_satellites\n\ 00232 float32 a_priori_pdop\n\ 00233 float32 baseline_length\n\ 00234 \n\ 00235 uint16 STATUS_FIXED_NARROW_LANE_RTK=1\n\ 00236 uint16 STATUS_FIXED_WIDE_LANE_RTK=2\n\ 00237 uint16 STATUS_FLOAT_RTK=3\n\ 00238 uint16 STATUS_CODE_DGPS=4\n\ 00239 uint16 STATUS_RTCM_DGPS=5\n\ 00240 uint16 STATUS_AUTONOMOUS_CA=6\n\ 00241 uint16 STATUS_GNSS_NAV_SOLUTION=7\n\ 00242 uint16 STATUS_NO_SOLUTION=8\n\ 00243 uint16 status\n\ 00244 \n\ 00245 uint8[12] prn_assignment\n\ 00246 \n\ 00247 uint16 l1_cycle_slip_flag \n\ 00248 uint16 l2_cycle_slip_flag \n\ 00249 \n\ 00250 ================================================================================\n\ 00251 MSG: applanix_msgs/TimeDistance\n\ 00252 float64 time1\n\ 00253 float64 time2\n\ 00254 float64 distance\n\ 00255 uint8 time_types\n\ 00256 uint8 distance_type\n\ 00257 \n\ 00258 "; 00259 } 00260 00261 static const char* value(const ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> &) { return value(); } 00262 }; 00263 00264 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > : public TrueType {}; 00265 } // namespace message_traits 00266 } // namespace ros 00267 00268 namespace ros 00269 { 00270 namespace serialization 00271 { 00272 00273 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > 00274 { 00275 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00276 { 00277 stream.next(m.td); 00278 stream.next(m.num_satellites); 00279 stream.next(m.a_priori_pdop); 00280 stream.next(m.baseline_length); 00281 stream.next(m.status); 00282 stream.next(m.prn_assignment); 00283 stream.next(m.l1_cycle_slip_flag); 00284 stream.next(m.l2_cycle_slip_flag); 00285 } 00286 00287 ROS_DECLARE_ALLINONE_SERIALIZER; 00288 }; // struct IINSolutionStatus_ 00289 } // namespace serialization 00290 } // namespace ros 00291 00292 namespace ros 00293 { 00294 namespace message_operations 00295 { 00296 00297 template<class ContainerAllocator> 00298 struct Printer< ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> > 00299 { 00300 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::IINSolutionStatus_<ContainerAllocator> & v) 00301 { 00302 s << indent << "td: "; 00303 s << std::endl; 00304 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00305 s << indent << "num_satellites: "; 00306 Printer<uint16_t>::stream(s, indent + " ", v.num_satellites); 00307 s << indent << "a_priori_pdop: "; 00308 Printer<float>::stream(s, indent + " ", v.a_priori_pdop); 00309 s << indent << "baseline_length: "; 00310 Printer<float>::stream(s, indent + " ", v.baseline_length); 00311 s << indent << "status: "; 00312 Printer<uint16_t>::stream(s, indent + " ", v.status); 00313 s << indent << "prn_assignment[]" << std::endl; 00314 for (size_t i = 0; i < v.prn_assignment.size(); ++i) 00315 { 00316 s << indent << " prn_assignment[" << i << "]: "; 00317 Printer<uint8_t>::stream(s, indent + " ", v.prn_assignment[i]); 00318 } 00319 s << indent << "l1_cycle_slip_flag: "; 00320 Printer<uint16_t>::stream(s, indent + " ", v.l1_cycle_slip_flag); 00321 s << indent << "l2_cycle_slip_flag: "; 00322 Printer<uint16_t>::stream(s, indent + " ", v.l2_cycle_slip_flag); 00323 } 00324 }; 00325 00326 00327 } // namespace message_operations 00328 } // namespace ros 00329 00330 #endif // APPLANIX_MSGS_MESSAGE_IINSOLUTIONSTATUS_H 00331