$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/COMPortMessages.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_COMPORTMESSAGES_H 00003 #define APPLANIX_MSGS_MESSAGE_COMPORTMESSAGES_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 COMPortMessages_ { 00022 typedef COMPortMessages_<ContainerAllocator> Type; 00023 00024 COMPortMessages_() 00025 : port_num(0) 00026 , messages(0) 00027 , update_rate(0) 00028 { 00029 } 00030 00031 COMPortMessages_(const ContainerAllocator& _alloc) 00032 : port_num(0) 00033 , messages(0) 00034 , update_rate(0) 00035 { 00036 } 00037 00038 typedef uint8_t _port_num_type; 00039 uint8_t port_num; 00040 00041 typedef uint32_t _messages_type; 00042 uint32_t messages; 00043 00044 typedef uint8_t _update_rate_type; 00045 uint8_t update_rate; 00046 00047 enum { MESSAGES_NMEA_GST = 1 }; 00048 enum { MESSAGES_NMEA_GGA = 2 }; 00049 enum { MESSAGES_NMEA_HDT = 4 }; 00050 enum { MESSAGES_NMEA_ZDA = 8 }; 00051 enum { MESSAGES_NMEA_EVT1 = 16 }; 00052 enum { MESSAGES_NMEA_EVT2 = 32 }; 00053 enum { MESSAGES_NMEA_VTG = 64 }; 00054 enum { MESSAGES_NMEA_PASHR = 128 }; 00055 enum { MESSAGES_NMEA_GGA2 = 8192 }; 00056 enum { MESSAGES_NMEA_PPS = 16384 }; 00057 enum { MESSAGES_NMEA_GGK = 32768 }; 00058 enum { MESSAGES_NMEA_RMC = 65536 }; 00059 enum { MESSAGES_BIN_GIMBAL_LOOP = 1 }; 00060 enum { MESSAGES_BIN_RDR1 = 2 }; 00061 enum { MESSAGES_BIN_PAST2 = 4 }; 00062 enum { MESSAGES_BIN_PPS = 65536 }; 00063 enum { MESSAGES_BIN_TM1B = 131072 }; 00064 00065 private: 00066 static const char* __s_getDataType_() { return "applanix_msgs/COMPortMessages"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00069 00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00071 00072 private: 00073 static const char* __s_getMD5Sum_() { return "88218ad4124322a799282c496fb3a33f"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "uint8 port_num\n\ 00081 \n\ 00082 uint32 MESSAGES_NMEA_GST=1\n\ 00083 uint32 MESSAGES_NMEA_GGA=2\n\ 00084 uint32 MESSAGES_NMEA_HDT=4\n\ 00085 uint32 MESSAGES_NMEA_ZDA=8\n\ 00086 uint32 MESSAGES_NMEA_EVT1=16\n\ 00087 uint32 MESSAGES_NMEA_EVT2=32\n\ 00088 uint32 MESSAGES_NMEA_VTG=64\n\ 00089 uint32 MESSAGES_NMEA_PASHR=128\n\ 00090 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00091 uint32 MESSAGES_NMEA_PPS=16384\n\ 00092 uint32 MESSAGES_NMEA_GGK=32768\n\ 00093 uint32 MESSAGES_NMEA_RMC=65536\n\ 00094 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00095 uint32 MESSAGES_BIN_RDR1=2\n\ 00096 uint32 MESSAGES_BIN_PAST2=4\n\ 00097 uint32 MESSAGES_BIN_PPS=65536\n\ 00098 uint32 MESSAGES_BIN_TM1B=131072\n\ 00099 uint32 messages\n\ 00100 \n\ 00101 uint8 update_rate\n\ 00102 \n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, port_num); 00113 ros::serialization::serialize(stream, messages); 00114 ros::serialization::serialize(stream, update_rate); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00119 { 00120 ros::serialization::IStream stream(read_ptr, 1000000000); 00121 ros::serialization::deserialize(stream, port_num); 00122 ros::serialization::deserialize(stream, messages); 00123 ros::serialization::deserialize(stream, update_rate); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(port_num); 00131 size += ros::serialization::serializationLength(messages); 00132 size += ros::serialization::serializationLength(update_rate); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::applanix_msgs::COMPortMessages_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct COMPortMessages 00140 typedef ::applanix_msgs::COMPortMessages_<std::allocator<void> > COMPortMessages; 00141 00142 typedef boost::shared_ptr< ::applanix_msgs::COMPortMessages> COMPortMessagesPtr; 00143 typedef boost::shared_ptr< ::applanix_msgs::COMPortMessages const> COMPortMessagesConstPtr; 00144 00145 00146 template<typename ContainerAllocator> 00147 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::COMPortMessages_<ContainerAllocator> & v) 00148 { 00149 ros::message_operations::Printer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> >::stream(s, "", v); 00150 return s;} 00151 00152 } // namespace applanix_msgs 00153 00154 namespace ros 00155 { 00156 namespace message_traits 00157 { 00158 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > : public TrueType {}; 00159 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::COMPortMessages_<ContainerAllocator> const> : public TrueType {}; 00160 template<class ContainerAllocator> 00161 struct MD5Sum< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "88218ad4124322a799282c496fb3a33f"; 00165 } 00166 00167 static const char* value(const ::applanix_msgs::COMPortMessages_<ContainerAllocator> &) { return value(); } 00168 static const uint64_t static_value1 = 0x88218ad4124322a7ULL; 00169 static const uint64_t static_value2 = 0x99282c496fb3a33fULL; 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct DataType< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "applanix_msgs/COMPortMessages"; 00177 } 00178 00179 static const char* value(const ::applanix_msgs::COMPortMessages_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct Definition< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "uint8 port_num\n\ 00187 \n\ 00188 uint32 MESSAGES_NMEA_GST=1\n\ 00189 uint32 MESSAGES_NMEA_GGA=2\n\ 00190 uint32 MESSAGES_NMEA_HDT=4\n\ 00191 uint32 MESSAGES_NMEA_ZDA=8\n\ 00192 uint32 MESSAGES_NMEA_EVT1=16\n\ 00193 uint32 MESSAGES_NMEA_EVT2=32\n\ 00194 uint32 MESSAGES_NMEA_VTG=64\n\ 00195 uint32 MESSAGES_NMEA_PASHR=128\n\ 00196 uint32 MESSAGES_NMEA_GGA2=8192\n\ 00197 uint32 MESSAGES_NMEA_PPS=16384\n\ 00198 uint32 MESSAGES_NMEA_GGK=32768\n\ 00199 uint32 MESSAGES_NMEA_RMC=65536\n\ 00200 uint32 MESSAGES_BIN_GIMBAL_LOOP=1\n\ 00201 uint32 MESSAGES_BIN_RDR1=2\n\ 00202 uint32 MESSAGES_BIN_PAST2=4\n\ 00203 uint32 MESSAGES_BIN_PPS=65536\n\ 00204 uint32 MESSAGES_BIN_TM1B=131072\n\ 00205 uint32 messages\n\ 00206 \n\ 00207 uint8 update_rate\n\ 00208 \n\ 00209 "; 00210 } 00211 00212 static const char* value(const ::applanix_msgs::COMPortMessages_<ContainerAllocator> &) { return value(); } 00213 }; 00214 00215 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > : public TrueType {}; 00216 } // namespace message_traits 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace serialization 00222 { 00223 00224 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > 00225 { 00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00227 { 00228 stream.next(m.port_num); 00229 stream.next(m.messages); 00230 stream.next(m.update_rate); 00231 } 00232 00233 ROS_DECLARE_ALLINONE_SERIALIZER; 00234 }; // struct COMPortMessages_ 00235 } // namespace serialization 00236 } // namespace ros 00237 00238 namespace ros 00239 { 00240 namespace message_operations 00241 { 00242 00243 template<class ContainerAllocator> 00244 struct Printer< ::applanix_msgs::COMPortMessages_<ContainerAllocator> > 00245 { 00246 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::COMPortMessages_<ContainerAllocator> & v) 00247 { 00248 s << indent << "port_num: "; 00249 Printer<uint8_t>::stream(s, indent + " ", v.port_num); 00250 s << indent << "messages: "; 00251 Printer<uint32_t>::stream(s, indent + " ", v.messages); 00252 s << indent << "update_rate: "; 00253 Printer<uint8_t>::stream(s, indent + " ", v.update_rate); 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // APPLANIX_MSGS_MESSAGE_COMPORTMESSAGES_H 00262