$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/CfgRATE.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGRATE_H 00003 #define UBLOX_MSGS_MESSAGE_CFGRATE_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 CfgRATE_ { 00022 typedef CfgRATE_<ContainerAllocator> Type; 00023 00024 CfgRATE_() 00025 : measRate(0) 00026 , navRate(0) 00027 , timeRef(0) 00028 { 00029 } 00030 00031 CfgRATE_(const ContainerAllocator& _alloc) 00032 : measRate(0) 00033 , navRate(0) 00034 , timeRef(0) 00035 { 00036 } 00037 00038 typedef uint16_t _measRate_type; 00039 uint16_t measRate; 00040 00041 typedef uint16_t _navRate_type; 00042 uint16_t navRate; 00043 00044 typedef uint16_t _timeRef_type; 00045 uint16_t timeRef; 00046 00047 enum { CLASS_ID = 6 }; 00048 enum { MESSAGE_ID = 8 }; 00049 enum { TIME_REF_UTC = 0 }; 00050 enum { TIME_REF_GPS = 1 }; 00051 00052 private: 00053 static const char* __s_getDataType_() { return "ublox_msgs/CfgRATE"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "da095554bde2600fd2a774def27fb48e"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "# CFG-RATE (0x06 0x08)\n\ 00068 # Navigation/Measurement Rate Settings\n\ 00069 #\n\ 00070 \n\ 00071 uint8 CLASS_ID = 6\n\ 00072 uint8 MESSAGE_ID = 8\n\ 00073 \n\ 00074 uint16 measRate # Measurement Rate, GPS measurements are\n\ 00075 # taken every measRate milliseconds [ms]\n\ 00076 uint16 navRate # Navigation Rate, in number of measurement\n\ 00077 # cycles. On u-blox 5 and u-blox 6, this parameter\n\ 00078 # cannot be changed, and is always equals 1.\n\ 00079 uint16 timeRef # Alignment to reference time: 0 = UTC time, 1 = GPS time\n\ 00080 uint16 TIME_REF_UTC = 0\n\ 00081 uint16 TIME_REF_GPS = 1\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, measRate); 00093 ros::serialization::serialize(stream, navRate); 00094 ros::serialization::serialize(stream, timeRef); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, measRate); 00102 ros::serialization::deserialize(stream, navRate); 00103 ros::serialization::deserialize(stream, timeRef); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(measRate); 00111 size += ros::serialization::serializationLength(navRate); 00112 size += ros::serialization::serializationLength(timeRef); 00113 return size; 00114 } 00115 00116 typedef boost::shared_ptr< ::ublox_msgs::CfgRATE_<ContainerAllocator> > Ptr; 00117 typedef boost::shared_ptr< ::ublox_msgs::CfgRATE_<ContainerAllocator> const> ConstPtr; 00118 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00119 }; // struct CfgRATE 00120 typedef ::ublox_msgs::CfgRATE_<std::allocator<void> > CfgRATE; 00121 00122 typedef boost::shared_ptr< ::ublox_msgs::CfgRATE> CfgRATEPtr; 00123 typedef boost::shared_ptr< ::ublox_msgs::CfgRATE const> CfgRATEConstPtr; 00124 00125 00126 template<typename ContainerAllocator> 00127 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgRATE_<ContainerAllocator> & v) 00128 { 00129 ros::message_operations::Printer< ::ublox_msgs::CfgRATE_<ContainerAllocator> >::stream(s, "", v); 00130 return s;} 00131 00132 } // namespace ublox_msgs 00133 00134 namespace ros 00135 { 00136 namespace message_traits 00137 { 00138 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgRATE_<ContainerAllocator> > : public TrueType {}; 00139 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgRATE_<ContainerAllocator> const> : public TrueType {}; 00140 template<class ContainerAllocator> 00141 struct MD5Sum< ::ublox_msgs::CfgRATE_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "da095554bde2600fd2a774def27fb48e"; 00145 } 00146 00147 static const char* value(const ::ublox_msgs::CfgRATE_<ContainerAllocator> &) { return value(); } 00148 static const uint64_t static_value1 = 0xda095554bde2600fULL; 00149 static const uint64_t static_value2 = 0xd2a774def27fb48eULL; 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct DataType< ::ublox_msgs::CfgRATE_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "ublox_msgs/CfgRATE"; 00157 } 00158 00159 static const char* value(const ::ublox_msgs::CfgRATE_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 template<class ContainerAllocator> 00163 struct Definition< ::ublox_msgs::CfgRATE_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "# CFG-RATE (0x06 0x08)\n\ 00167 # Navigation/Measurement Rate Settings\n\ 00168 #\n\ 00169 \n\ 00170 uint8 CLASS_ID = 6\n\ 00171 uint8 MESSAGE_ID = 8\n\ 00172 \n\ 00173 uint16 measRate # Measurement Rate, GPS measurements are\n\ 00174 # taken every measRate milliseconds [ms]\n\ 00175 uint16 navRate # Navigation Rate, in number of measurement\n\ 00176 # cycles. On u-blox 5 and u-blox 6, this parameter\n\ 00177 # cannot be changed, and is always equals 1.\n\ 00178 uint16 timeRef # Alignment to reference time: 0 = UTC time, 1 = GPS time\n\ 00179 uint16 TIME_REF_UTC = 0\n\ 00180 uint16 TIME_REF_GPS = 1\n\ 00181 \n\ 00182 "; 00183 } 00184 00185 static const char* value(const ::ublox_msgs::CfgRATE_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgRATE_<ContainerAllocator> > : public TrueType {}; 00189 } // namespace message_traits 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace serialization 00195 { 00196 00197 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgRATE_<ContainerAllocator> > 00198 { 00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00200 { 00201 stream.next(m.measRate); 00202 stream.next(m.navRate); 00203 stream.next(m.timeRef); 00204 } 00205 00206 ROS_DECLARE_ALLINONE_SERIALIZER; 00207 }; // struct CfgRATE_ 00208 } // namespace serialization 00209 } // namespace ros 00210 00211 namespace ros 00212 { 00213 namespace message_operations 00214 { 00215 00216 template<class ContainerAllocator> 00217 struct Printer< ::ublox_msgs::CfgRATE_<ContainerAllocator> > 00218 { 00219 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgRATE_<ContainerAllocator> & v) 00220 { 00221 s << indent << "measRate: "; 00222 Printer<uint16_t>::stream(s, indent + " ", v.measRate); 00223 s << indent << "navRate: "; 00224 Printer<uint16_t>::stream(s, indent + " ", v.navRate); 00225 s << indent << "timeRef: "; 00226 Printer<uint16_t>::stream(s, indent + " ", v.timeRef); 00227 } 00228 }; 00229 00230 00231 } // namespace message_operations 00232 } // namespace ros 00233 00234 #endif // UBLOX_MSGS_MESSAGE_CFGRATE_H 00235