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