$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/NavigationSolution.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_NAVIGATIONSOLUTION_H 00003 #define APPLANIX_MSGS_MESSAGE_NAVIGATIONSOLUTION_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 NavigationSolution_ { 00023 typedef NavigationSolution_<ContainerAllocator> Type; 00024 00025 NavigationSolution_() 00026 : td() 00027 , latitude(0.0) 00028 , longitude(0.0) 00029 , altitude(0.0) 00030 , north_vel(0.0) 00031 , east_vel(0.0) 00032 , down_vel(0.0) 00033 , roll(0.0) 00034 , pitch(0.0) 00035 , heading(0.0) 00036 , wander_angle(0.0) 00037 , track_angle(0.0) 00038 , speed(0.0) 00039 , ang_rate_long(0.0) 00040 , ang_rate_trans(0.0) 00041 , ang_rate_down(0.0) 00042 , long_accel(0.0) 00043 , trans_accel(0.0) 00044 , down_accel(0.0) 00045 , alignment_status(0) 00046 { 00047 } 00048 00049 NavigationSolution_(const ContainerAllocator& _alloc) 00050 : td(_alloc) 00051 , latitude(0.0) 00052 , longitude(0.0) 00053 , altitude(0.0) 00054 , north_vel(0.0) 00055 , east_vel(0.0) 00056 , down_vel(0.0) 00057 , roll(0.0) 00058 , pitch(0.0) 00059 , heading(0.0) 00060 , wander_angle(0.0) 00061 , track_angle(0.0) 00062 , speed(0.0) 00063 , ang_rate_long(0.0) 00064 , ang_rate_trans(0.0) 00065 , ang_rate_down(0.0) 00066 , long_accel(0.0) 00067 , trans_accel(0.0) 00068 , down_accel(0.0) 00069 , alignment_status(0) 00070 { 00071 } 00072 00073 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00074 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00075 00076 typedef double _latitude_type; 00077 double latitude; 00078 00079 typedef double _longitude_type; 00080 double longitude; 00081 00082 typedef double _altitude_type; 00083 double altitude; 00084 00085 typedef float _north_vel_type; 00086 float north_vel; 00087 00088 typedef float _east_vel_type; 00089 float east_vel; 00090 00091 typedef float _down_vel_type; 00092 float down_vel; 00093 00094 typedef double _roll_type; 00095 double roll; 00096 00097 typedef double _pitch_type; 00098 double pitch; 00099 00100 typedef double _heading_type; 00101 double heading; 00102 00103 typedef double _wander_angle_type; 00104 double wander_angle; 00105 00106 typedef float _track_angle_type; 00107 float track_angle; 00108 00109 typedef float _speed_type; 00110 float speed; 00111 00112 typedef float _ang_rate_long_type; 00113 float ang_rate_long; 00114 00115 typedef float _ang_rate_trans_type; 00116 float ang_rate_trans; 00117 00118 typedef float _ang_rate_down_type; 00119 float ang_rate_down; 00120 00121 typedef float _long_accel_type; 00122 float long_accel; 00123 00124 typedef float _trans_accel_type; 00125 float trans_accel; 00126 00127 typedef float _down_accel_type; 00128 float down_accel; 00129 00130 typedef uint8_t _alignment_status_type; 00131 uint8_t alignment_status; 00132 00133 enum { ALIGNMENT_FULL_NAVIGATION = 0 }; 00134 enum { ALIGNMENT_FINE_ALIGNMENT_ACTIVE = 1 }; 00135 enum { ALIGNMENT_GC_CHI_2 = 2 }; 00136 enum { ALIGNMENT_PC_CHI_2 = 3 }; 00137 enum { ALIGNMENT_GC_CHI_1 = 4 }; 00138 enum { ALIGNMENT_PC_CHI_1 = 5 }; 00139 enum { ALIGNMENT_COARSE_LEVELING = 6 }; 00140 enum { ALIGNMENT_INITIAL_SOLUTION = 7 }; 00141 enum { ALIGNMENT_NO_VALID_SOLUTION = 8 }; 00142 00143 private: 00144 static const char* __s_getDataType_() { return "applanix_msgs/NavigationSolution"; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00147 00148 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00149 00150 private: 00151 static const char* __s_getMD5Sum_() { return "5bd9b6a0dde762b9354121b78d050654"; } 00152 public: 00153 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00154 00155 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00156 00157 private: 00158 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00159 \n\ 00160 # Position in degrees\n\ 00161 float64 latitude\n\ 00162 float64 longitude\n\ 00163 \n\ 00164 # Meters\n\ 00165 float64 altitude\n\ 00166 \n\ 00167 # Meters/second\n\ 00168 float32 north_vel\n\ 00169 float32 east_vel\n\ 00170 float32 down_vel\n\ 00171 \n\ 00172 # Degrees\n\ 00173 float64 roll\n\ 00174 float64 pitch\n\ 00175 float64 heading\n\ 00176 float64 wander_angle\n\ 00177 float32 track_angle\n\ 00178 \n\ 00179 # Meters/second\n\ 00180 float32 speed\n\ 00181 \n\ 00182 # Degrees/second\n\ 00183 float32 ang_rate_long\n\ 00184 float32 ang_rate_trans\n\ 00185 float32 ang_rate_down\n\ 00186 \n\ 00187 # Meters/second^2\n\ 00188 float32 long_accel\n\ 00189 float32 trans_accel\n\ 00190 float32 down_accel\n\ 00191 \n\ 00192 uint8 ALIGNMENT_FULL_NAVIGATION=0\n\ 00193 uint8 ALIGNMENT_FINE_ALIGNMENT_ACTIVE=1\n\ 00194 uint8 ALIGNMENT_GC_CHI_2=2\n\ 00195 uint8 ALIGNMENT_PC_CHI_2=3\n\ 00196 uint8 ALIGNMENT_GC_CHI_1=4\n\ 00197 uint8 ALIGNMENT_PC_CHI_1=5\n\ 00198 uint8 ALIGNMENT_COARSE_LEVELING=6\n\ 00199 uint8 ALIGNMENT_INITIAL_SOLUTION=7\n\ 00200 uint8 ALIGNMENT_NO_VALID_SOLUTION=8\n\ 00201 uint8 alignment_status\n\ 00202 \n\ 00203 ================================================================================\n\ 00204 MSG: applanix_msgs/TimeDistance\n\ 00205 float64 time1\n\ 00206 float64 time2\n\ 00207 float64 distance\n\ 00208 uint8 time_types\n\ 00209 uint8 distance_type\n\ 00210 \n\ 00211 "; } 00212 public: 00213 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00214 00215 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00216 00217 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00218 { 00219 ros::serialization::OStream stream(write_ptr, 1000000000); 00220 ros::serialization::serialize(stream, td); 00221 ros::serialization::serialize(stream, latitude); 00222 ros::serialization::serialize(stream, longitude); 00223 ros::serialization::serialize(stream, altitude); 00224 ros::serialization::serialize(stream, north_vel); 00225 ros::serialization::serialize(stream, east_vel); 00226 ros::serialization::serialize(stream, down_vel); 00227 ros::serialization::serialize(stream, roll); 00228 ros::serialization::serialize(stream, pitch); 00229 ros::serialization::serialize(stream, heading); 00230 ros::serialization::serialize(stream, wander_angle); 00231 ros::serialization::serialize(stream, track_angle); 00232 ros::serialization::serialize(stream, speed); 00233 ros::serialization::serialize(stream, ang_rate_long); 00234 ros::serialization::serialize(stream, ang_rate_trans); 00235 ros::serialization::serialize(stream, ang_rate_down); 00236 ros::serialization::serialize(stream, long_accel); 00237 ros::serialization::serialize(stream, trans_accel); 00238 ros::serialization::serialize(stream, down_accel); 00239 ros::serialization::serialize(stream, alignment_status); 00240 return stream.getData(); 00241 } 00242 00243 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00244 { 00245 ros::serialization::IStream stream(read_ptr, 1000000000); 00246 ros::serialization::deserialize(stream, td); 00247 ros::serialization::deserialize(stream, latitude); 00248 ros::serialization::deserialize(stream, longitude); 00249 ros::serialization::deserialize(stream, altitude); 00250 ros::serialization::deserialize(stream, north_vel); 00251 ros::serialization::deserialize(stream, east_vel); 00252 ros::serialization::deserialize(stream, down_vel); 00253 ros::serialization::deserialize(stream, roll); 00254 ros::serialization::deserialize(stream, pitch); 00255 ros::serialization::deserialize(stream, heading); 00256 ros::serialization::deserialize(stream, wander_angle); 00257 ros::serialization::deserialize(stream, track_angle); 00258 ros::serialization::deserialize(stream, speed); 00259 ros::serialization::deserialize(stream, ang_rate_long); 00260 ros::serialization::deserialize(stream, ang_rate_trans); 00261 ros::serialization::deserialize(stream, ang_rate_down); 00262 ros::serialization::deserialize(stream, long_accel); 00263 ros::serialization::deserialize(stream, trans_accel); 00264 ros::serialization::deserialize(stream, down_accel); 00265 ros::serialization::deserialize(stream, alignment_status); 00266 return stream.getData(); 00267 } 00268 00269 ROS_DEPRECATED virtual uint32_t serializationLength() const 00270 { 00271 uint32_t size = 0; 00272 size += ros::serialization::serializationLength(td); 00273 size += ros::serialization::serializationLength(latitude); 00274 size += ros::serialization::serializationLength(longitude); 00275 size += ros::serialization::serializationLength(altitude); 00276 size += ros::serialization::serializationLength(north_vel); 00277 size += ros::serialization::serializationLength(east_vel); 00278 size += ros::serialization::serializationLength(down_vel); 00279 size += ros::serialization::serializationLength(roll); 00280 size += ros::serialization::serializationLength(pitch); 00281 size += ros::serialization::serializationLength(heading); 00282 size += ros::serialization::serializationLength(wander_angle); 00283 size += ros::serialization::serializationLength(track_angle); 00284 size += ros::serialization::serializationLength(speed); 00285 size += ros::serialization::serializationLength(ang_rate_long); 00286 size += ros::serialization::serializationLength(ang_rate_trans); 00287 size += ros::serialization::serializationLength(ang_rate_down); 00288 size += ros::serialization::serializationLength(long_accel); 00289 size += ros::serialization::serializationLength(trans_accel); 00290 size += ros::serialization::serializationLength(down_accel); 00291 size += ros::serialization::serializationLength(alignment_status); 00292 return size; 00293 } 00294 00295 typedef boost::shared_ptr< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > Ptr; 00296 typedef boost::shared_ptr< ::applanix_msgs::NavigationSolution_<ContainerAllocator> const> ConstPtr; 00297 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00298 }; // struct NavigationSolution 00299 typedef ::applanix_msgs::NavigationSolution_<std::allocator<void> > NavigationSolution; 00300 00301 typedef boost::shared_ptr< ::applanix_msgs::NavigationSolution> NavigationSolutionPtr; 00302 typedef boost::shared_ptr< ::applanix_msgs::NavigationSolution const> NavigationSolutionConstPtr; 00303 00304 00305 template<typename ContainerAllocator> 00306 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::NavigationSolution_<ContainerAllocator> & v) 00307 { 00308 ros::message_operations::Printer< ::applanix_msgs::NavigationSolution_<ContainerAllocator> >::stream(s, "", v); 00309 return s;} 00310 00311 } // namespace applanix_msgs 00312 00313 namespace ros 00314 { 00315 namespace message_traits 00316 { 00317 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > : public TrueType {}; 00318 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NavigationSolution_<ContainerAllocator> const> : public TrueType {}; 00319 template<class ContainerAllocator> 00320 struct MD5Sum< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > { 00321 static const char* value() 00322 { 00323 return "5bd9b6a0dde762b9354121b78d050654"; 00324 } 00325 00326 static const char* value(const ::applanix_msgs::NavigationSolution_<ContainerAllocator> &) { return value(); } 00327 static const uint64_t static_value1 = 0x5bd9b6a0dde762b9ULL; 00328 static const uint64_t static_value2 = 0x354121b78d050654ULL; 00329 }; 00330 00331 template<class ContainerAllocator> 00332 struct DataType< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > { 00333 static const char* value() 00334 { 00335 return "applanix_msgs/NavigationSolution"; 00336 } 00337 00338 static const char* value(const ::applanix_msgs::NavigationSolution_<ContainerAllocator> &) { return value(); } 00339 }; 00340 00341 template<class ContainerAllocator> 00342 struct Definition< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > { 00343 static const char* value() 00344 { 00345 return "TimeDistance td\n\ 00346 \n\ 00347 # Position in degrees\n\ 00348 float64 latitude\n\ 00349 float64 longitude\n\ 00350 \n\ 00351 # Meters\n\ 00352 float64 altitude\n\ 00353 \n\ 00354 # Meters/second\n\ 00355 float32 north_vel\n\ 00356 float32 east_vel\n\ 00357 float32 down_vel\n\ 00358 \n\ 00359 # Degrees\n\ 00360 float64 roll\n\ 00361 float64 pitch\n\ 00362 float64 heading\n\ 00363 float64 wander_angle\n\ 00364 float32 track_angle\n\ 00365 \n\ 00366 # Meters/second\n\ 00367 float32 speed\n\ 00368 \n\ 00369 # Degrees/second\n\ 00370 float32 ang_rate_long\n\ 00371 float32 ang_rate_trans\n\ 00372 float32 ang_rate_down\n\ 00373 \n\ 00374 # Meters/second^2\n\ 00375 float32 long_accel\n\ 00376 float32 trans_accel\n\ 00377 float32 down_accel\n\ 00378 \n\ 00379 uint8 ALIGNMENT_FULL_NAVIGATION=0\n\ 00380 uint8 ALIGNMENT_FINE_ALIGNMENT_ACTIVE=1\n\ 00381 uint8 ALIGNMENT_GC_CHI_2=2\n\ 00382 uint8 ALIGNMENT_PC_CHI_2=3\n\ 00383 uint8 ALIGNMENT_GC_CHI_1=4\n\ 00384 uint8 ALIGNMENT_PC_CHI_1=5\n\ 00385 uint8 ALIGNMENT_COARSE_LEVELING=6\n\ 00386 uint8 ALIGNMENT_INITIAL_SOLUTION=7\n\ 00387 uint8 ALIGNMENT_NO_VALID_SOLUTION=8\n\ 00388 uint8 alignment_status\n\ 00389 \n\ 00390 ================================================================================\n\ 00391 MSG: applanix_msgs/TimeDistance\n\ 00392 float64 time1\n\ 00393 float64 time2\n\ 00394 float64 distance\n\ 00395 uint8 time_types\n\ 00396 uint8 distance_type\n\ 00397 \n\ 00398 "; 00399 } 00400 00401 static const char* value(const ::applanix_msgs::NavigationSolution_<ContainerAllocator> &) { return value(); } 00402 }; 00403 00404 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > : public TrueType {}; 00405 } // namespace message_traits 00406 } // namespace ros 00407 00408 namespace ros 00409 { 00410 namespace serialization 00411 { 00412 00413 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > 00414 { 00415 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00416 { 00417 stream.next(m.td); 00418 stream.next(m.latitude); 00419 stream.next(m.longitude); 00420 stream.next(m.altitude); 00421 stream.next(m.north_vel); 00422 stream.next(m.east_vel); 00423 stream.next(m.down_vel); 00424 stream.next(m.roll); 00425 stream.next(m.pitch); 00426 stream.next(m.heading); 00427 stream.next(m.wander_angle); 00428 stream.next(m.track_angle); 00429 stream.next(m.speed); 00430 stream.next(m.ang_rate_long); 00431 stream.next(m.ang_rate_trans); 00432 stream.next(m.ang_rate_down); 00433 stream.next(m.long_accel); 00434 stream.next(m.trans_accel); 00435 stream.next(m.down_accel); 00436 stream.next(m.alignment_status); 00437 } 00438 00439 ROS_DECLARE_ALLINONE_SERIALIZER; 00440 }; // struct NavigationSolution_ 00441 } // namespace serialization 00442 } // namespace ros 00443 00444 namespace ros 00445 { 00446 namespace message_operations 00447 { 00448 00449 template<class ContainerAllocator> 00450 struct Printer< ::applanix_msgs::NavigationSolution_<ContainerAllocator> > 00451 { 00452 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::NavigationSolution_<ContainerAllocator> & v) 00453 { 00454 s << indent << "td: "; 00455 s << std::endl; 00456 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00457 s << indent << "latitude: "; 00458 Printer<double>::stream(s, indent + " ", v.latitude); 00459 s << indent << "longitude: "; 00460 Printer<double>::stream(s, indent + " ", v.longitude); 00461 s << indent << "altitude: "; 00462 Printer<double>::stream(s, indent + " ", v.altitude); 00463 s << indent << "north_vel: "; 00464 Printer<float>::stream(s, indent + " ", v.north_vel); 00465 s << indent << "east_vel: "; 00466 Printer<float>::stream(s, indent + " ", v.east_vel); 00467 s << indent << "down_vel: "; 00468 Printer<float>::stream(s, indent + " ", v.down_vel); 00469 s << indent << "roll: "; 00470 Printer<double>::stream(s, indent + " ", v.roll); 00471 s << indent << "pitch: "; 00472 Printer<double>::stream(s, indent + " ", v.pitch); 00473 s << indent << "heading: "; 00474 Printer<double>::stream(s, indent + " ", v.heading); 00475 s << indent << "wander_angle: "; 00476 Printer<double>::stream(s, indent + " ", v.wander_angle); 00477 s << indent << "track_angle: "; 00478 Printer<float>::stream(s, indent + " ", v.track_angle); 00479 s << indent << "speed: "; 00480 Printer<float>::stream(s, indent + " ", v.speed); 00481 s << indent << "ang_rate_long: "; 00482 Printer<float>::stream(s, indent + " ", v.ang_rate_long); 00483 s << indent << "ang_rate_trans: "; 00484 Printer<float>::stream(s, indent + " ", v.ang_rate_trans); 00485 s << indent << "ang_rate_down: "; 00486 Printer<float>::stream(s, indent + " ", v.ang_rate_down); 00487 s << indent << "long_accel: "; 00488 Printer<float>::stream(s, indent + " ", v.long_accel); 00489 s << indent << "trans_accel: "; 00490 Printer<float>::stream(s, indent + " ", v.trans_accel); 00491 s << indent << "down_accel: "; 00492 Printer<float>::stream(s, indent + " ", v.down_accel); 00493 s << indent << "alignment_status: "; 00494 Printer<uint8_t>::stream(s, indent + " ", v.alignment_status); 00495 } 00496 }; 00497 00498 00499 } // namespace message_operations 00500 } // namespace ros 00501 00502 #endif // APPLANIX_MSGS_MESSAGE_NAVIGATIONSOLUTION_H 00503