$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/GNSSSetup.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_GNSSSETUP_H 00003 #define APPLANIX_MSGS_MESSAGE_GNSSSETUP_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 GNSSSetup_ { 00022 typedef GNSSSetup_<ContainerAllocator> Type; 00023 00024 GNSSSetup_() 00025 : transaction(0) 00026 , autoconfig(0) 00027 , rate(0) 00028 , reserved1(0) 00029 , reserved2(0) 00030 , reserved3(0) 00031 { 00032 } 00033 00034 GNSSSetup_(const ContainerAllocator& _alloc) 00035 : transaction(0) 00036 , autoconfig(0) 00037 , rate(0) 00038 , reserved1(0) 00039 , reserved2(0) 00040 , reserved3(0) 00041 { 00042 } 00043 00044 typedef uint16_t _transaction_type; 00045 uint16_t transaction; 00046 00047 typedef uint8_t _autoconfig_type; 00048 uint8_t autoconfig; 00049 00050 typedef uint8_t _rate_type; 00051 uint8_t rate; 00052 00053 typedef uint8_t _reserved1_type; 00054 uint8_t reserved1; 00055 00056 typedef uint32_t _reserved2_type; 00057 uint32_t reserved2; 00058 00059 typedef uint8_t _reserved3_type; 00060 uint8_t reserved3; 00061 00062 enum { AUTOCONFIG_ENABLE = 1 }; 00063 enum { AUTOCONFIG_DISABLE = 0 }; 00064 00065 private: 00066 static const char* __s_getDataType_() { return "applanix_msgs/GNSSSetup"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00069 00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00071 00072 private: 00073 static const char* __s_getMD5Sum_() { return "02ec55e95fd85f13541cf9fc7cb12f4e"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "# Msg 30, 31\n\ 00081 uint16 transaction\n\ 00082 \n\ 00083 uint8 AUTOCONFIG_ENABLE=1\n\ 00084 uint8 AUTOCONFIG_DISABLE=0\n\ 00085 uint8 autoconfig\n\ 00086 \n\ 00087 # Valid values = 1, 5, 10 (Hz)\n\ 00088 uint8 rate\n\ 00089 \n\ 00090 uint8 reserved1\n\ 00091 uint32 reserved2\n\ 00092 uint8 reserved3\n\ 00093 \n\ 00094 "; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00101 { 00102 ros::serialization::OStream stream(write_ptr, 1000000000); 00103 ros::serialization::serialize(stream, transaction); 00104 ros::serialization::serialize(stream, autoconfig); 00105 ros::serialization::serialize(stream, rate); 00106 ros::serialization::serialize(stream, reserved1); 00107 ros::serialization::serialize(stream, reserved2); 00108 ros::serialization::serialize(stream, reserved3); 00109 return stream.getData(); 00110 } 00111 00112 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00113 { 00114 ros::serialization::IStream stream(read_ptr, 1000000000); 00115 ros::serialization::deserialize(stream, transaction); 00116 ros::serialization::deserialize(stream, autoconfig); 00117 ros::serialization::deserialize(stream, rate); 00118 ros::serialization::deserialize(stream, reserved1); 00119 ros::serialization::deserialize(stream, reserved2); 00120 ros::serialization::deserialize(stream, reserved3); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint32_t serializationLength() const 00125 { 00126 uint32_t size = 0; 00127 size += ros::serialization::serializationLength(transaction); 00128 size += ros::serialization::serializationLength(autoconfig); 00129 size += ros::serialization::serializationLength(rate); 00130 size += ros::serialization::serializationLength(reserved1); 00131 size += ros::serialization::serializationLength(reserved2); 00132 size += ros::serialization::serializationLength(reserved3); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::applanix_msgs::GNSSSetup_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct GNSSSetup 00140 typedef ::applanix_msgs::GNSSSetup_<std::allocator<void> > GNSSSetup; 00141 00142 typedef boost::shared_ptr< ::applanix_msgs::GNSSSetup> GNSSSetupPtr; 00143 typedef boost::shared_ptr< ::applanix_msgs::GNSSSetup const> GNSSSetupConstPtr; 00144 00145 00146 template<typename ContainerAllocator> 00147 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::GNSSSetup_<ContainerAllocator> & v) 00148 { 00149 ros::message_operations::Printer< ::applanix_msgs::GNSSSetup_<ContainerAllocator> >::stream(s, "", v); 00150 return s;} 00151 00152 } // namespace applanix_msgs 00153 00154 namespace ros 00155 { 00156 namespace message_traits 00157 { 00158 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > : public TrueType {}; 00159 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::GNSSSetup_<ContainerAllocator> const> : public TrueType {}; 00160 template<class ContainerAllocator> 00161 struct MD5Sum< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "02ec55e95fd85f13541cf9fc7cb12f4e"; 00165 } 00166 00167 static const char* value(const ::applanix_msgs::GNSSSetup_<ContainerAllocator> &) { return value(); } 00168 static const uint64_t static_value1 = 0x02ec55e95fd85f13ULL; 00169 static const uint64_t static_value2 = 0x541cf9fc7cb12f4eULL; 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct DataType< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "applanix_msgs/GNSSSetup"; 00177 } 00178 00179 static const char* value(const ::applanix_msgs::GNSSSetup_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct Definition< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "# Msg 30, 31\n\ 00187 uint16 transaction\n\ 00188 \n\ 00189 uint8 AUTOCONFIG_ENABLE=1\n\ 00190 uint8 AUTOCONFIG_DISABLE=0\n\ 00191 uint8 autoconfig\n\ 00192 \n\ 00193 # Valid values = 1, 5, 10 (Hz)\n\ 00194 uint8 rate\n\ 00195 \n\ 00196 uint8 reserved1\n\ 00197 uint32 reserved2\n\ 00198 uint8 reserved3\n\ 00199 \n\ 00200 "; 00201 } 00202 00203 static const char* value(const ::applanix_msgs::GNSSSetup_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > : public TrueType {}; 00207 } // namespace message_traits 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace serialization 00213 { 00214 00215 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > 00216 { 00217 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00218 { 00219 stream.next(m.transaction); 00220 stream.next(m.autoconfig); 00221 stream.next(m.rate); 00222 stream.next(m.reserved1); 00223 stream.next(m.reserved2); 00224 stream.next(m.reserved3); 00225 } 00226 00227 ROS_DECLARE_ALLINONE_SERIALIZER; 00228 }; // struct GNSSSetup_ 00229 } // namespace serialization 00230 } // namespace ros 00231 00232 namespace ros 00233 { 00234 namespace message_operations 00235 { 00236 00237 template<class ContainerAllocator> 00238 struct Printer< ::applanix_msgs::GNSSSetup_<ContainerAllocator> > 00239 { 00240 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::GNSSSetup_<ContainerAllocator> & v) 00241 { 00242 s << indent << "transaction: "; 00243 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00244 s << indent << "autoconfig: "; 00245 Printer<uint8_t>::stream(s, indent + " ", v.autoconfig); 00246 s << indent << "rate: "; 00247 Printer<uint8_t>::stream(s, indent + " ", v.rate); 00248 s << indent << "reserved1: "; 00249 Printer<uint8_t>::stream(s, indent + " ", v.reserved1); 00250 s << indent << "reserved2: "; 00251 Printer<uint32_t>::stream(s, indent + " ", v.reserved2); 00252 s << indent << "reserved3: "; 00253 Printer<uint8_t>::stream(s, indent + " ", v.reserved3); 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // APPLANIX_MSGS_MESSAGE_GNSSSETUP_H 00262