$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/BaseGNSSSetup.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_BASEGNSSSETUP_H 00003 #define APPLANIX_MSGS_MESSAGE_BASEGNSSSETUP_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 BaseGNSSSetup_ { 00022 typedef BaseGNSSSetup_<ContainerAllocator> Type; 00023 00024 BaseGNSSSetup_() 00025 : transaction(0) 00026 , base_gnss_input_type(0) 00027 , line_control(0) 00028 , modem_control(0) 00029 , connection_control(0) 00030 , phone_number() 00031 , num_redials(0) 00032 , modem_command_string() 00033 , modem_init_string() 00034 , data_timeout_length(0) 00035 , datum(0) 00036 { 00037 phone_number.assign(0); 00038 modem_command_string.assign(0); 00039 modem_init_string.assign(0); 00040 } 00041 00042 BaseGNSSSetup_(const ContainerAllocator& _alloc) 00043 : transaction(0) 00044 , base_gnss_input_type(0) 00045 , line_control(0) 00046 , modem_control(0) 00047 , connection_control(0) 00048 , phone_number() 00049 , num_redials(0) 00050 , modem_command_string() 00051 , modem_init_string() 00052 , data_timeout_length(0) 00053 , datum(0) 00054 { 00055 phone_number.assign(0); 00056 modem_command_string.assign(0); 00057 modem_init_string.assign(0); 00058 } 00059 00060 typedef uint16_t _transaction_type; 00061 uint16_t transaction; 00062 00063 typedef uint16_t _base_gnss_input_type_type; 00064 uint16_t base_gnss_input_type; 00065 00066 typedef uint8_t _line_control_type; 00067 uint8_t line_control; 00068 00069 typedef uint8_t _modem_control_type; 00070 uint8_t modem_control; 00071 00072 typedef uint8_t _connection_control_type; 00073 uint8_t connection_control; 00074 00075 typedef boost::array<uint8_t, 32> _phone_number_type; 00076 boost::array<uint8_t, 32> phone_number; 00077 00078 typedef uint8_t _num_redials_type; 00079 uint8_t num_redials; 00080 00081 typedef boost::array<uint8_t, 64> _modem_command_string_type; 00082 boost::array<uint8_t, 64> modem_command_string; 00083 00084 typedef boost::array<uint8_t, 128> _modem_init_string_type; 00085 boost::array<uint8_t, 128> modem_init_string; 00086 00087 typedef uint16_t _data_timeout_length_type; 00088 uint16_t data_timeout_length; 00089 00090 typedef uint16_t _datum_type; 00091 uint16_t datum; 00092 00093 enum { TYPE_NONE = 0 }; 00094 enum { TYPE_RTCM_1 = 1 }; 00095 enum { TYPE_RTCM_3 = 2 }; 00096 enum { TYPE_CMR = 3 }; 00097 enum { DATUM_WGS84 = 0 }; 00098 enum { DATUM_NAD83 = 1 }; 00099 00100 ROS_DEPRECATED uint32_t get_phone_number_size() const { return (uint32_t)phone_number.size(); } 00101 ROS_DEPRECATED uint32_t get_modem_command_string_size() const { return (uint32_t)modem_command_string.size(); } 00102 ROS_DEPRECATED uint32_t get_modem_init_string_size() const { return (uint32_t)modem_init_string.size(); } 00103 private: 00104 static const char* __s_getDataType_() { return "applanix_msgs/BaseGNSSSetup"; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00107 00108 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00109 00110 private: 00111 static const char* __s_getMD5Sum_() { return "d1009e68ee977cbe61164b28eb218883"; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00114 00115 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00116 00117 private: 00118 static const char* __s_getMessageDefinition_() { return "uint16 transaction\n\ 00119 \n\ 00120 # TODO: enums\n\ 00121 uint16 TYPE_NONE=0\n\ 00122 uint16 TYPE_RTCM_1=1\n\ 00123 uint16 TYPE_RTCM_3=2\n\ 00124 uint16 TYPE_CMR=3\n\ 00125 uint16 base_gnss_input_type\n\ 00126 \n\ 00127 uint8 line_control\n\ 00128 \n\ 00129 uint8 modem_control\n\ 00130 \n\ 00131 uint8 connection_control\n\ 00132 \n\ 00133 uint8[32] phone_number\n\ 00134 \n\ 00135 uint8 num_redials\n\ 00136 \n\ 00137 uint8[64] modem_command_string\n\ 00138 \n\ 00139 uint8[128] modem_init_string\n\ 00140 \n\ 00141 uint16 data_timeout_length\n\ 00142 \n\ 00143 uint16 DATUM_WGS84=0\n\ 00144 uint16 DATUM_NAD83=1\n\ 00145 uint16 datum\n\ 00146 \n\ 00147 "; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00152 00153 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00154 { 00155 ros::serialization::OStream stream(write_ptr, 1000000000); 00156 ros::serialization::serialize(stream, transaction); 00157 ros::serialization::serialize(stream, base_gnss_input_type); 00158 ros::serialization::serialize(stream, line_control); 00159 ros::serialization::serialize(stream, modem_control); 00160 ros::serialization::serialize(stream, connection_control); 00161 ros::serialization::serialize(stream, phone_number); 00162 ros::serialization::serialize(stream, num_redials); 00163 ros::serialization::serialize(stream, modem_command_string); 00164 ros::serialization::serialize(stream, modem_init_string); 00165 ros::serialization::serialize(stream, data_timeout_length); 00166 ros::serialization::serialize(stream, datum); 00167 return stream.getData(); 00168 } 00169 00170 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00171 { 00172 ros::serialization::IStream stream(read_ptr, 1000000000); 00173 ros::serialization::deserialize(stream, transaction); 00174 ros::serialization::deserialize(stream, base_gnss_input_type); 00175 ros::serialization::deserialize(stream, line_control); 00176 ros::serialization::deserialize(stream, modem_control); 00177 ros::serialization::deserialize(stream, connection_control); 00178 ros::serialization::deserialize(stream, phone_number); 00179 ros::serialization::deserialize(stream, num_redials); 00180 ros::serialization::deserialize(stream, modem_command_string); 00181 ros::serialization::deserialize(stream, modem_init_string); 00182 ros::serialization::deserialize(stream, data_timeout_length); 00183 ros::serialization::deserialize(stream, datum); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 size += ros::serialization::serializationLength(transaction); 00191 size += ros::serialization::serializationLength(base_gnss_input_type); 00192 size += ros::serialization::serializationLength(line_control); 00193 size += ros::serialization::serializationLength(modem_control); 00194 size += ros::serialization::serializationLength(connection_control); 00195 size += ros::serialization::serializationLength(phone_number); 00196 size += ros::serialization::serializationLength(num_redials); 00197 size += ros::serialization::serializationLength(modem_command_string); 00198 size += ros::serialization::serializationLength(modem_init_string); 00199 size += ros::serialization::serializationLength(data_timeout_length); 00200 size += ros::serialization::serializationLength(datum); 00201 return size; 00202 } 00203 00204 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > Ptr; 00205 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> const> ConstPtr; 00206 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00207 }; // struct BaseGNSSSetup 00208 typedef ::applanix_msgs::BaseGNSSSetup_<std::allocator<void> > BaseGNSSSetup; 00209 00210 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSSetup> BaseGNSSSetupPtr; 00211 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSSetup const> BaseGNSSSetupConstPtr; 00212 00213 00214 template<typename ContainerAllocator> 00215 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> & v) 00216 { 00217 ros::message_operations::Printer< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> >::stream(s, "", v); 00218 return s;} 00219 00220 } // namespace applanix_msgs 00221 00222 namespace ros 00223 { 00224 namespace message_traits 00225 { 00226 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > : public TrueType {}; 00227 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> const> : public TrueType {}; 00228 template<class ContainerAllocator> 00229 struct MD5Sum< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "d1009e68ee977cbe61164b28eb218883"; 00233 } 00234 00235 static const char* value(const ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> &) { return value(); } 00236 static const uint64_t static_value1 = 0xd1009e68ee977cbeULL; 00237 static const uint64_t static_value2 = 0x61164b28eb218883ULL; 00238 }; 00239 00240 template<class ContainerAllocator> 00241 struct DataType< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "applanix_msgs/BaseGNSSSetup"; 00245 } 00246 00247 static const char* value(const ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 template<class ContainerAllocator> 00251 struct Definition< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > { 00252 static const char* value() 00253 { 00254 return "uint16 transaction\n\ 00255 \n\ 00256 # TODO: enums\n\ 00257 uint16 TYPE_NONE=0\n\ 00258 uint16 TYPE_RTCM_1=1\n\ 00259 uint16 TYPE_RTCM_3=2\n\ 00260 uint16 TYPE_CMR=3\n\ 00261 uint16 base_gnss_input_type\n\ 00262 \n\ 00263 uint8 line_control\n\ 00264 \n\ 00265 uint8 modem_control\n\ 00266 \n\ 00267 uint8 connection_control\n\ 00268 \n\ 00269 uint8[32] phone_number\n\ 00270 \n\ 00271 uint8 num_redials\n\ 00272 \n\ 00273 uint8[64] modem_command_string\n\ 00274 \n\ 00275 uint8[128] modem_init_string\n\ 00276 \n\ 00277 uint16 data_timeout_length\n\ 00278 \n\ 00279 uint16 DATUM_WGS84=0\n\ 00280 uint16 DATUM_NAD83=1\n\ 00281 uint16 datum\n\ 00282 \n\ 00283 "; 00284 } 00285 00286 static const char* value(const ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> &) { return value(); } 00287 }; 00288 00289 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > : public TrueType {}; 00290 } // namespace message_traits 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace serialization 00296 { 00297 00298 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > 00299 { 00300 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00301 { 00302 stream.next(m.transaction); 00303 stream.next(m.base_gnss_input_type); 00304 stream.next(m.line_control); 00305 stream.next(m.modem_control); 00306 stream.next(m.connection_control); 00307 stream.next(m.phone_number); 00308 stream.next(m.num_redials); 00309 stream.next(m.modem_command_string); 00310 stream.next(m.modem_init_string); 00311 stream.next(m.data_timeout_length); 00312 stream.next(m.datum); 00313 } 00314 00315 ROS_DECLARE_ALLINONE_SERIALIZER; 00316 }; // struct BaseGNSSSetup_ 00317 } // namespace serialization 00318 } // namespace ros 00319 00320 namespace ros 00321 { 00322 namespace message_operations 00323 { 00324 00325 template<class ContainerAllocator> 00326 struct Printer< ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> > 00327 { 00328 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::BaseGNSSSetup_<ContainerAllocator> & v) 00329 { 00330 s << indent << "transaction: "; 00331 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00332 s << indent << "base_gnss_input_type: "; 00333 Printer<uint16_t>::stream(s, indent + " ", v.base_gnss_input_type); 00334 s << indent << "line_control: "; 00335 Printer<uint8_t>::stream(s, indent + " ", v.line_control); 00336 s << indent << "modem_control: "; 00337 Printer<uint8_t>::stream(s, indent + " ", v.modem_control); 00338 s << indent << "connection_control: "; 00339 Printer<uint8_t>::stream(s, indent + " ", v.connection_control); 00340 s << indent << "phone_number[]" << std::endl; 00341 for (size_t i = 0; i < v.phone_number.size(); ++i) 00342 { 00343 s << indent << " phone_number[" << i << "]: "; 00344 Printer<uint8_t>::stream(s, indent + " ", v.phone_number[i]); 00345 } 00346 s << indent << "num_redials: "; 00347 Printer<uint8_t>::stream(s, indent + " ", v.num_redials); 00348 s << indent << "modem_command_string[]" << std::endl; 00349 for (size_t i = 0; i < v.modem_command_string.size(); ++i) 00350 { 00351 s << indent << " modem_command_string[" << i << "]: "; 00352 Printer<uint8_t>::stream(s, indent + " ", v.modem_command_string[i]); 00353 } 00354 s << indent << "modem_init_string[]" << std::endl; 00355 for (size_t i = 0; i < v.modem_init_string.size(); ++i) 00356 { 00357 s << indent << " modem_init_string[" << i << "]: "; 00358 Printer<uint8_t>::stream(s, indent + " ", v.modem_init_string[i]); 00359 } 00360 s << indent << "data_timeout_length: "; 00361 Printer<uint16_t>::stream(s, indent + " ", v.data_timeout_length); 00362 s << indent << "datum: "; 00363 Printer<uint16_t>::stream(s, indent + " ", v.datum); 00364 } 00365 }; 00366 00367 00368 } // namespace message_operations 00369 } // namespace ros 00370 00371 #endif // APPLANIX_MSGS_MESSAGE_BASEGNSSSETUP_H 00372