$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/GNSSDGPSStationDatabase.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATIONDATABASE_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATIONDATABASE_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/GNSSDGPSStation.h" 00019 00020 namespace applanix_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct GNSSDGPSStationDatabase_ { 00024 typedef GNSSDGPSStationDatabase_<ContainerAllocator> Type; 00025 00026 GNSSDGPSStationDatabase_() 00027 : td() 00028 , stations() 00029 { 00030 } 00031 00032 GNSSDGPSStationDatabase_(const ContainerAllocator& _alloc) 00033 : td(_alloc) 00034 , stations(_alloc) 00035 { 00036 } 00037 00038 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00039 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00040 00041 typedef std::vector< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::other > _stations_type; 00042 std::vector< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::other > stations; 00043 00044 00045 ROS_DEPRECATED uint32_t get_stations_size() const { return (uint32_t)stations.size(); } 00046 ROS_DEPRECATED void set_stations_size(uint32_t size) { stations.resize((size_t)size); } 00047 ROS_DEPRECATED void get_stations_vec(std::vector< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::other > & vec) const { vec = this->stations; } 00048 ROS_DEPRECATED void set_stations_vec(const std::vector< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::other > & vec) { this->stations = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "applanix_msgs/GNSSDGPSStationDatabase"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "c954eb8ef0a53b8f04965106e84e8a92"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# Group 26\n\ 00065 TimeDistance td\n\ 00066 \n\ 00067 GNSSDGPSStation[] stations\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: applanix_msgs/TimeDistance\n\ 00071 float64 time1\n\ 00072 float64 time2\n\ 00073 float64 distance\n\ 00074 uint8 time_types\n\ 00075 uint8 distance_type\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: applanix_msgs/GNSSDGPSStation\n\ 00079 # Part of Group 26\n\ 00080 \n\ 00081 uint8 FLAGS_SATELLITE=1\n\ 00082 uint8 FLAGS_STATION_PROVIDING_CORRECTIONS=2\n\ 00083 uint8 FLAGS_STATION_USED_AS_RTCM_SOURCE=4\n\ 00084 uint8 FLAGS_OMNISTAR_STATIONS=8\n\ 00085 uint8 flags\n\ 00086 \n\ 00087 uint16 id\n\ 00088 uint16 frequency\n\ 00089 \n\ 00090 uint8 HEALTH_NORMAL=0\n\ 00091 uint8 HEALTH_NOT_MONITORED=1\n\ 00092 uint8 HEALTH_NO_INFO_AVAILABLE=2\n\ 00093 uint8 HEALTH_DO_NOT_USE=3\n\ 00094 uint8 health\n\ 00095 \n\ 00096 float32 distance\n\ 00097 float32 range\n\ 00098 uint8 uscg_index\n\ 00099 uint32 seconds\n\ 00100 \n\ 00101 uint8 RATE_25BPS=0\n\ 00102 uint8 RATE_50BPS=1\n\ 00103 uint8 RATE_100BPS=2\n\ 00104 uint8 RATE_200BPS=3\n\ 00105 uint8 RATE_600BPS=4\n\ 00106 uint8 RATE_1200BPS=5\n\ 00107 uint8 RATE_2400BPS=6\n\ 00108 uint8 RATE_4800BPS=7\n\ 00109 uint8 modulation_rate\n\ 00110 \n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, td); 00121 ros::serialization::serialize(stream, stations); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00126 { 00127 ros::serialization::IStream stream(read_ptr, 1000000000); 00128 ros::serialization::deserialize(stream, td); 00129 ros::serialization::deserialize(stream, stations); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(td); 00137 size += ros::serialization::serializationLength(stations); 00138 return size; 00139 } 00140 00141 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > Ptr; 00142 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> const> ConstPtr; 00143 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00144 }; // struct GNSSDGPSStationDatabase 00145 typedef ::applanix_msgs::GNSSDGPSStationDatabase_<std::allocator<void> > GNSSDGPSStationDatabase; 00146 00147 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStationDatabase> GNSSDGPSStationDatabasePtr; 00148 typedef boost::shared_ptr< ::applanix_msgs::GNSSDGPSStationDatabase const> GNSSDGPSStationDatabaseConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace applanix_msgs 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > : public TrueType {}; 00164 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> const> : public TrueType {}; 00165 template<class ContainerAllocator> 00166 struct MD5Sum< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "c954eb8ef0a53b8f04965106e84e8a92"; 00170 } 00171 00172 static const char* value(const ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> &) { return value(); } 00173 static const uint64_t static_value1 = 0xc954eb8ef0a53b8fULL; 00174 static const uint64_t static_value2 = 0x04965106e84e8a92ULL; 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct DataType< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "applanix_msgs/GNSSDGPSStationDatabase"; 00182 } 00183 00184 static const char* value(const ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct Definition< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "# Group 26\n\ 00192 TimeDistance td\n\ 00193 \n\ 00194 GNSSDGPSStation[] stations\n\ 00195 \n\ 00196 ================================================================================\n\ 00197 MSG: applanix_msgs/TimeDistance\n\ 00198 float64 time1\n\ 00199 float64 time2\n\ 00200 float64 distance\n\ 00201 uint8 time_types\n\ 00202 uint8 distance_type\n\ 00203 \n\ 00204 ================================================================================\n\ 00205 MSG: applanix_msgs/GNSSDGPSStation\n\ 00206 # Part of Group 26\n\ 00207 \n\ 00208 uint8 FLAGS_SATELLITE=1\n\ 00209 uint8 FLAGS_STATION_PROVIDING_CORRECTIONS=2\n\ 00210 uint8 FLAGS_STATION_USED_AS_RTCM_SOURCE=4\n\ 00211 uint8 FLAGS_OMNISTAR_STATIONS=8\n\ 00212 uint8 flags\n\ 00213 \n\ 00214 uint16 id\n\ 00215 uint16 frequency\n\ 00216 \n\ 00217 uint8 HEALTH_NORMAL=0\n\ 00218 uint8 HEALTH_NOT_MONITORED=1\n\ 00219 uint8 HEALTH_NO_INFO_AVAILABLE=2\n\ 00220 uint8 HEALTH_DO_NOT_USE=3\n\ 00221 uint8 health\n\ 00222 \n\ 00223 float32 distance\n\ 00224 float32 range\n\ 00225 uint8 uscg_index\n\ 00226 uint32 seconds\n\ 00227 \n\ 00228 uint8 RATE_25BPS=0\n\ 00229 uint8 RATE_50BPS=1\n\ 00230 uint8 RATE_100BPS=2\n\ 00231 uint8 RATE_200BPS=3\n\ 00232 uint8 RATE_600BPS=4\n\ 00233 uint8 RATE_1200BPS=5\n\ 00234 uint8 RATE_2400BPS=6\n\ 00235 uint8 RATE_4800BPS=7\n\ 00236 uint8 modulation_rate\n\ 00237 \n\ 00238 "; 00239 } 00240 00241 static const char* value(const ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> &) { return value(); } 00242 }; 00243 00244 } // namespace message_traits 00245 } // namespace ros 00246 00247 namespace ros 00248 { 00249 namespace serialization 00250 { 00251 00252 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > 00253 { 00254 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00255 { 00256 stream.next(m.td); 00257 stream.next(m.stations); 00258 } 00259 00260 ROS_DECLARE_ALLINONE_SERIALIZER; 00261 }; // struct GNSSDGPSStationDatabase_ 00262 } // namespace serialization 00263 } // namespace ros 00264 00265 namespace ros 00266 { 00267 namespace message_operations 00268 { 00269 00270 template<class ContainerAllocator> 00271 struct Printer< ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> > 00272 { 00273 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSDGPSStationDatabase_<ContainerAllocator> & v) 00274 { 00275 s << indent << "td: "; 00276 s << std::endl; 00277 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00278 s << indent << "stations[]" << std::endl; 00279 for (size_t i = 0; i < v.stations.size(); ++i) 00280 { 00281 s << indent << " stations[" << i << "]: "; 00282 s << std::endl; 00283 s << indent; 00284 Printer< ::applanix_msgs::GNSSDGPSStation_<ContainerAllocator> >::stream(s, indent + " ", v.stations[i]); 00285 } 00286 } 00287 }; 00288 00289 00290 } // namespace message_operations 00291 } // namespace ros 00292 00293 #endif // APPLANIX_MSGS_MESSAGE_GNSSDGPSSTATIONDATABASE_H 00294