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