Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_BINARYMESSAGESELECT_H
00003 #define APPLANIX_MSGS_MESSAGE_BINARYMESSAGESELECT_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 BinaryMessageSelect_ {
00023 typedef BinaryMessageSelect_<ContainerAllocator> Type;
00024
00025 BinaryMessageSelect_()
00026 : transaction(0)
00027 , reserved()
00028 , ports_count(0)
00029 , ports()
00030 {
00031 reserved.assign(0);
00032 }
00033
00034 BinaryMessageSelect_(const ContainerAllocator& _alloc)
00035 : transaction(0)
00036 , reserved()
00037 , ports_count(0)
00038 , ports(_alloc)
00039 {
00040 reserved.assign(0);
00041 }
00042
00043 typedef uint16_t _transaction_type;
00044 uint16_t transaction;
00045
00046 typedef boost::array<uint8_t, 7> _reserved_type;
00047 boost::array<uint8_t, 7> reserved;
00048
00049 typedef uint8_t _ports_count_type;
00050 uint8_t ports_count;
00051
00052 typedef std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > _ports_type;
00053 std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > ports;
00054
00055
00056 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> const> ConstPtr;
00058 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 };
00060 typedef ::applanix_msgs::BinaryMessageSelect_<std::allocator<void> > BinaryMessageSelect;
00061
00062 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect> BinaryMessageSelectPtr;
00063 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect const> BinaryMessageSelectConstPtr;
00064
00065
00066 template<typename ContainerAllocator>
00067 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> & v)
00068 {
00069 ros::message_operations::Printer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> >::stream(s, "", v);
00070 return s;}
00071
00072 }
00073
00074 namespace ros
00075 {
00076 namespace message_traits
00077 {
00078 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > : public TrueType {};
00079 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> const> : public TrueType {};
00080 template<class ContainerAllocator>
00081 struct MD5Sum< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "5bb4f6bf007b45be4c257f9bdd00e7fa";
00085 }
00086
00087 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); }
00088 static const uint64_t static_value1 = 0x5bb4f6bf007b45beULL;
00089 static const uint64_t static_value2 = 0x4c257f9bdd00e7faULL;
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct DataType< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "applanix_msgs/BinaryMessageSelect";
00097 }
00098
00099 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); }
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct Definition< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "# Msg 35\n\
00107 uint16 transaction\n\
00108 \n\
00109 uint8[7] reserved\n\
00110 \n\
00111 uint8 ports_count\n\
00112 COMPortMessages[] ports\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: applanix_msgs/COMPortMessages\n\
00116 uint8 port_num\n\
00117 \n\
00118 uint32 MESSAGES_NMEA_GST=1\n\
00119 uint32 MESSAGES_NMEA_GGA=2\n\
00120 uint32 MESSAGES_NMEA_HDT=4\n\
00121 uint32 MESSAGES_NMEA_ZDA=8\n\
00122 uint32 MESSAGES_NMEA_EVT1=16\n\
00123 uint32 MESSAGES_NMEA_EVT2=32\n\
00124 uint32 MESSAGES_NMEA_VTG=64\n\
00125 uint32 MESSAGES_NMEA_PASHR=128\n\
00126 uint32 MESSAGES_NMEA_GGA2=8192\n\
00127 uint32 MESSAGES_NMEA_PPS=16384\n\
00128 uint32 MESSAGES_NMEA_GGK=32768\n\
00129 uint32 MESSAGES_NMEA_RMC=65536\n\
00130 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\
00131 uint32 MESSAGES_BIN_RDR1=2\n\
00132 uint32 MESSAGES_BIN_PAST2=4\n\
00133 uint32 MESSAGES_BIN_PPS=65536\n\
00134 uint32 MESSAGES_BIN_TM1B=131072\n\
00135 uint32 messages\n\
00136 \n\
00137 uint8 update_rate\n\
00138 \n\
00139 ";
00140 }
00141
00142 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); }
00143 };
00144
00145 }
00146 }
00147
00148 namespace ros
00149 {
00150 namespace serialization
00151 {
00152
00153 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> >
00154 {
00155 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00156 {
00157 stream.next(m.transaction);
00158 stream.next(m.reserved);
00159 stream.next(m.ports_count);
00160 stream.next(m.ports);
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> & v)
00177 {
00178 s << indent << "transaction: ";
00179 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00180 s << indent << "reserved[]" << std::endl;
00181 for (size_t i = 0; i < v.reserved.size(); ++i)
00182 {
00183 s << indent << " reserved[" << i << "]: ";
00184 Printer<uint8_t>::stream(s, indent + " ", v.reserved[i]);
00185 }
00186 s << indent << "ports_count: ";
00187 Printer<uint8_t>::stream(s, indent + " ", v.ports_count);
00188 s << indent << "ports[]" << std::endl;
00189 for (size_t i = 0; i < v.ports.size(); ++i)
00190 {
00191 s << indent << " ports[" << i << "]: ";
00192 s << std::endl;
00193 s << indent;
00194 Printer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::stream(s, indent + " ", v.ports[i]);
00195 }
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // APPLANIX_MSGS_MESSAGE_BINARYMESSAGESELECT_H
00204