$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/ublox/ublox_msgs/msg/RxmSFRB.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_RXMSFRB_H 00003 #define UBLOX_MSGS_MESSAGE_RXMSFRB_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 ublox_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct RxmSFRB_ { 00022 typedef RxmSFRB_<ContainerAllocator> Type; 00023 00024 RxmSFRB_() 00025 : chn(0) 00026 , svid(0) 00027 , dwrd() 00028 { 00029 dwrd.assign(0); 00030 } 00031 00032 RxmSFRB_(const ContainerAllocator& _alloc) 00033 : chn(0) 00034 , svid(0) 00035 , dwrd() 00036 { 00037 dwrd.assign(0); 00038 } 00039 00040 typedef uint8_t _chn_type; 00041 uint8_t chn; 00042 00043 typedef uint8_t _svid_type; 00044 uint8_t svid; 00045 00046 typedef boost::array<uint32_t, 10> _dwrd_type; 00047 boost::array<uint32_t, 10> dwrd; 00048 00049 enum { CLASS_ID = 2 }; 00050 enum { MESSAGE_ID = 17 }; 00051 00052 ROS_DEPRECATED uint32_t get_dwrd_size() const { return (uint32_t)dwrd.size(); } 00053 private: 00054 static const char* __s_getDataType_() { return "ublox_msgs/RxmSFRB"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "eec72635c768d0528138f40de7442203"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# RXM-SFRB (0x02 0x11)\n\ 00069 # Subframe Buffer\n\ 00070 #\n\ 00071 # The content of one single subframe buffer\n\ 00072 # For GPS satellites, the 10 dwrd values contain the parity checked subframe data for 10\n\ 00073 # Words. Each dwrd has 24 Bits with valid data (Bits 23 to 0). The remaining 8 bits (31 to 24)\n\ 00074 # have an undefined value. The direction within the Word is that the higher order bits are\n\ 00075 # received from the SV first. Example: The Preamble can be found in dwrd[0], at bit position\n\ 00076 # 23 down to 16. For more details on the data format please refer to the ICD-GPS-200C\n\ 00077 # Interface document.\n\ 00078 # For SBAS satellites, the 250 Bit message block can be found in dwrd[0] to dwrd[6] for the\n\ 00079 # first 224 bits. The remaining 26 bits are in dwrd[7], whereas Bits 25 and 24 are the last two\n\ 00080 # data bits, and Bits 23 down to 0 are the parity bits. For more information on SBAS data\n\ 00081 # format, please refer to RTCA/DO-229C (MOPS), Appendix A.\n\ 00082 #\n\ 00083 \n\ 00084 uint8 CLASS_ID = 2\n\ 00085 uint8 MESSAGE_ID = 17\n\ 00086 \n\ 00087 uint8 chn # Channel Number\n\ 00088 uint8 svid # ID of Satellite transmitting Subframe\n\ 00089 uint32[10] dwrd # Words of Data\n\ 00090 \n\ 00091 "; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00098 { 00099 ros::serialization::OStream stream(write_ptr, 1000000000); 00100 ros::serialization::serialize(stream, chn); 00101 ros::serialization::serialize(stream, svid); 00102 ros::serialization::serialize(stream, dwrd); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00107 { 00108 ros::serialization::IStream stream(read_ptr, 1000000000); 00109 ros::serialization::deserialize(stream, chn); 00110 ros::serialization::deserialize(stream, svid); 00111 ros::serialization::deserialize(stream, dwrd); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(chn); 00119 size += ros::serialization::serializationLength(svid); 00120 size += ros::serialization::serializationLength(dwrd); 00121 return size; 00122 } 00123 00124 typedef boost::shared_ptr< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > Ptr; 00125 typedef boost::shared_ptr< ::ublox_msgs::RxmSFRB_<ContainerAllocator> const> ConstPtr; 00126 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00127 }; // struct RxmSFRB 00128 typedef ::ublox_msgs::RxmSFRB_<std::allocator<void> > RxmSFRB; 00129 00130 typedef boost::shared_ptr< ::ublox_msgs::RxmSFRB> RxmSFRBPtr; 00131 typedef boost::shared_ptr< ::ublox_msgs::RxmSFRB const> RxmSFRBConstPtr; 00132 00133 00134 template<typename ContainerAllocator> 00135 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmSFRB_<ContainerAllocator> & v) 00136 { 00137 ros::message_operations::Printer< ::ublox_msgs::RxmSFRB_<ContainerAllocator> >::stream(s, "", v); 00138 return s;} 00139 00140 } // namespace ublox_msgs 00141 00142 namespace ros 00143 { 00144 namespace message_traits 00145 { 00146 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > : public TrueType {}; 00147 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSFRB_<ContainerAllocator> const> : public TrueType {}; 00148 template<class ContainerAllocator> 00149 struct MD5Sum< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "eec72635c768d0528138f40de7442203"; 00153 } 00154 00155 static const char* value(const ::ublox_msgs::RxmSFRB_<ContainerAllocator> &) { return value(); } 00156 static const uint64_t static_value1 = 0xeec72635c768d052ULL; 00157 static const uint64_t static_value2 = 0x8138f40de7442203ULL; 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct DataType< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "ublox_msgs/RxmSFRB"; 00165 } 00166 00167 static const char* value(const ::ublox_msgs::RxmSFRB_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct Definition< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "# RXM-SFRB (0x02 0x11)\n\ 00175 # Subframe Buffer\n\ 00176 #\n\ 00177 # The content of one single subframe buffer\n\ 00178 # For GPS satellites, the 10 dwrd values contain the parity checked subframe data for 10\n\ 00179 # Words. Each dwrd has 24 Bits with valid data (Bits 23 to 0). The remaining 8 bits (31 to 24)\n\ 00180 # have an undefined value. The direction within the Word is that the higher order bits are\n\ 00181 # received from the SV first. Example: The Preamble can be found in dwrd[0], at bit position\n\ 00182 # 23 down to 16. For more details on the data format please refer to the ICD-GPS-200C\n\ 00183 # Interface document.\n\ 00184 # For SBAS satellites, the 250 Bit message block can be found in dwrd[0] to dwrd[6] for the\n\ 00185 # first 224 bits. The remaining 26 bits are in dwrd[7], whereas Bits 25 and 24 are the last two\n\ 00186 # data bits, and Bits 23 down to 0 are the parity bits. For more information on SBAS data\n\ 00187 # format, please refer to RTCA/DO-229C (MOPS), Appendix A.\n\ 00188 #\n\ 00189 \n\ 00190 uint8 CLASS_ID = 2\n\ 00191 uint8 MESSAGE_ID = 17\n\ 00192 \n\ 00193 uint8 chn # Channel Number\n\ 00194 uint8 svid # ID of Satellite transmitting Subframe\n\ 00195 uint32[10] dwrd # Words of Data\n\ 00196 \n\ 00197 "; 00198 } 00199 00200 static const char* value(const ::ublox_msgs::RxmSFRB_<ContainerAllocator> &) { return value(); } 00201 }; 00202 00203 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > : public TrueType {}; 00204 } // namespace message_traits 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace serialization 00210 { 00211 00212 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > 00213 { 00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00215 { 00216 stream.next(m.chn); 00217 stream.next(m.svid); 00218 stream.next(m.dwrd); 00219 } 00220 00221 ROS_DECLARE_ALLINONE_SERIALIZER; 00222 }; // struct RxmSFRB_ 00223 } // namespace serialization 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace message_operations 00229 { 00230 00231 template<class ContainerAllocator> 00232 struct Printer< ::ublox_msgs::RxmSFRB_<ContainerAllocator> > 00233 { 00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmSFRB_<ContainerAllocator> & v) 00235 { 00236 s << indent << "chn: "; 00237 Printer<uint8_t>::stream(s, indent + " ", v.chn); 00238 s << indent << "svid: "; 00239 Printer<uint8_t>::stream(s, indent + " ", v.svid); 00240 s << indent << "dwrd[]" << std::endl; 00241 for (size_t i = 0; i < v.dwrd.size(); ++i) 00242 { 00243 s << indent << " dwrd[" << i << "]: "; 00244 Printer<uint32_t>::stream(s, indent + " ", v.dwrd[i]); 00245 } 00246 } 00247 }; 00248 00249 00250 } // namespace message_operations 00251 } // namespace ros 00252 00253 #endif // UBLOX_MSGS_MESSAGE_RXMSFRB_H 00254