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