$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/NMEAMessageSelect.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_NMEAMESSAGESELECT_H 00003 #define APPLANIX_MSGS_MESSAGE_NMEAMESSAGESELECT_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/COMPortMessages.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct NMEAMessageSelect_ { 00023 typedef NMEAMessageSelect_<ContainerAllocator> Type; 00024 00025 NMEAMessageSelect_() 00026 : transaction(0) 00027 , reserved() 00028 , talker(0) 00029 , ports_count(0) 00030 , ports() 00031 { 00032 reserved.assign(0); 00033 } 00034 00035 NMEAMessageSelect_(const ContainerAllocator& _alloc) 00036 : transaction(0) 00037 , reserved() 00038 , talker(0) 00039 , ports_count(0) 00040 , ports(_alloc) 00041 { 00042 reserved.assign(0); 00043 } 00044 00045 typedef uint16_t _transaction_type; 00046 uint16_t transaction; 00047 00048 typedef boost::array<uint8_t, 9> _reserved_type; 00049 boost::array<uint8_t, 9> reserved; 00050 00051 typedef uint8_t _talker_type; 00052 uint8_t talker; 00053 00054 typedef uint8_t _ports_count_type; 00055 uint8_t ports_count; 00056 00057 typedef std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > _ports_type; 00058 std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > ports; 00059 00060 enum { TALKER_IN = 0 }; 00061 enum { TALKER_GP = 1 }; 00062 00063 ROS_DEPRECATED uint32_t get_reserved_size() const { return (uint32_t)reserved.size(); } 00064 ROS_DEPRECATED uint32_t get_ports_size() const { return (uint32_t)ports.size(); } 00065 ROS_DEPRECATED void set_ports_size(uint32_t size) { ports.resize((size_t)size); } 00066 ROS_DEPRECATED void get_ports_vec(std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > & vec) const { vec = this->ports; } 00067 ROS_DEPRECATED void set_ports_vec(const std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > & vec) { this->ports = vec; } 00068 private: 00069 static const char* __s_getDataType_() { return "applanix_msgs/NMEAMessageSelect"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "d988d97031c9db73713ce27fde744cff"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# Msg 35\n\ 00084 uint16 transaction\n\ 00085 \n\ 00086 uint8[9] reserved\n\ 00087 \n\ 00088 uint8 TALKER_IN=0\n\ 00089 uint8 TALKER_GP=1\n\ 00090 uint8 talker\n\ 00091 \n\ 00092 uint8 ports_count\n\ 00093 COMPortMessages[] ports\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: applanix_msgs/COMPortMessages\n\ 00097 uint8 port_num\n\ 00098 \n\ 00099 uint32 MESSAGES_NMEA_GST=1\n\ 00100 uint32 MESSAGES_NMEA_GGA=2\n\ 00101 uint32 MESSAGES_NMEA_HDT=4\n\ 00102 uint32 MESSAGES_NMEA_ZDA=8\n\ 00103 uint32 MESSAGES_NMEA_EVT1=16\n\ 00104 uint32 MESSAGES_NMEA_EVT2=32\n\ 00105 uint32 MESSAGES_NMEA_VTG=64\n\ 00106 uint32 MESSAGES_NMEA_PASHR=128\n\ 00107 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00108 uint32 MESSAGES_NMEA_PPS=16384\n\ 00109 uint32 MESSAGES_NMEA_GGK=32768\n\ 00110 uint32 MESSAGES_NMEA_RMC=65536\n\ 00111 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00112 uint32 MESSAGES_BIN_RDR1=2\n\ 00113 uint32 MESSAGES_BIN_PAST2=4\n\ 00114 uint32 MESSAGES_BIN_PPS=65536\n\ 00115 uint32 MESSAGES_BIN_TM1B=131072\n\ 00116 uint32 messages\n\ 00117 \n\ 00118 uint8 update_rate\n\ 00119 \n\ 00120 "; } 00121 public: 00122 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00123 00124 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00127 { 00128 ros::serialization::OStream stream(write_ptr, 1000000000); 00129 ros::serialization::serialize(stream, transaction); 00130 ros::serialization::serialize(stream, reserved); 00131 ros::serialization::serialize(stream, talker); 00132 ros::serialization::serialize(stream, ports_count); 00133 ros::serialization::serialize(stream, ports); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00138 { 00139 ros::serialization::IStream stream(read_ptr, 1000000000); 00140 ros::serialization::deserialize(stream, transaction); 00141 ros::serialization::deserialize(stream, reserved); 00142 ros::serialization::deserialize(stream, talker); 00143 ros::serialization::deserialize(stream, ports_count); 00144 ros::serialization::deserialize(stream, ports); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint32_t serializationLength() const 00149 { 00150 uint32_t size = 0; 00151 size += ros::serialization::serializationLength(transaction); 00152 size += ros::serialization::serializationLength(reserved); 00153 size += ros::serialization::serializationLength(talker); 00154 size += ros::serialization::serializationLength(ports_count); 00155 size += ros::serialization::serializationLength(ports); 00156 return size; 00157 } 00158 00159 typedef boost::shared_ptr< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > Ptr; 00160 typedef boost::shared_ptr< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> const> ConstPtr; 00161 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00162 }; // struct NMEAMessageSelect 00163 typedef ::applanix_msgs::NMEAMessageSelect_<std::allocator<void> > NMEAMessageSelect; 00164 00165 typedef boost::shared_ptr< ::applanix_msgs::NMEAMessageSelect> NMEAMessageSelectPtr; 00166 typedef boost::shared_ptr< ::applanix_msgs::NMEAMessageSelect const> NMEAMessageSelectConstPtr; 00167 00168 00169 template<typename ContainerAllocator> 00170 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> & v) 00171 { 00172 ros::message_operations::Printer< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> >::stream(s, "", v); 00173 return s;} 00174 00175 } // namespace applanix_msgs 00176 00177 namespace ros 00178 { 00179 namespace message_traits 00180 { 00181 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > : public TrueType {}; 00182 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> const> : public TrueType {}; 00183 template<class ContainerAllocator> 00184 struct MD5Sum< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "d988d97031c9db73713ce27fde744cff"; 00188 } 00189 00190 static const char* value(const ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> &) { return value(); } 00191 static const uint64_t static_value1 = 0xd988d97031c9db73ULL; 00192 static const uint64_t static_value2 = 0x713ce27fde744cffULL; 00193 }; 00194 00195 template<class ContainerAllocator> 00196 struct DataType< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "applanix_msgs/NMEAMessageSelect"; 00200 } 00201 00202 static const char* value(const ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> 00206 struct Definition< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > { 00207 static const char* value() 00208 { 00209 return "# Msg 35\n\ 00210 uint16 transaction\n\ 00211 \n\ 00212 uint8[9] reserved\n\ 00213 \n\ 00214 uint8 TALKER_IN=0\n\ 00215 uint8 TALKER_GP=1\n\ 00216 uint8 talker\n\ 00217 \n\ 00218 uint8 ports_count\n\ 00219 COMPortMessages[] ports\n\ 00220 \n\ 00221 ================================================================================\n\ 00222 MSG: applanix_msgs/COMPortMessages\n\ 00223 uint8 port_num\n\ 00224 \n\ 00225 uint32 MESSAGES_NMEA_GST=1\n\ 00226 uint32 MESSAGES_NMEA_GGA=2\n\ 00227 uint32 MESSAGES_NMEA_HDT=4\n\ 00228 uint32 MESSAGES_NMEA_ZDA=8\n\ 00229 uint32 MESSAGES_NMEA_EVT1=16\n\ 00230 uint32 MESSAGES_NMEA_EVT2=32\n\ 00231 uint32 MESSAGES_NMEA_VTG=64\n\ 00232 uint32 MESSAGES_NMEA_PASHR=128\n\ 00233 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00234 uint32 MESSAGES_NMEA_PPS=16384\n\ 00235 uint32 MESSAGES_NMEA_GGK=32768\n\ 00236 uint32 MESSAGES_NMEA_RMC=65536\n\ 00237 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00238 uint32 MESSAGES_BIN_RDR1=2\n\ 00239 uint32 MESSAGES_BIN_PAST2=4\n\ 00240 uint32 MESSAGES_BIN_PPS=65536\n\ 00241 uint32 MESSAGES_BIN_TM1B=131072\n\ 00242 uint32 messages\n\ 00243 \n\ 00244 uint8 update_rate\n\ 00245 \n\ 00246 "; 00247 } 00248 00249 static const char* value(const ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> &) { return value(); } 00250 }; 00251 00252 } // namespace message_traits 00253 } // namespace ros 00254 00255 namespace ros 00256 { 00257 namespace serialization 00258 { 00259 00260 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > 00261 { 00262 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00263 { 00264 stream.next(m.transaction); 00265 stream.next(m.reserved); 00266 stream.next(m.talker); 00267 stream.next(m.ports_count); 00268 stream.next(m.ports); 00269 } 00270 00271 ROS_DECLARE_ALLINONE_SERIALIZER; 00272 }; // struct NMEAMessageSelect_ 00273 } // namespace serialization 00274 } // namespace ros 00275 00276 namespace ros 00277 { 00278 namespace message_operations 00279 { 00280 00281 template<class ContainerAllocator> 00282 struct Printer< ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> > 00283 { 00284 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::NMEAMessageSelect_<ContainerAllocator> & v) 00285 { 00286 s << indent << "transaction: "; 00287 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00288 s << indent << "reserved[]" << std::endl; 00289 for (size_t i = 0; i < v.reserved.size(); ++i) 00290 { 00291 s << indent << " reserved[" << i << "]: "; 00292 Printer<uint8_t>::stream(s, indent + " ", v.reserved[i]); 00293 } 00294 s << indent << "talker: "; 00295 Printer<uint8_t>::stream(s, indent + " ", v.talker); 00296 s << indent << "ports_count: "; 00297 Printer<uint8_t>::stream(s, indent + " ", v.ports_count); 00298 s << indent << "ports[]" << std::endl; 00299 for (size_t i = 0; i < v.ports.size(); ++i) 00300 { 00301 s << indent << " ports[" << i << "]: "; 00302 s << std::endl; 00303 s << indent; 00304 Printer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::stream(s, indent + " ", v.ports[i]); 00305 } 00306 } 00307 }; 00308 00309 00310 } // namespace message_operations 00311 } // namespace ros 00312 00313 #endif // APPLANIX_MSGS_MESSAGE_NMEAMESSAGESELECT_H 00314