$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/DGPSSourceControl.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_DGPSSOURCECONTROL_H 00003 #define APPLANIX_MSGS_MESSAGE_DGPSSOURCECONTROL_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 00018 namespace applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct DGPSSourceControl_ { 00022 typedef DGPSSourceControl_<ContainerAllocator> Type; 00023 00024 DGPSSourceControl_() 00025 : transaction(0) 00026 , dgps_source_mode(0) 00027 , beacon_acquisition_mode(0) 00028 , beacon_channel_0_frequency(0) 00029 , beacon_channel_1_frequency(0) 00030 , satellite_id(0) 00031 , satellite_bitrate(0) 00032 , satellite_frequency(0.0) 00033 , request_database_source(0) 00034 , landstar_correction_source(0) 00035 , omnistar_activation_code() 00036 { 00037 omnistar_activation_code.assign(0); 00038 } 00039 00040 DGPSSourceControl_(const ContainerAllocator& _alloc) 00041 : transaction(0) 00042 , dgps_source_mode(0) 00043 , beacon_acquisition_mode(0) 00044 , beacon_channel_0_frequency(0) 00045 , beacon_channel_1_frequency(0) 00046 , satellite_id(0) 00047 , satellite_bitrate(0) 00048 , satellite_frequency(0.0) 00049 , request_database_source(0) 00050 , landstar_correction_source(0) 00051 , omnistar_activation_code() 00052 { 00053 omnistar_activation_code.assign(0); 00054 } 00055 00056 typedef uint16_t _transaction_type; 00057 uint16_t transaction; 00058 00059 typedef uint8_t _dgps_source_mode_type; 00060 uint8_t dgps_source_mode; 00061 00062 typedef uint8_t _beacon_acquisition_mode_type; 00063 uint8_t beacon_acquisition_mode; 00064 00065 typedef uint16_t _beacon_channel_0_frequency_type; 00066 uint16_t beacon_channel_0_frequency; 00067 00068 typedef uint16_t _beacon_channel_1_frequency_type; 00069 uint16_t beacon_channel_1_frequency; 00070 00071 typedef uint8_t _satellite_id_type; 00072 uint8_t satellite_id; 00073 00074 typedef uint16_t _satellite_bitrate_type; 00075 uint16_t satellite_bitrate; 00076 00077 typedef double _satellite_frequency_type; 00078 double satellite_frequency; 00079 00080 typedef uint8_t _request_database_source_type; 00081 uint8_t request_database_source; 00082 00083 typedef uint8_t _landstar_correction_source_type; 00084 uint8_t landstar_correction_source; 00085 00086 typedef boost::array<uint8_t, 26> _omnistar_activation_code_type; 00087 boost::array<uint8_t, 26> omnistar_activation_code; 00088 00089 00090 ROS_DEPRECATED uint32_t get_omnistar_activation_code_size() const { return (uint32_t)omnistar_activation_code.size(); } 00091 private: 00092 static const char* __s_getDataType_() { return "applanix_msgs/DGPSSourceControl"; } 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 "647a618f1252a3c18cb54ba603253af8"; } 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 "# Msg 41\n\ 00107 uint16 transaction\n\ 00108 \n\ 00109 # TODO: enums\n\ 00110 uint8 dgps_source_mode\n\ 00111 uint8 beacon_acquisition_mode\n\ 00112 uint16 beacon_channel_0_frequency\n\ 00113 uint16 beacon_channel_1_frequency\n\ 00114 \n\ 00115 uint8 satellite_id\n\ 00116 \n\ 00117 uint16 satellite_bitrate\n\ 00118 float64 satellite_frequency\n\ 00119 \n\ 00120 uint8 request_database_source\n\ 00121 uint8 landstar_correction_source\n\ 00122 uint8[26] omnistar_activation_code\n\ 00123 \n\ 00124 "; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00131 { 00132 ros::serialization::OStream stream(write_ptr, 1000000000); 00133 ros::serialization::serialize(stream, transaction); 00134 ros::serialization::serialize(stream, dgps_source_mode); 00135 ros::serialization::serialize(stream, beacon_acquisition_mode); 00136 ros::serialization::serialize(stream, beacon_channel_0_frequency); 00137 ros::serialization::serialize(stream, beacon_channel_1_frequency); 00138 ros::serialization::serialize(stream, satellite_id); 00139 ros::serialization::serialize(stream, satellite_bitrate); 00140 ros::serialization::serialize(stream, satellite_frequency); 00141 ros::serialization::serialize(stream, request_database_source); 00142 ros::serialization::serialize(stream, landstar_correction_source); 00143 ros::serialization::serialize(stream, omnistar_activation_code); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00148 { 00149 ros::serialization::IStream stream(read_ptr, 1000000000); 00150 ros::serialization::deserialize(stream, transaction); 00151 ros::serialization::deserialize(stream, dgps_source_mode); 00152 ros::serialization::deserialize(stream, beacon_acquisition_mode); 00153 ros::serialization::deserialize(stream, beacon_channel_0_frequency); 00154 ros::serialization::deserialize(stream, beacon_channel_1_frequency); 00155 ros::serialization::deserialize(stream, satellite_id); 00156 ros::serialization::deserialize(stream, satellite_bitrate); 00157 ros::serialization::deserialize(stream, satellite_frequency); 00158 ros::serialization::deserialize(stream, request_database_source); 00159 ros::serialization::deserialize(stream, landstar_correction_source); 00160 ros::serialization::deserialize(stream, omnistar_activation_code); 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(transaction); 00168 size += ros::serialization::serializationLength(dgps_source_mode); 00169 size += ros::serialization::serializationLength(beacon_acquisition_mode); 00170 size += ros::serialization::serializationLength(beacon_channel_0_frequency); 00171 size += ros::serialization::serializationLength(beacon_channel_1_frequency); 00172 size += ros::serialization::serializationLength(satellite_id); 00173 size += ros::serialization::serializationLength(satellite_bitrate); 00174 size += ros::serialization::serializationLength(satellite_frequency); 00175 size += ros::serialization::serializationLength(request_database_source); 00176 size += ros::serialization::serializationLength(landstar_correction_source); 00177 size += ros::serialization::serializationLength(omnistar_activation_code); 00178 return size; 00179 } 00180 00181 typedef boost::shared_ptr< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > Ptr; 00182 typedef boost::shared_ptr< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> const> ConstPtr; 00183 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00184 }; // struct DGPSSourceControl 00185 typedef ::applanix_msgs::DGPSSourceControl_<std::allocator<void> > DGPSSourceControl; 00186 00187 typedef boost::shared_ptr< ::applanix_msgs::DGPSSourceControl> DGPSSourceControlPtr; 00188 typedef boost::shared_ptr< ::applanix_msgs::DGPSSourceControl const> DGPSSourceControlConstPtr; 00189 00190 00191 template<typename ContainerAllocator> 00192 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> & v) 00193 { 00194 ros::message_operations::Printer< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> >::stream(s, "", v); 00195 return s;} 00196 00197 } // namespace applanix_msgs 00198 00199 namespace ros 00200 { 00201 namespace message_traits 00202 { 00203 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > : public TrueType {}; 00204 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> const> : public TrueType {}; 00205 template<class ContainerAllocator> 00206 struct MD5Sum< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > { 00207 static const char* value() 00208 { 00209 return "647a618f1252a3c18cb54ba603253af8"; 00210 } 00211 00212 static const char* value(const ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> &) { return value(); } 00213 static const uint64_t static_value1 = 0x647a618f1252a3c1ULL; 00214 static const uint64_t static_value2 = 0x8cb54ba603253af8ULL; 00215 }; 00216 00217 template<class ContainerAllocator> 00218 struct DataType< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > { 00219 static const char* value() 00220 { 00221 return "applanix_msgs/DGPSSourceControl"; 00222 } 00223 00224 static const char* value(const ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> &) { return value(); } 00225 }; 00226 00227 template<class ContainerAllocator> 00228 struct Definition< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > { 00229 static const char* value() 00230 { 00231 return "# Msg 41\n\ 00232 uint16 transaction\n\ 00233 \n\ 00234 # TODO: enums\n\ 00235 uint8 dgps_source_mode\n\ 00236 uint8 beacon_acquisition_mode\n\ 00237 uint16 beacon_channel_0_frequency\n\ 00238 uint16 beacon_channel_1_frequency\n\ 00239 \n\ 00240 uint8 satellite_id\n\ 00241 \n\ 00242 uint16 satellite_bitrate\n\ 00243 float64 satellite_frequency\n\ 00244 \n\ 00245 uint8 request_database_source\n\ 00246 uint8 landstar_correction_source\n\ 00247 uint8[26] omnistar_activation_code\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > : public TrueType {}; 00256 } // namespace message_traits 00257 } // namespace ros 00258 00259 namespace ros 00260 { 00261 namespace serialization 00262 { 00263 00264 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > 00265 { 00266 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00267 { 00268 stream.next(m.transaction); 00269 stream.next(m.dgps_source_mode); 00270 stream.next(m.beacon_acquisition_mode); 00271 stream.next(m.beacon_channel_0_frequency); 00272 stream.next(m.beacon_channel_1_frequency); 00273 stream.next(m.satellite_id); 00274 stream.next(m.satellite_bitrate); 00275 stream.next(m.satellite_frequency); 00276 stream.next(m.request_database_source); 00277 stream.next(m.landstar_correction_source); 00278 stream.next(m.omnistar_activation_code); 00279 } 00280 00281 ROS_DECLARE_ALLINONE_SERIALIZER; 00282 }; // struct DGPSSourceControl_ 00283 } // namespace serialization 00284 } // namespace ros 00285 00286 namespace ros 00287 { 00288 namespace message_operations 00289 { 00290 00291 template<class ContainerAllocator> 00292 struct Printer< ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> > 00293 { 00294 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::DGPSSourceControl_<ContainerAllocator> & v) 00295 { 00296 s << indent << "transaction: "; 00297 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00298 s << indent << "dgps_source_mode: "; 00299 Printer<uint8_t>::stream(s, indent + " ", v.dgps_source_mode); 00300 s << indent << "beacon_acquisition_mode: "; 00301 Printer<uint8_t>::stream(s, indent + " ", v.beacon_acquisition_mode); 00302 s << indent << "beacon_channel_0_frequency: "; 00303 Printer<uint16_t>::stream(s, indent + " ", v.beacon_channel_0_frequency); 00304 s << indent << "beacon_channel_1_frequency: "; 00305 Printer<uint16_t>::stream(s, indent + " ", v.beacon_channel_1_frequency); 00306 s << indent << "satellite_id: "; 00307 Printer<uint8_t>::stream(s, indent + " ", v.satellite_id); 00308 s << indent << "satellite_bitrate: "; 00309 Printer<uint16_t>::stream(s, indent + " ", v.satellite_bitrate); 00310 s << indent << "satellite_frequency: "; 00311 Printer<double>::stream(s, indent + " ", v.satellite_frequency); 00312 s << indent << "request_database_source: "; 00313 Printer<uint8_t>::stream(s, indent + " ", v.request_database_source); 00314 s << indent << "landstar_correction_source: "; 00315 Printer<uint8_t>::stream(s, indent + " ", v.landstar_correction_source); 00316 s << indent << "omnistar_activation_code[]" << std::endl; 00317 for (size_t i = 0; i < v.omnistar_activation_code.size(); ++i) 00318 { 00319 s << indent << " omnistar_activation_code[" << i << "]: "; 00320 Printer<uint8_t>::stream(s, indent + " ", v.omnistar_activation_code[i]); 00321 } 00322 } 00323 }; 00324 00325 00326 } // namespace message_operations 00327 } // namespace ros 00328 00329 #endif // APPLANIX_MSGS_MESSAGE_DGPSSOURCECONTROL_H 00330