$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/CfgMSG.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGMSG_H 00003 #define UBLOX_MSGS_MESSAGE_CFGMSG_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 CfgMSG_ { 00022 typedef CfgMSG_<ContainerAllocator> Type; 00023 00024 CfgMSG_() 00025 : msgClass(0) 00026 , msgID(0) 00027 , rate(0) 00028 { 00029 } 00030 00031 CfgMSG_(const ContainerAllocator& _alloc) 00032 : msgClass(0) 00033 , msgID(0) 00034 , rate(0) 00035 { 00036 } 00037 00038 typedef uint8_t _msgClass_type; 00039 uint8_t msgClass; 00040 00041 typedef uint8_t _msgID_type; 00042 uint8_t msgID; 00043 00044 typedef uint8_t _rate_type; 00045 uint8_t rate; 00046 00047 enum { CLASS_ID = 6 }; 00048 enum { MESSAGE_ID = 1 }; 00049 00050 private: 00051 static const char* __s_getDataType_() { return "ublox_msgs/CfgMSG"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "9f2fcd2333c19c76cbfdf6a57fc64a9d"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "# CFG-MSG (0x06 0x01)\n\ 00066 # Message Rate(s)\n\ 00067 #\n\ 00068 \n\ 00069 uint8 CLASS_ID = 6\n\ 00070 uint8 MESSAGE_ID = 1\n\ 00071 \n\ 00072 uint8 msgClass # Message Class\n\ 00073 uint8 msgID # Message Identifier\n\ 00074 uint8 rate # Send rate on current Target\n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, msgClass); 00086 ros::serialization::serialize(stream, msgID); 00087 ros::serialization::serialize(stream, rate); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, msgClass); 00095 ros::serialization::deserialize(stream, msgID); 00096 ros::serialization::deserialize(stream, rate); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint32_t serializationLength() const 00101 { 00102 uint32_t size = 0; 00103 size += ros::serialization::serializationLength(msgClass); 00104 size += ros::serialization::serializationLength(msgID); 00105 size += ros::serialization::serializationLength(rate); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::ublox_msgs::CfgMSG_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::ublox_msgs::CfgMSG_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct CfgMSG 00113 typedef ::ublox_msgs::CfgMSG_<std::allocator<void> > CfgMSG; 00114 00115 typedef boost::shared_ptr< ::ublox_msgs::CfgMSG> CfgMSGPtr; 00116 typedef boost::shared_ptr< ::ublox_msgs::CfgMSG const> CfgMSGConstPtr; 00117 00118 00119 template<typename ContainerAllocator> 00120 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgMSG_<ContainerAllocator> & v) 00121 { 00122 ros::message_operations::Printer< ::ublox_msgs::CfgMSG_<ContainerAllocator> >::stream(s, "", v); 00123 return s;} 00124 00125 } // namespace ublox_msgs 00126 00127 namespace ros 00128 { 00129 namespace message_traits 00130 { 00131 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgMSG_<ContainerAllocator> > : public TrueType {}; 00132 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgMSG_<ContainerAllocator> const> : public TrueType {}; 00133 template<class ContainerAllocator> 00134 struct MD5Sum< ::ublox_msgs::CfgMSG_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "9f2fcd2333c19c76cbfdf6a57fc64a9d"; 00138 } 00139 00140 static const char* value(const ::ublox_msgs::CfgMSG_<ContainerAllocator> &) { return value(); } 00141 static const uint64_t static_value1 = 0x9f2fcd2333c19c76ULL; 00142 static const uint64_t static_value2 = 0xcbfdf6a57fc64a9dULL; 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct DataType< ::ublox_msgs::CfgMSG_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "ublox_msgs/CfgMSG"; 00150 } 00151 00152 static const char* value(const ::ublox_msgs::CfgMSG_<ContainerAllocator> &) { return value(); } 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct Definition< ::ublox_msgs::CfgMSG_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "# CFG-MSG (0x06 0x01)\n\ 00160 # Message Rate(s)\n\ 00161 #\n\ 00162 \n\ 00163 uint8 CLASS_ID = 6\n\ 00164 uint8 MESSAGE_ID = 1\n\ 00165 \n\ 00166 uint8 msgClass # Message Class\n\ 00167 uint8 msgID # Message Identifier\n\ 00168 uint8 rate # Send rate on current Target\n\ 00169 \n\ 00170 "; 00171 } 00172 00173 static const char* value(const ::ublox_msgs::CfgMSG_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgMSG_<ContainerAllocator> > : public TrueType {}; 00177 } // namespace message_traits 00178 } // namespace ros 00179 00180 namespace ros 00181 { 00182 namespace serialization 00183 { 00184 00185 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgMSG_<ContainerAllocator> > 00186 { 00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00188 { 00189 stream.next(m.msgClass); 00190 stream.next(m.msgID); 00191 stream.next(m.rate); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct CfgMSG_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::ublox_msgs::CfgMSG_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgMSG_<ContainerAllocator> & v) 00208 { 00209 s << indent << "msgClass: "; 00210 Printer<uint8_t>::stream(s, indent + " ", v.msgClass); 00211 s << indent << "msgID: "; 00212 Printer<uint8_t>::stream(s, indent + " ", v.msgID); 00213 s << indent << "rate: "; 00214 Printer<uint8_t>::stream(s, indent + " ", v.rate); 00215 } 00216 }; 00217 00218 00219 } // namespace message_operations 00220 } // namespace ros 00221 00222 #endif // UBLOX_MSGS_MESSAGE_CFGMSG_H 00223