Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::applanix_msgs::COMPortSetup_<std::allocator<void> > COMPortSetup;
00059
00060 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup> COMPortSetupPtr;
00061 typedef boost::shared_ptr< ::applanix_msgs::COMPortSetup const> COMPortSetupConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::COMPortSetup_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortSetup_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "a6bd005ff624172e9e2145b5e8243fec";
00083 }
00084
00085 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0xa6bd005ff624172eULL;
00087 static const uint64_t static_value2 = 0x9e2145b5e8243fecULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "applanix_msgs/COMPortSetup";
00095 }
00096
00097 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::applanix_msgs::COMPortSetup_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "# Msg 34\n\
00105 uint16 transaction\n\
00106 \n\
00107 uint16 ports_count\n\
00108 COMPortParams[] ports\n\
00109 uint16 port_mask\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: applanix_msgs/COMPortParams\n\
00113 uint8 BAUD_2400=0\n\
00114 uint8 BAUD_4800=1\n\
00115 uint8 BAUD_9600=2\n\
00116 uint8 BAUD_19200=3\n\
00117 uint8 BAUD_38400=4\n\
00118 uint8 BAUD_57600=5\n\
00119 uint8 BAUD_76800=6\n\
00120 uint8 BAUD_115200=7\n\
00121 uint8 baud\n\
00122 \n\
00123 uint8 PARITY_NONE=0\n\
00124 uint8 PARITY_EVEN=1\n\
00125 uint8 PARITY_ODD=2\n\
00126 uint8 parity\n\
00127 \n\
00128 uint8 DATA_7_STOP_1=0\n\
00129 uint8 DATA_7_STOP_2=1\n\
00130 uint8 DATA_8_STOP_1=2\n\
00131 uint8 DATA_8_STOP_2=3\n\
00132 uint8 data_stop\n\
00133 \n\
00134 uint8 FLOW_NONE=0\n\
00135 uint8 FLOW_HARDWARE=1\n\
00136 uint8 FLOW_XONXOFF=2\n\
00137 uint8 FLOW_RS422=3\n\
00138 uint8 flow\n\
00139 \n\
00140 uint16 INPUT_NONE=0\n\
00141 uint16 INPUT_AUX_1_GNSS=1\n\
00142 uint16 INPUT_AUX_2_GNSS=2\n\
00143 uint16 INPUT_BASE_1_GNSS=4\n\
00144 uint16 INPUT_BASE_2_GNSS=5\n\
00145 uint16 INPUT_GNSS_1=7\n\
00146 uint16 INPUT_GNSS_2=8\n\
00147 uint16 input_select\n\
00148 \n\
00149 uint16 OUTPUT_NONE=0\n\
00150 uint16 OUTPUT_NMEA=1\n\
00151 uint16 OUTPUT_BINARY=2\n\
00152 uint16 OUTPUT_BASE_1_GNSS=4\n\
00153 uint16 OUTPUT_BASE_2_GNSS=5\n\
00154 uint16 OUTPUT_GNSS_1=7\n\
00155 uint16 OUTPUT_GNSS_2=8\n\
00156 uint16 output_select\n\
00157 \n\
00158 ";
00159 }
00160
00161 static const char* value(const ::applanix_msgs::COMPortSetup_<ContainerAllocator> &) { return value(); }
00162 };
00163
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace serialization
00170 {
00171
00172 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> >
00173 {
00174 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00175 {
00176 stream.next(m.transaction);
00177 stream.next(m.ports_count);
00178 stream.next(m.ports);
00179 stream.next(m.port_mask);
00180 }
00181
00182 ROS_DECLARE_ALLINONE_SERIALIZER;
00183 };
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace message_operations
00190 {
00191
00192 template<class ContainerAllocator>
00193 struct Printer< ::applanix_msgs::COMPortSetup_<ContainerAllocator> >
00194 {
00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::COMPortSetup_<ContainerAllocator> & v)
00196 {
00197 s << indent << "transaction: ";
00198 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00199 s << indent << "ports_count: ";
00200 Printer<uint16_t>::stream(s, indent + " ", v.ports_count);
00201 s << indent << "ports[]" << std::endl;
00202 for (size_t i = 0; i < v.ports.size(); ++i)
00203 {
00204 s << indent << " ports[" << i << "]: ";
00205 s << std::endl;
00206 s << indent;
00207 Printer< ::applanix_msgs::COMPortParams_<ContainerAllocator> >::stream(s, indent + " ", v.ports[i]);
00208 }
00209 s << indent << "port_mask: ";
00210 Printer<uint16_t>::stream(s, indent + " ", v.port_mask);
00211 }
00212 };
00213
00214
00215 }
00216 }
00217
00218 #endif // APPLANIX_MSGS_MESSAGE_COMPORTSETUP_H
00219