$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/CfgSBAS.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGSBAS_H 00003 #define UBLOX_MSGS_MESSAGE_CFGSBAS_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 CfgSBAS_ { 00022 typedef CfgSBAS_<ContainerAllocator> Type; 00023 00024 CfgSBAS_() 00025 : mode(0) 00026 , usage(0) 00027 , maxSBAS(0) 00028 , scanmode2(0) 00029 , scanmode1(0) 00030 { 00031 } 00032 00033 CfgSBAS_(const ContainerAllocator& _alloc) 00034 : mode(0) 00035 , usage(0) 00036 , maxSBAS(0) 00037 , scanmode2(0) 00038 , scanmode1(0) 00039 { 00040 } 00041 00042 typedef uint8_t _mode_type; 00043 uint8_t mode; 00044 00045 typedef uint8_t _usage_type; 00046 uint8_t usage; 00047 00048 typedef uint8_t _maxSBAS_type; 00049 uint8_t maxSBAS; 00050 00051 typedef uint8_t _scanmode2_type; 00052 uint8_t scanmode2; 00053 00054 typedef uint32_t _scanmode1_type; 00055 uint32_t scanmode1; 00056 00057 enum { CLASS_ID = 6 }; 00058 enum { MESSAGE_ID = 22 }; 00059 enum { MODE_ENABLED = 1 }; 00060 enum { MODE_TEST = 2 }; 00061 enum { USAGE_RANGE = 1 }; 00062 enum { USAGE_DIFFCORR = 2 }; 00063 enum { USAGE_INTEGRITY = 4 }; 00064 00065 private: 00066 static const char* __s_getDataType_() { return "ublox_msgs/CfgSBAS"; } 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 "39af6a94627471fe56e5091b5bd74bf2"; } 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 "# CFG-SBAS (0x06 0x24)\n\ 00081 # SBAS Configuration\n\ 00082 #\n\ 00083 \n\ 00084 uint8 CLASS_ID = 6\n\ 00085 uint8 MESSAGE_ID = 22\n\ 00086 \n\ 00087 uint8 mode # SBAS Mode\n\ 00088 uint8 MODE_ENABLED = 1 # SBAS Enabled (1) / Disabled (0)\n\ 00089 uint8 MODE_TEST = 2 # SBAS Testbed: Use data anyhow (1) / Ignore data when in Test Mode (SBAS Msg 0)\n\ 00090 \n\ 00091 uint8 usage # SBAS Usage\n\ 00092 uint8 USAGE_RANGE = 1 # Use SBAS GEOs as a ranging source (for navigation)\n\ 00093 uint8 USAGE_DIFFCORR = 2 # Use SBAS Differential Corrections\n\ 00094 uint8 USAGE_INTEGRITY = 4 # Use SBAS Integrity Information\n\ 00095 \n\ 00096 uint8 maxSBAS # Maximum Number of SBAS prioritized tracking\n\ 00097 # channels (valid range: 0 - 3) to use\n\ 00098 \n\ 00099 \n\ 00100 uint8 scanmode2 # Continuation of scanmode bitmask below\n\ 00101 uint32 scanmode1 # Which SBAS PRN numbers to search for (Bitmask)\n\ 00102 # If all Bits are set to zero, auto-scan (i.e. all valid\n\ 00103 # PRNs) are searched. Every bit corresponds to a PRN number.\n\ 00104 \n\ 00105 "; } 00106 public: 00107 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00112 { 00113 ros::serialization::OStream stream(write_ptr, 1000000000); 00114 ros::serialization::serialize(stream, mode); 00115 ros::serialization::serialize(stream, usage); 00116 ros::serialization::serialize(stream, maxSBAS); 00117 ros::serialization::serialize(stream, scanmode2); 00118 ros::serialization::serialize(stream, scanmode1); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00123 { 00124 ros::serialization::IStream stream(read_ptr, 1000000000); 00125 ros::serialization::deserialize(stream, mode); 00126 ros::serialization::deserialize(stream, usage); 00127 ros::serialization::deserialize(stream, maxSBAS); 00128 ros::serialization::deserialize(stream, scanmode2); 00129 ros::serialization::deserialize(stream, scanmode1); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(mode); 00137 size += ros::serialization::serializationLength(usage); 00138 size += ros::serialization::serializationLength(maxSBAS); 00139 size += ros::serialization::serializationLength(scanmode2); 00140 size += ros::serialization::serializationLength(scanmode1); 00141 return size; 00142 } 00143 00144 typedef boost::shared_ptr< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > Ptr; 00145 typedef boost::shared_ptr< ::ublox_msgs::CfgSBAS_<ContainerAllocator> const> ConstPtr; 00146 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00147 }; // struct CfgSBAS 00148 typedef ::ublox_msgs::CfgSBAS_<std::allocator<void> > CfgSBAS; 00149 00150 typedef boost::shared_ptr< ::ublox_msgs::CfgSBAS> CfgSBASPtr; 00151 typedef boost::shared_ptr< ::ublox_msgs::CfgSBAS const> CfgSBASConstPtr; 00152 00153 00154 template<typename ContainerAllocator> 00155 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgSBAS_<ContainerAllocator> & v) 00156 { 00157 ros::message_operations::Printer< ::ublox_msgs::CfgSBAS_<ContainerAllocator> >::stream(s, "", v); 00158 return s;} 00159 00160 } // namespace ublox_msgs 00161 00162 namespace ros 00163 { 00164 namespace message_traits 00165 { 00166 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > : public TrueType {}; 00167 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgSBAS_<ContainerAllocator> const> : public TrueType {}; 00168 template<class ContainerAllocator> 00169 struct MD5Sum< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "39af6a94627471fe56e5091b5bd74bf2"; 00173 } 00174 00175 static const char* value(const ::ublox_msgs::CfgSBAS_<ContainerAllocator> &) { return value(); } 00176 static const uint64_t static_value1 = 0x39af6a94627471feULL; 00177 static const uint64_t static_value2 = 0x56e5091b5bd74bf2ULL; 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct DataType< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "ublox_msgs/CfgSBAS"; 00185 } 00186 00187 static const char* value(const ::ublox_msgs::CfgSBAS_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct Definition< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "# CFG-SBAS (0x06 0x24)\n\ 00195 # SBAS Configuration\n\ 00196 #\n\ 00197 \n\ 00198 uint8 CLASS_ID = 6\n\ 00199 uint8 MESSAGE_ID = 22\n\ 00200 \n\ 00201 uint8 mode # SBAS Mode\n\ 00202 uint8 MODE_ENABLED = 1 # SBAS Enabled (1) / Disabled (0)\n\ 00203 uint8 MODE_TEST = 2 # SBAS Testbed: Use data anyhow (1) / Ignore data when in Test Mode (SBAS Msg 0)\n\ 00204 \n\ 00205 uint8 usage # SBAS Usage\n\ 00206 uint8 USAGE_RANGE = 1 # Use SBAS GEOs as a ranging source (for navigation)\n\ 00207 uint8 USAGE_DIFFCORR = 2 # Use SBAS Differential Corrections\n\ 00208 uint8 USAGE_INTEGRITY = 4 # Use SBAS Integrity Information\n\ 00209 \n\ 00210 uint8 maxSBAS # Maximum Number of SBAS prioritized tracking\n\ 00211 # channels (valid range: 0 - 3) to use\n\ 00212 \n\ 00213 \n\ 00214 uint8 scanmode2 # Continuation of scanmode bitmask below\n\ 00215 uint32 scanmode1 # Which SBAS PRN numbers to search for (Bitmask)\n\ 00216 # If all Bits are set to zero, auto-scan (i.e. all valid\n\ 00217 # PRNs) are searched. Every bit corresponds to a PRN number.\n\ 00218 \n\ 00219 "; 00220 } 00221 00222 static const char* value(const ::ublox_msgs::CfgSBAS_<ContainerAllocator> &) { return value(); } 00223 }; 00224 00225 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > : public TrueType {}; 00226 } // namespace message_traits 00227 } // namespace ros 00228 00229 namespace ros 00230 { 00231 namespace serialization 00232 { 00233 00234 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > 00235 { 00236 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00237 { 00238 stream.next(m.mode); 00239 stream.next(m.usage); 00240 stream.next(m.maxSBAS); 00241 stream.next(m.scanmode2); 00242 stream.next(m.scanmode1); 00243 } 00244 00245 ROS_DECLARE_ALLINONE_SERIALIZER; 00246 }; // struct CfgSBAS_ 00247 } // namespace serialization 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace message_operations 00253 { 00254 00255 template<class ContainerAllocator> 00256 struct Printer< ::ublox_msgs::CfgSBAS_<ContainerAllocator> > 00257 { 00258 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgSBAS_<ContainerAllocator> & v) 00259 { 00260 s << indent << "mode: "; 00261 Printer<uint8_t>::stream(s, indent + " ", v.mode); 00262 s << indent << "usage: "; 00263 Printer<uint8_t>::stream(s, indent + " ", v.usage); 00264 s << indent << "maxSBAS: "; 00265 Printer<uint8_t>::stream(s, indent + " ", v.maxSBAS); 00266 s << indent << "scanmode2: "; 00267 Printer<uint8_t>::stream(s, indent + " ", v.scanmode2); 00268 s << indent << "scanmode1: "; 00269 Printer<uint32_t>::stream(s, indent + " ", v.scanmode1); 00270 } 00271 }; 00272 00273 00274 } // namespace message_operations 00275 } // namespace ros 00276 00277 #endif // UBLOX_MSGS_MESSAGE_CFGSBAS_H 00278