00001
00002 #ifndef SMI540_MESSAGE_SMI540MEAS_H
00003 #define SMI540_MESSAGE_SMI540MEAS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace smi540
00016 {
00017 template <class ContainerAllocator>
00018 struct smi540meas_ : public ros::Message
00019 {
00020 typedef smi540meas_<ContainerAllocator> Type;
00021
00022 smi540meas_()
00023 : header()
00024 , fAcclX(0.0)
00025 , fAcclY(0.0)
00026 , fRateZ(0.0)
00027 {
00028 }
00029
00030 smi540meas_(const ContainerAllocator& _alloc)
00031 : header(_alloc)
00032 , fAcclX(0.0)
00033 , fAcclY(0.0)
00034 , fRateZ(0.0)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef double _fAcclX_type;
00042 double fAcclX;
00043
00044 typedef double _fAcclY_type;
00045 double fAcclY;
00046
00047 typedef double _fRateZ_type;
00048 double fRateZ;
00049
00050
00051 private:
00052 static const char* __s_getDataType_() { return "smi540/smi540meas"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00055
00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00057
00058 private:
00059 static const char* __s_getMD5Sum_() { return "414859c89d8deede5f0f1451d239386a"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "Header header\n\
00067 float64 fAcclX\n\
00068 float64 fAcclY\n\
00069 float64 fRateZ\n\
00070 \n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: std_msgs/Header\n\
00074 # Standard metadata for higher-level stamped data types.\n\
00075 # This is generally used to communicate timestamped data \n\
00076 # in a particular coordinate frame.\n\
00077 # \n\
00078 # sequence ID: consecutively increasing ID \n\
00079 uint32 seq\n\
00080 #Two-integer timestamp that is expressed as:\n\
00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00083 # time-handling sugar is provided by the client library\n\
00084 time stamp\n\
00085 #Frame this data is associated with\n\
00086 # 0: no frame\n\
00087 # 1: global frame\n\
00088 string frame_id\n\
00089 \n\
00090 "; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00097 {
00098 ros::serialization::OStream stream(write_ptr, 1000000000);
00099 ros::serialization::serialize(stream, header);
00100 ros::serialization::serialize(stream, fAcclX);
00101 ros::serialization::serialize(stream, fAcclY);
00102 ros::serialization::serialize(stream, fRateZ);
00103 return stream.getData();
00104 }
00105
00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00107 {
00108 ros::serialization::IStream stream(read_ptr, 1000000000);
00109 ros::serialization::deserialize(stream, header);
00110 ros::serialization::deserialize(stream, fAcclX);
00111 ros::serialization::deserialize(stream, fAcclY);
00112 ros::serialization::deserialize(stream, fRateZ);
00113 return stream.getData();
00114 }
00115
00116 ROS_DEPRECATED virtual uint32_t serializationLength() const
00117 {
00118 uint32_t size = 0;
00119 size += ros::serialization::serializationLength(header);
00120 size += ros::serialization::serializationLength(fAcclX);
00121 size += ros::serialization::serializationLength(fAcclY);
00122 size += ros::serialization::serializationLength(fRateZ);
00123 return size;
00124 }
00125
00126 typedef boost::shared_ptr< ::smi540::smi540meas_<ContainerAllocator> > Ptr;
00127 typedef boost::shared_ptr< ::smi540::smi540meas_<ContainerAllocator> const> ConstPtr;
00128 };
00129 typedef ::smi540::smi540meas_<std::allocator<void> > smi540meas;
00130
00131 typedef boost::shared_ptr< ::smi540::smi540meas> smi540measPtr;
00132 typedef boost::shared_ptr< ::smi540::smi540meas const> smi540measConstPtr;
00133
00134
00135 template<typename ContainerAllocator>
00136 std::ostream& operator<<(std::ostream& s, const ::smi540::smi540meas_<ContainerAllocator> & v)
00137 {
00138 ros::message_operations::Printer< ::smi540::smi540meas_<ContainerAllocator> >::stream(s, "", v);
00139 return s;}
00140
00141 }
00142
00143 namespace ros
00144 {
00145 namespace message_traits
00146 {
00147 template<class ContainerAllocator>
00148 struct MD5Sum< ::smi540::smi540meas_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "414859c89d8deede5f0f1451d239386a";
00152 }
00153
00154 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); }
00155 static const uint64_t static_value1 = 0x414859c89d8deedeULL;
00156 static const uint64_t static_value2 = 0x5f0f1451d239386aULL;
00157 };
00158
00159 template<class ContainerAllocator>
00160 struct DataType< ::smi540::smi540meas_<ContainerAllocator> > {
00161 static const char* value()
00162 {
00163 return "smi540/smi540meas";
00164 }
00165
00166 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 template<class ContainerAllocator>
00170 struct Definition< ::smi540::smi540meas_<ContainerAllocator> > {
00171 static const char* value()
00172 {
00173 return "Header header\n\
00174 float64 fAcclX\n\
00175 float64 fAcclY\n\
00176 float64 fRateZ\n\
00177 \n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: std_msgs/Header\n\
00181 # Standard metadata for higher-level stamped data types.\n\
00182 # This is generally used to communicate timestamped data \n\
00183 # in a particular coordinate frame.\n\
00184 # \n\
00185 # sequence ID: consecutively increasing ID \n\
00186 uint32 seq\n\
00187 #Two-integer timestamp that is expressed as:\n\
00188 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00189 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00190 # time-handling sugar is provided by the client library\n\
00191 time stamp\n\
00192 #Frame this data is associated with\n\
00193 # 0: no frame\n\
00194 # 1: global frame\n\
00195 string frame_id\n\
00196 \n\
00197 ";
00198 }
00199
00200 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); }
00201 };
00202
00203 template<class ContainerAllocator> struct HasHeader< ::smi540::smi540meas_<ContainerAllocator> > : public TrueType {};
00204 template<class ContainerAllocator> struct HasHeader< const ::smi540::smi540meas_<ContainerAllocator> > : public TrueType {};
00205 }
00206 }
00207
00208 namespace ros
00209 {
00210 namespace serialization
00211 {
00212
00213 template<class ContainerAllocator> struct Serializer< ::smi540::smi540meas_<ContainerAllocator> >
00214 {
00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00216 {
00217 stream.next(m.header);
00218 stream.next(m.fAcclX);
00219 stream.next(m.fAcclY);
00220 stream.next(m.fRateZ);
00221 }
00222
00223 ROS_DECLARE_ALLINONE_SERIALIZER;
00224 };
00225 }
00226 }
00227
00228 namespace ros
00229 {
00230 namespace message_operations
00231 {
00232
00233 template<class ContainerAllocator>
00234 struct Printer< ::smi540::smi540meas_<ContainerAllocator> >
00235 {
00236 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smi540::smi540meas_<ContainerAllocator> & v)
00237 {
00238 s << indent << "header: ";
00239 s << std::endl;
00240 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00241 s << indent << "fAcclX: ";
00242 Printer<double>::stream(s, indent + " ", v.fAcclX);
00243 s << indent << "fAcclY: ";
00244 Printer<double>::stream(s, indent + " ", v.fAcclY);
00245 s << indent << "fRateZ: ";
00246 Printer<double>::stream(s, indent + " ", v.fRateZ);
00247 }
00248 };
00249
00250
00251 }
00252 }
00253
00254 #endif // SMI540_MESSAGE_SMI540MEAS_H
00255