Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::COMPortParams_<ContainerAllocator> > Ptr;
00097 typedef boost::shared_ptr< ::applanix_msgs::COMPortParams_<ContainerAllocator> const> ConstPtr;
00098 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00099 };
00100 typedef ::applanix_msgs::COMPortParams_<std::allocator<void> > COMPortParams;
00101
00102 typedef boost::shared_ptr< ::applanix_msgs::COMPortParams> COMPortParamsPtr;
00103 typedef boost::shared_ptr< ::applanix_msgs::COMPortParams const> COMPortParamsConstPtr;
00104
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::COMPortParams_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortParams_<ContainerAllocator> > : public TrueType {};
00119 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortParams_<ContainerAllocator> const> : public TrueType {};
00120 template<class ContainerAllocator>
00121 struct MD5Sum< ::applanix_msgs::COMPortParams_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "1202b316f5db7bb6767586a78e102300";
00125 }
00126
00127 static const char* value(const ::applanix_msgs::COMPortParams_<ContainerAllocator> &) { return value(); }
00128 static const uint64_t static_value1 = 0x1202b316f5db7bb6ULL;
00129 static const uint64_t static_value2 = 0x767586a78e102300ULL;
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct DataType< ::applanix_msgs::COMPortParams_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "applanix_msgs/COMPortParams";
00137 }
00138
00139 static const char* value(const ::applanix_msgs::COMPortParams_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator>
00143 struct Definition< ::applanix_msgs::COMPortParams_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "uint8 BAUD_2400=0\n\
00147 uint8 BAUD_4800=1\n\
00148 uint8 BAUD_9600=2\n\
00149 uint8 BAUD_19200=3\n\
00150 uint8 BAUD_38400=4\n\
00151 uint8 BAUD_57600=5\n\
00152 uint8 BAUD_76800=6\n\
00153 uint8 BAUD_115200=7\n\
00154 uint8 baud\n\
00155 \n\
00156 uint8 PARITY_NONE=0\n\
00157 uint8 PARITY_EVEN=1\n\
00158 uint8 PARITY_ODD=2\n\
00159 uint8 parity\n\
00160 \n\
00161 uint8 DATA_7_STOP_1=0\n\
00162 uint8 DATA_7_STOP_2=1\n\
00163 uint8 DATA_8_STOP_1=2\n\
00164 uint8 DATA_8_STOP_2=3\n\
00165 uint8 data_stop\n\
00166 \n\
00167 uint8 FLOW_NONE=0\n\
00168 uint8 FLOW_HARDWARE=1\n\
00169 uint8 FLOW_XONXOFF=2\n\
00170 uint8 FLOW_RS422=3\n\
00171 uint8 flow\n\
00172 \n\
00173 uint16 INPUT_NONE=0\n\
00174 uint16 INPUT_AUX_1_GNSS=1\n\
00175 uint16 INPUT_AUX_2_GNSS=2\n\
00176 uint16 INPUT_BASE_1_GNSS=4\n\
00177 uint16 INPUT_BASE_2_GNSS=5\n\
00178 uint16 INPUT_GNSS_1=7\n\
00179 uint16 INPUT_GNSS_2=8\n\
00180 uint16 input_select\n\
00181 \n\
00182 uint16 OUTPUT_NONE=0\n\
00183 uint16 OUTPUT_NMEA=1\n\
00184 uint16 OUTPUT_BINARY=2\n\
00185 uint16 OUTPUT_BASE_1_GNSS=4\n\
00186 uint16 OUTPUT_BASE_2_GNSS=5\n\
00187 uint16 OUTPUT_GNSS_1=7\n\
00188 uint16 OUTPUT_GNSS_2=8\n\
00189 uint16 output_select\n\
00190 \n\
00191 ";
00192 }
00193
00194 static const char* value(const ::applanix_msgs::COMPortParams_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::COMPortParams_<ContainerAllocator> > : public TrueType {};
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace serialization
00204 {
00205
00206 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::COMPortParams_<ContainerAllocator> >
00207 {
00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00209 {
00210 stream.next(m.baud);
00211 stream.next(m.parity);
00212 stream.next(m.data_stop);
00213 stream.next(m.flow);
00214 stream.next(m.input_select);
00215 stream.next(m.output_select);
00216 }
00217
00218 ROS_DECLARE_ALLINONE_SERIALIZER;
00219 };
00220 }
00221 }
00222
00223 namespace ros
00224 {
00225 namespace message_operations
00226 {
00227
00228 template<class ContainerAllocator>
00229 struct Printer< ::applanix_msgs::COMPortParams_<ContainerAllocator> >
00230 {
00231 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::COMPortParams_<ContainerAllocator> & v)
00232 {
00233 s << indent << "baud: ";
00234 Printer<uint8_t>::stream(s, indent + " ", v.baud);
00235 s << indent << "parity: ";
00236 Printer<uint8_t>::stream(s, indent + " ", v.parity);
00237 s << indent << "data_stop: ";
00238 Printer<uint8_t>::stream(s, indent + " ", v.data_stop);
00239 s << indent << "flow: ";
00240 Printer<uint8_t>::stream(s, indent + " ", v.flow);
00241 s << indent << "input_select: ";
00242 Printer<uint16_t>::stream(s, indent + " ", v.input_select);
00243 s << indent << "output_select: ";
00244 Printer<uint16_t>::stream(s, indent + " ", v.output_select);
00245 }
00246 };
00247
00248
00249 }
00250 }
00251
00252 #endif // APPLANIX_MSGS_MESSAGE_COMPORTPARAMS_H
00253