$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/RxmALM.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_RXMALM_H 00003 #define UBLOX_MSGS_MESSAGE_RXMALM_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 RxmALM_ { 00022 typedef RxmALM_<ContainerAllocator> Type; 00023 00024 RxmALM_() 00025 : svid(0) 00026 , week(0) 00027 , dwrd() 00028 { 00029 } 00030 00031 RxmALM_(const ContainerAllocator& _alloc) 00032 : svid(0) 00033 , week(0) 00034 , dwrd(_alloc) 00035 { 00036 } 00037 00038 typedef uint32_t _svid_type; 00039 uint32_t svid; 00040 00041 typedef uint32_t _week_type; 00042 uint32_t week; 00043 00044 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _dwrd_type; 00045 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > dwrd; 00046 00047 enum { CLASS_ID = 2 }; 00048 enum { MESSAGE_ID = 48 }; 00049 00050 ROS_DEPRECATED uint32_t get_dwrd_size() const { return (uint32_t)dwrd.size(); } 00051 ROS_DEPRECATED void set_dwrd_size(uint32_t size) { dwrd.resize((size_t)size); } 00052 ROS_DEPRECATED void get_dwrd_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->dwrd; } 00053 ROS_DEPRECATED void set_dwrd_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->dwrd = vec; } 00054 private: 00055 static const char* __s_getDataType_() { return "ublox_msgs/RxmALM"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "97a9e7864105ab31fc93f2e4bef9de26"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "# RXM-ALM (0x02 0x30)\n\ 00070 # GPS Aiding Almanach Input/Output Message\n\ 00071 #\n\ 00072 # This message is provided considered obsolete, please use AID-ALM instead!\n\ 00073 # - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the almanach is not available\n\ 00074 # for the given SV.\n\ 00075 # - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )\n\ 00076 # from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10\n\ 00077 # of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac\n\ 00078 # pages.\n\ 00079 # - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are\n\ 00080 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00081 # - Example: Parameter e (Eccentricity) from Almanach Subframe 4/5, Word 3, Bits 69-84\n\ 00082 # within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.\n\ 00083 #\n\ 00084 \n\ 00085 uint8 CLASS_ID = 2\n\ 00086 uint8 MESSAGE_ID = 48\n\ 00087 \n\ 00088 uint32 svid # SV ID for which this Almanach Data is (Valid Range: 1 .. 32 or 51, 56, 63).\n\ 00089 uint32 week # Issue Date of Almanach (GPS week number)\n\ 00090 \n\ 00091 # Start of optional block\n\ 00092 uint32[] dwrd # Almanach Words\n\ 00093 # End of optional block\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, svid); 00105 ros::serialization::serialize(stream, week); 00106 ros::serialization::serialize(stream, dwrd); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00111 { 00112 ros::serialization::IStream stream(read_ptr, 1000000000); 00113 ros::serialization::deserialize(stream, svid); 00114 ros::serialization::deserialize(stream, week); 00115 ros::serialization::deserialize(stream, dwrd); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(svid); 00123 size += ros::serialization::serializationLength(week); 00124 size += ros::serialization::serializationLength(dwrd); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::ublox_msgs::RxmALM_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::ublox_msgs::RxmALM_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct RxmALM 00132 typedef ::ublox_msgs::RxmALM_<std::allocator<void> > RxmALM; 00133 00134 typedef boost::shared_ptr< ::ublox_msgs::RxmALM> RxmALMPtr; 00135 typedef boost::shared_ptr< ::ublox_msgs::RxmALM const> RxmALMConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmALM_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::ublox_msgs::RxmALM_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace ublox_msgs 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmALM_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmALM_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::ublox_msgs::RxmALM_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "97a9e7864105ab31fc93f2e4bef9de26"; 00157 } 00158 00159 static const char* value(const ::ublox_msgs::RxmALM_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0x97a9e7864105ab31ULL; 00161 static const uint64_t static_value2 = 0xfc93f2e4bef9de26ULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::ublox_msgs::RxmALM_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "ublox_msgs/RxmALM"; 00169 } 00170 00171 static const char* value(const ::ublox_msgs::RxmALM_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::ublox_msgs::RxmALM_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "# RXM-ALM (0x02 0x30)\n\ 00179 # GPS Aiding Almanach Input/Output Message\n\ 00180 #\n\ 00181 # This message is provided considered obsolete, please use AID-ALM instead!\n\ 00182 # - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the almanach is not available\n\ 00183 # for the given SV.\n\ 00184 # - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )\n\ 00185 # from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10\n\ 00186 # of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac\n\ 00187 # pages.\n\ 00188 # - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are\n\ 00189 # located in Bits 0 to 23. Bits 24 to 31 shall be ignored.\n\ 00190 # - Example: Parameter e (Eccentricity) from Almanach Subframe 4/5, Word 3, Bits 69-84\n\ 00191 # within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.\n\ 00192 #\n\ 00193 \n\ 00194 uint8 CLASS_ID = 2\n\ 00195 uint8 MESSAGE_ID = 48\n\ 00196 \n\ 00197 uint32 svid # SV ID for which this Almanach Data is (Valid Range: 1 .. 32 or 51, 56, 63).\n\ 00198 uint32 week # Issue Date of Almanach (GPS week number)\n\ 00199 \n\ 00200 # Start of optional block\n\ 00201 uint32[] dwrd # Almanach Words\n\ 00202 # End of optional block\n\ 00203 \n\ 00204 "; 00205 } 00206 00207 static const char* value(const ::ublox_msgs::RxmALM_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 } // namespace message_traits 00211 } // namespace ros 00212 00213 namespace ros 00214 { 00215 namespace serialization 00216 { 00217 00218 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmALM_<ContainerAllocator> > 00219 { 00220 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00221 { 00222 stream.next(m.svid); 00223 stream.next(m.week); 00224 stream.next(m.dwrd); 00225 } 00226 00227 ROS_DECLARE_ALLINONE_SERIALIZER; 00228 }; // struct RxmALM_ 00229 } // namespace serialization 00230 } // namespace ros 00231 00232 namespace ros 00233 { 00234 namespace message_operations 00235 { 00236 00237 template<class ContainerAllocator> 00238 struct Printer< ::ublox_msgs::RxmALM_<ContainerAllocator> > 00239 { 00240 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmALM_<ContainerAllocator> & v) 00241 { 00242 s << indent << "svid: "; 00243 Printer<uint32_t>::stream(s, indent + " ", v.svid); 00244 s << indent << "week: "; 00245 Printer<uint32_t>::stream(s, indent + " ", v.week); 00246 s << indent << "dwrd[]" << std::endl; 00247 for (size_t i = 0; i < v.dwrd.size(); ++i) 00248 { 00249 s << indent << " dwrd[" << i << "]: "; 00250 Printer<uint32_t>::stream(s, indent + " ", v.dwrd[i]); 00251 } 00252 } 00253 }; 00254 00255 00256 } // namespace message_operations 00257 } // namespace ros 00258 00259 #endif // UBLOX_MSGS_MESSAGE_RXMALM_H 00260