$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/BinaryMessageSelect.msg */ 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 ROS_DEPRECATED uint32_t get_reserved_size() const { return (uint32_t)reserved.size(); } 00057 ROS_DEPRECATED uint32_t get_ports_size() const { return (uint32_t)ports.size(); } 00058 ROS_DEPRECATED void set_ports_size(uint32_t size) { ports.resize((size_t)size); } 00059 ROS_DEPRECATED void get_ports_vec(std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > & vec) const { vec = this->ports; } 00060 ROS_DEPRECATED void set_ports_vec(const std::vector< ::applanix_msgs::COMPortMessages_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::other > & vec) { this->ports = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "applanix_msgs/BinaryMessageSelect"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "5bb4f6bf007b45be4c257f9bdd00e7fa"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# Msg 35\n\ 00077 uint16 transaction\n\ 00078 \n\ 00079 uint8[7] reserved\n\ 00080 \n\ 00081 uint8 ports_count\n\ 00082 COMPortMessages[] ports\n\ 00083 \n\ 00084 ================================================================================\n\ 00085 MSG: applanix_msgs/COMPortMessages\n\ 00086 uint8 port_num\n\ 00087 \n\ 00088 uint32 MESSAGES_NMEA_GST=1\n\ 00089 uint32 MESSAGES_NMEA_GGA=2\n\ 00090 uint32 MESSAGES_NMEA_HDT=4\n\ 00091 uint32 MESSAGES_NMEA_ZDA=8\n\ 00092 uint32 MESSAGES_NMEA_EVT1=16\n\ 00093 uint32 MESSAGES_NMEA_EVT2=32\n\ 00094 uint32 MESSAGES_NMEA_VTG=64\n\ 00095 uint32 MESSAGES_NMEA_PASHR=128\n\ 00096 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00097 uint32 MESSAGES_NMEA_PPS=16384\n\ 00098 uint32 MESSAGES_NMEA_GGK=32768\n\ 00099 uint32 MESSAGES_NMEA_RMC=65536\n\ 00100 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00101 uint32 MESSAGES_BIN_RDR1=2\n\ 00102 uint32 MESSAGES_BIN_PAST2=4\n\ 00103 uint32 MESSAGES_BIN_PPS=65536\n\ 00104 uint32 MESSAGES_BIN_TM1B=131072\n\ 00105 uint32 messages\n\ 00106 \n\ 00107 uint8 update_rate\n\ 00108 \n\ 00109 "; } 00110 public: 00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00116 { 00117 ros::serialization::OStream stream(write_ptr, 1000000000); 00118 ros::serialization::serialize(stream, transaction); 00119 ros::serialization::serialize(stream, reserved); 00120 ros::serialization::serialize(stream, ports_count); 00121 ros::serialization::serialize(stream, ports); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00126 { 00127 ros::serialization::IStream stream(read_ptr, 1000000000); 00128 ros::serialization::deserialize(stream, transaction); 00129 ros::serialization::deserialize(stream, reserved); 00130 ros::serialization::deserialize(stream, ports_count); 00131 ros::serialization::deserialize(stream, ports); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint32_t serializationLength() const 00136 { 00137 uint32_t size = 0; 00138 size += ros::serialization::serializationLength(transaction); 00139 size += ros::serialization::serializationLength(reserved); 00140 size += ros::serialization::serializationLength(ports_count); 00141 size += ros::serialization::serializationLength(ports); 00142 return size; 00143 } 00144 00145 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > Ptr; 00146 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> const> ConstPtr; 00147 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00148 }; // struct BinaryMessageSelect 00149 typedef ::applanix_msgs::BinaryMessageSelect_<std::allocator<void> > BinaryMessageSelect; 00150 00151 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect> BinaryMessageSelectPtr; 00152 typedef boost::shared_ptr< ::applanix_msgs::BinaryMessageSelect const> BinaryMessageSelectConstPtr; 00153 00154 00155 template<typename ContainerAllocator> 00156 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> & v) 00157 { 00158 ros::message_operations::Printer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> >::stream(s, "", v); 00159 return s;} 00160 00161 } // namespace applanix_msgs 00162 00163 namespace ros 00164 { 00165 namespace message_traits 00166 { 00167 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > : public TrueType {}; 00168 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> const> : public TrueType {}; 00169 template<class ContainerAllocator> 00170 struct MD5Sum< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "5bb4f6bf007b45be4c257f9bdd00e7fa"; 00174 } 00175 00176 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); } 00177 static const uint64_t static_value1 = 0x5bb4f6bf007b45beULL; 00178 static const uint64_t static_value2 = 0x4c257f9bdd00e7faULL; 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct DataType< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "applanix_msgs/BinaryMessageSelect"; 00186 } 00187 00188 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct Definition< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "# Msg 35\n\ 00196 uint16 transaction\n\ 00197 \n\ 00198 uint8[7] reserved\n\ 00199 \n\ 00200 uint8 ports_count\n\ 00201 COMPortMessages[] ports\n\ 00202 \n\ 00203 ================================================================================\n\ 00204 MSG: applanix_msgs/COMPortMessages\n\ 00205 uint8 port_num\n\ 00206 \n\ 00207 uint32 MESSAGES_NMEA_GST=1\n\ 00208 uint32 MESSAGES_NMEA_GGA=2\n\ 00209 uint32 MESSAGES_NMEA_HDT=4\n\ 00210 uint32 MESSAGES_NMEA_ZDA=8\n\ 00211 uint32 MESSAGES_NMEA_EVT1=16\n\ 00212 uint32 MESSAGES_NMEA_EVT2=32\n\ 00213 uint32 MESSAGES_NMEA_VTG=64\n\ 00214 uint32 MESSAGES_NMEA_PASHR=128\n\ 00215 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00216 uint32 MESSAGES_NMEA_PPS=16384\n\ 00217 uint32 MESSAGES_NMEA_GGK=32768\n\ 00218 uint32 MESSAGES_NMEA_RMC=65536\n\ 00219 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00220 uint32 MESSAGES_BIN_RDR1=2\n\ 00221 uint32 MESSAGES_BIN_PAST2=4\n\ 00222 uint32 MESSAGES_BIN_PPS=65536\n\ 00223 uint32 MESSAGES_BIN_TM1B=131072\n\ 00224 uint32 messages\n\ 00225 \n\ 00226 uint8 update_rate\n\ 00227 \n\ 00228 "; 00229 } 00230 00231 static const char* value(const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 } // namespace message_traits 00235 } // namespace ros 00236 00237 namespace ros 00238 { 00239 namespace serialization 00240 { 00241 00242 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > 00243 { 00244 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00245 { 00246 stream.next(m.transaction); 00247 stream.next(m.reserved); 00248 stream.next(m.ports_count); 00249 stream.next(m.ports); 00250 } 00251 00252 ROS_DECLARE_ALLINONE_SERIALIZER; 00253 }; // struct BinaryMessageSelect_ 00254 } // namespace serialization 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace message_operations 00260 { 00261 00262 template<class ContainerAllocator> 00263 struct Printer< ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> > 00264 { 00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::BinaryMessageSelect_<ContainerAllocator> & v) 00266 { 00267 s << indent << "transaction: "; 00268 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00269 s << indent << "reserved[]" << std::endl; 00270 for (size_t i = 0; i < v.reserved.size(); ++i) 00271 { 00272 s << indent << " reserved[" << i << "]: "; 00273 Printer<uint8_t>::stream(s, indent + " ", v.reserved[i]); 00274 } 00275 s << indent << "ports_count: "; 00276 Printer<uint8_t>::stream(s, indent + " ", v.ports_count); 00277 s << indent << "ports[]" << std::endl; 00278 for (size_t i = 0; i < v.ports.size(); ++i) 00279 { 00280 s << indent << " ports[" << i << "]: "; 00281 s << std::endl; 00282 s << indent; 00283 Printer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::stream(s, indent + " ", v.ports[i]); 00284 } 00285 } 00286 }; 00287 00288 00289 } // namespace message_operations 00290 } // namespace ros 00291 00292 #endif // APPLANIX_MSGS_MESSAGE_BINARYMESSAGESELECT_H 00293