$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/COMPortSetup.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_COMPORTSETUP_H 00003 #define APPLANIX_MSGS_MESSAGE_COMPORTSETUP_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/COMPortParams.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct COMPortSetup_ { 00023 typedef COMPortSetup_<ContainerAllocator> Type; 00024 00025 COMPortSetup_() 00026 : transaction(0) 00027 , ports_count(0) 00028 , ports() 00029 , port_mask(0) 00030 { 00031 } 00032 00033 COMPortSetup_(const ContainerAllocator& _alloc) 00034 : transaction(0) 00035 , ports_count(0) 00036 , ports(_alloc) 00037 , port_mask(0) 00038 { 00039 } 00040 00041 typedef uint16_t _transaction_type; 00042 uint16_t transaction; 00043 00044 typedef uint16_t _ports_count_type; 00045 uint16_t ports_count; 00046 00047 typedef std::vector< ::applanix_msgs::COMPortParams_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::other > _ports_type; 00048 std::vector< ::applanix_msgs::COMPortParams_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::other > ports; 00049 00050 typedef uint16_t _port_mask_type; 00051 uint16_t port_mask; 00052 00053 00054 ROS_DEPRECATED uint32_t get_ports_size() const { return (uint32_t)ports.size(); } 00055 ROS_DEPRECATED void set_ports_size(uint32_t size) { ports.resize((size_t)size); } 00056 ROS_DEPRECATED void get_ports_vec(std::vector< ::applanix_msgs::COMPortParams_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::other > & vec) const { vec = this->ports; } 00057 ROS_DEPRECATED void set_ports_vec(const std::vector< ::applanix_msgs::COMPortParams_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::other > & vec) { this->ports = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "applanix_msgs/COMPortSetup"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "a6bd005ff624172e9e2145b5e8243fec"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# Msg 34\n\ 00074 uint16 transaction\n\ 00075 \n\ 00076 uint16 ports_count\n\ 00077 COMPortParams[] ports\n\ 00078 uint16 port_mask\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: applanix_msgs/COMPortParams\n\ 00082 uint8 BAUD_2400=0\n\ 00083 uint8 BAUD_4800=1\n\ 00084 uint8 BAUD_9600=2\n\ 00085 uint8 BAUD_19200=3\n\ 00086 uint8 BAUD_38400=4\n\ 00087 uint8 BAUD_57600=5\n\ 00088 uint8 BAUD_76800=6\n\ 00089 uint8 BAUD_115200=7\n\ 00090 uint8 baud\n\ 00091 \n\ 00092 uint8 PARITY_NONE=0\n\ 00093 uint8 PARITY_EVEN=1\n\ 00094 uint8 PARITY_ODD=2\n\ 00095 uint8 parity\n\ 00096 \n\ 00097 uint8 DATA_7_STOP_1=0\n\ 00098 uint8 DATA_7_STOP_2=1\n\ 00099 uint8 DATA_8_STOP_1=2\n\ 00100 uint8 DATA_8_STOP_2=3\n\ 00101 uint8 data_stop\n\ 00102 \n\ 00103 uint8 FLOW_NONE=0\n\ 00104 uint8 FLOW_HARDWARE=1\n\ 00105 uint8 FLOW_XONXOFF=2\n\ 00106 uint8 FLOW_RS422=3\n\ 00107 uint8 flow\n\ 00108 \n\ 00109 uint16 INPUT_NONE=0\n\ 00110 uint16 INPUT_AUX_1_GNSS=1\n\ 00111 uint16 INPUT_AUX_2_GNSS=2\n\ 00112 uint16 INPUT_BASE_1_GNSS=4\n\ 00113 uint16 INPUT_BASE_2_GNSS=5\n\ 00114 uint16 INPUT_GNSS_1=7\n\ 00115 uint16 INPUT_GNSS_2=8\n\ 00116 uint16 input_select\n\ 00117 \n\ 00118 uint16 OUTPUT_NONE=0\n\ 00119 uint16 OUTPUT_NMEA=1\n\ 00120 uint16 OUTPUT_BINARY=2\n\ 00121 uint16 OUTPUT_BASE_1_GNSS=4\n\ 00122 uint16 OUTPUT_BASE_2_GNSS=5\n\ 00123 uint16 OUTPUT_GNSS_1=7\n\ 00124 uint16 OUTPUT_GNSS_2=8\n\ 00125 uint16 output_select\n\ 00126 \n\ 00127 "; } 00128 public: 00129 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00134 { 00135 ros::serialization::OStream stream(write_ptr, 1000000000); 00136 ros::serialization::serialize(stream, transaction); 00137 ros::serialization::serialize(stream, ports_count); 00138 ros::serialization::serialize(stream, ports); 00139 ros::serialization::serialize(stream, port_mask); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00144 { 00145 ros::serialization::IStream stream(read_ptr, 1000000000); 00146 ros::serialization::deserialize(stream, transaction); 00147 ros::serialization::deserialize(stream, ports_count); 00148 ros::serialization::deserialize(stream, ports); 00149 ros::serialization::deserialize(stream, port_mask); 00150 return stream.getData(); 00151 } 00152 00153 ROS_DEPRECATED virtual uint32_t serializationLength() const 00154 { 00155 uint32_t size = 0; 00156 size += ros::serialization::serializationLength(transaction); 00157 size += ros::serialization::serializationLength(ports_count); 00158 size += ros::serialization::serializationLength(ports); 00159 size += ros::serialization::serializationLength(port_mask); 00160 return size; 00161 } 00162 00163 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > Ptr; 00164 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup_<ContainerAllocator> const> ConstPtr; 00165 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00166 }; // struct COMPortSetup 00167 typedef ::applanix_msgs::COMPortSetup_<std::allocator<void> > COMPortSetup; 00168 00169 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup> COMPortSetupPtr; 00170 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup const> COMPortSetupConstPtr; 00171 00172 00173 template<typename ContainerAllocator> 00174 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::COMPortSetup_<ContainerAllocator> & v) 00175 { 00176 ros::message_operations::Printer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> >::stream(s, "", v); 00177 return s;} 00178 00179 } // namespace applanix_msgs 00180 00181 namespace ros 00182 { 00183 namespace message_traits 00184 { 00185 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > : public TrueType {}; 00186 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortSetup_<ContainerAllocator> const> : public TrueType {}; 00187 template<class ContainerAllocator> 00188 struct MD5Sum< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "a6bd005ff624172e9e2145b5e8243fec"; 00192 } 00193 00194 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); } 00195 static const uint64_t static_value1 = 0xa6bd005ff624172eULL; 00196 static const uint64_t static_value2 = 0x9e2145b5e8243fecULL; 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct DataType< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "applanix_msgs/COMPortSetup"; 00204 } 00205 00206 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); } 00207 }; 00208 00209 template<class ContainerAllocator> 00210 struct Definition< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "# Msg 34\n\ 00214 uint16 transaction\n\ 00215 \n\ 00216 uint16 ports_count\n\ 00217 COMPortParams[] ports\n\ 00218 uint16 port_mask\n\ 00219 \n\ 00220 ================================================================================\n\ 00221 MSG: applanix_msgs/COMPortParams\n\ 00222 uint8 BAUD_2400=0\n\ 00223 uint8 BAUD_4800=1\n\ 00224 uint8 BAUD_9600=2\n\ 00225 uint8 BAUD_19200=3\n\ 00226 uint8 BAUD_38400=4\n\ 00227 uint8 BAUD_57600=5\n\ 00228 uint8 BAUD_76800=6\n\ 00229 uint8 BAUD_115200=7\n\ 00230 uint8 baud\n\ 00231 \n\ 00232 uint8 PARITY_NONE=0\n\ 00233 uint8 PARITY_EVEN=1\n\ 00234 uint8 PARITY_ODD=2\n\ 00235 uint8 parity\n\ 00236 \n\ 00237 uint8 DATA_7_STOP_1=0\n\ 00238 uint8 DATA_7_STOP_2=1\n\ 00239 uint8 DATA_8_STOP_1=2\n\ 00240 uint8 DATA_8_STOP_2=3\n\ 00241 uint8 data_stop\n\ 00242 \n\ 00243 uint8 FLOW_NONE=0\n\ 00244 uint8 FLOW_HARDWARE=1\n\ 00245 uint8 FLOW_XONXOFF=2\n\ 00246 uint8 FLOW_RS422=3\n\ 00247 uint8 flow\n\ 00248 \n\ 00249 uint16 INPUT_NONE=0\n\ 00250 uint16 INPUT_AUX_1_GNSS=1\n\ 00251 uint16 INPUT_AUX_2_GNSS=2\n\ 00252 uint16 INPUT_BASE_1_GNSS=4\n\ 00253 uint16 INPUT_BASE_2_GNSS=5\n\ 00254 uint16 INPUT_GNSS_1=7\n\ 00255 uint16 INPUT_GNSS_2=8\n\ 00256 uint16 input_select\n\ 00257 \n\ 00258 uint16 OUTPUT_NONE=0\n\ 00259 uint16 OUTPUT_NMEA=1\n\ 00260 uint16 OUTPUT_BINARY=2\n\ 00261 uint16 OUTPUT_BASE_1_GNSS=4\n\ 00262 uint16 OUTPUT_BASE_2_GNSS=5\n\ 00263 uint16 OUTPUT_GNSS_1=7\n\ 00264 uint16 OUTPUT_GNSS_2=8\n\ 00265 uint16 output_select\n\ 00266 \n\ 00267 "; 00268 } 00269 00270 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); } 00271 }; 00272 00273 } // namespace message_traits 00274 } // namespace ros 00275 00276 namespace ros 00277 { 00278 namespace serialization 00279 { 00280 00281 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > 00282 { 00283 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00284 { 00285 stream.next(m.transaction); 00286 stream.next(m.ports_count); 00287 stream.next(m.ports); 00288 stream.next(m.port_mask); 00289 } 00290 00291 ROS_DECLARE_ALLINONE_SERIALIZER; 00292 }; // struct COMPortSetup_ 00293 } // namespace serialization 00294 } // namespace ros 00295 00296 namespace ros 00297 { 00298 namespace message_operations 00299 { 00300 00301 template<class ContainerAllocator> 00302 struct Printer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > 00303 { 00304 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::COMPortSetup_<ContainerAllocator> & v) 00305 { 00306 s << indent << "transaction: "; 00307 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00308 s << indent << "ports_count: "; 00309 Printer<uint16_t>::stream(s, indent + " ", v.ports_count); 00310 s << indent << "ports[]" << std::endl; 00311 for (size_t i = 0; i < v.ports.size(); ++i) 00312 { 00313 s << indent << " ports[" << i << "]: "; 00314 s << std::endl; 00315 s << indent; 00316 Printer< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::stream(s, indent + " ", v.ports[i]); 00317 } 00318 s << indent << "port_mask: "; 00319 Printer<uint16_t>::stream(s, indent + " ", v.port_mask); 00320 } 00321 }; 00322 00323 00324 } // namespace message_operations 00325 } // namespace ros 00326 00327 #endif // APPLANIX_MSGS_MESSAGE_COMPORTSETUP_H 00328