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