$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/smi540/msg/smi540meas.msg */ 00002 #ifndef SMI540_MESSAGE_SMI540MEAS_H 00003 #define SMI540_MESSAGE_SMI540MEAS_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 smi540 00020 { 00021 template <class ContainerAllocator> 00022 struct smi540meas_ { 00023 typedef smi540meas_<ContainerAllocator> Type; 00024 00025 smi540meas_() 00026 : header() 00027 , strIdSubDev() 00028 , iChipSelect() 00029 , fAcclX() 00030 , fAcclY() 00031 , fRateZ() 00032 { 00033 } 00034 00035 smi540meas_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , strIdSubDev(_alloc) 00038 , iChipSelect(_alloc) 00039 , fAcclX(_alloc) 00040 , fAcclY(_alloc) 00041 , fRateZ(_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 > _fAcclX_type; 00055 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fAcclX; 00056 00057 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fAcclY_type; 00058 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fAcclY; 00059 00060 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fRateZ_type; 00061 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fRateZ; 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_fAcclX_size() const { return (uint32_t)fAcclX.size(); } 00069 ROS_DEPRECATED void set_fAcclX_size(uint32_t size) { fAcclX.resize((size_t)size); } 00070 ROS_DEPRECATED void get_fAcclX_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fAcclX; } 00071 ROS_DEPRECATED void set_fAcclX_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fAcclX = vec; } 00072 ROS_DEPRECATED uint32_t get_fAcclY_size() const { return (uint32_t)fAcclY.size(); } 00073 ROS_DEPRECATED void set_fAcclY_size(uint32_t size) { fAcclY.resize((size_t)size); } 00074 ROS_DEPRECATED void get_fAcclY_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fAcclY; } 00075 ROS_DEPRECATED void set_fAcclY_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fAcclY = vec; } 00076 ROS_DEPRECATED uint32_t get_fRateZ_size() const { return (uint32_t)fRateZ.size(); } 00077 ROS_DEPRECATED void set_fRateZ_size(uint32_t size) { fRateZ.resize((size_t)size); } 00078 ROS_DEPRECATED void get_fRateZ_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fRateZ; } 00079 ROS_DEPRECATED void set_fRateZ_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fRateZ = vec; } 00080 private: 00081 static const char* __s_getDataType_() { return "smi540/smi540meas"; } 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 "0dbe54f84ea8052406fa280d1c1f5801"; } 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[] fAcclX\n\ 00099 float64[] fAcclY\n\ 00100 float64[] fRateZ\n\ 00101 \n\ 00102 \n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: std_msgs/Header\n\ 00106 # Standard metadata for higher-level stamped data types.\n\ 00107 # This is generally used to communicate timestamped data \n\ 00108 # in a particular coordinate frame.\n\ 00109 # \n\ 00110 # sequence ID: consecutively increasing ID \n\ 00111 uint32 seq\n\ 00112 #Two-integer timestamp that is expressed as:\n\ 00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00115 # time-handling sugar is provided by the client library\n\ 00116 time stamp\n\ 00117 #Frame this data is associated with\n\ 00118 # 0: no frame\n\ 00119 # 1: global frame\n\ 00120 string frame_id\n\ 00121 \n\ 00122 "; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00125 00126 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00129 { 00130 ros::serialization::OStream stream(write_ptr, 1000000000); 00131 ros::serialization::serialize(stream, header); 00132 ros::serialization::serialize(stream, strIdSubDev); 00133 ros::serialization::serialize(stream, iChipSelect); 00134 ros::serialization::serialize(stream, fAcclX); 00135 ros::serialization::serialize(stream, fAcclY); 00136 ros::serialization::serialize(stream, fRateZ); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00141 { 00142 ros::serialization::IStream stream(read_ptr, 1000000000); 00143 ros::serialization::deserialize(stream, header); 00144 ros::serialization::deserialize(stream, strIdSubDev); 00145 ros::serialization::deserialize(stream, iChipSelect); 00146 ros::serialization::deserialize(stream, fAcclX); 00147 ros::serialization::deserialize(stream, fAcclY); 00148 ros::serialization::deserialize(stream, fRateZ); 00149 return stream.getData(); 00150 } 00151 00152 ROS_DEPRECATED virtual uint32_t serializationLength() const 00153 { 00154 uint32_t size = 0; 00155 size += ros::serialization::serializationLength(header); 00156 size += ros::serialization::serializationLength(strIdSubDev); 00157 size += ros::serialization::serializationLength(iChipSelect); 00158 size += ros::serialization::serializationLength(fAcclX); 00159 size += ros::serialization::serializationLength(fAcclY); 00160 size += ros::serialization::serializationLength(fRateZ); 00161 return size; 00162 } 00163 00164 typedef boost::shared_ptr< ::smi540::smi540meas_<ContainerAllocator> > Ptr; 00165 typedef boost::shared_ptr< ::smi540::smi540meas_<ContainerAllocator> const> ConstPtr; 00166 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00167 }; // struct smi540meas 00168 typedef ::smi540::smi540meas_<std::allocator<void> > smi540meas; 00169 00170 typedef boost::shared_ptr< ::smi540::smi540meas> smi540measPtr; 00171 typedef boost::shared_ptr< ::smi540::smi540meas const> smi540measConstPtr; 00172 00173 00174 template<typename ContainerAllocator> 00175 std::ostream& operator<<(std::ostream& s, const ::smi540::smi540meas_<ContainerAllocator> & v) 00176 { 00177 ros::message_operations::Printer< ::smi540::smi540meas_<ContainerAllocator> >::stream(s, "", v); 00178 return s;} 00179 00180 } // namespace smi540 00181 00182 namespace ros 00183 { 00184 namespace message_traits 00185 { 00186 template<class ContainerAllocator> struct IsMessage< ::smi540::smi540meas_<ContainerAllocator> > : public TrueType {}; 00187 template<class ContainerAllocator> struct IsMessage< ::smi540::smi540meas_<ContainerAllocator> const> : public TrueType {}; 00188 template<class ContainerAllocator> 00189 struct MD5Sum< ::smi540::smi540meas_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "0dbe54f84ea8052406fa280d1c1f5801"; 00193 } 00194 00195 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); } 00196 static const uint64_t static_value1 = 0x0dbe54f84ea80524ULL; 00197 static const uint64_t static_value2 = 0x06fa280d1c1f5801ULL; 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct DataType< ::smi540::smi540meas_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "smi540/smi540meas"; 00205 } 00206 00207 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> 00211 struct Definition< ::smi540::smi540meas_<ContainerAllocator> > { 00212 static const char* value() 00213 { 00214 return "Header header\n\ 00215 string strIdSubDev\n\ 00216 int16[] iChipSelect\n\ 00217 float64[] fAcclX\n\ 00218 float64[] fAcclY\n\ 00219 float64[] fRateZ\n\ 00220 \n\ 00221 \n\ 00222 \n\ 00223 ================================================================================\n\ 00224 MSG: std_msgs/Header\n\ 00225 # Standard metadata for higher-level stamped data types.\n\ 00226 # This is generally used to communicate timestamped data \n\ 00227 # in a particular coordinate frame.\n\ 00228 # \n\ 00229 # sequence ID: consecutively increasing ID \n\ 00230 uint32 seq\n\ 00231 #Two-integer timestamp that is expressed as:\n\ 00232 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00233 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00234 # time-handling sugar is provided by the client library\n\ 00235 time stamp\n\ 00236 #Frame this data is associated with\n\ 00237 # 0: no frame\n\ 00238 # 1: global frame\n\ 00239 string frame_id\n\ 00240 \n\ 00241 "; 00242 } 00243 00244 static const char* value(const ::smi540::smi540meas_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 template<class ContainerAllocator> struct HasHeader< ::smi540::smi540meas_<ContainerAllocator> > : public TrueType {}; 00248 template<class ContainerAllocator> struct HasHeader< const ::smi540::smi540meas_<ContainerAllocator> > : public TrueType {}; 00249 } // namespace message_traits 00250 } // namespace ros 00251 00252 namespace ros 00253 { 00254 namespace serialization 00255 { 00256 00257 template<class ContainerAllocator> struct Serializer< ::smi540::smi540meas_<ContainerAllocator> > 00258 { 00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00260 { 00261 stream.next(m.header); 00262 stream.next(m.strIdSubDev); 00263 stream.next(m.iChipSelect); 00264 stream.next(m.fAcclX); 00265 stream.next(m.fAcclY); 00266 stream.next(m.fRateZ); 00267 } 00268 00269 ROS_DECLARE_ALLINONE_SERIALIZER; 00270 }; // struct smi540meas_ 00271 } // namespace serialization 00272 } // namespace ros 00273 00274 namespace ros 00275 { 00276 namespace message_operations 00277 { 00278 00279 template<class ContainerAllocator> 00280 struct Printer< ::smi540::smi540meas_<ContainerAllocator> > 00281 { 00282 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::smi540::smi540meas_<ContainerAllocator> & v) 00283 { 00284 s << indent << "header: "; 00285 s << std::endl; 00286 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00287 s << indent << "strIdSubDev: "; 00288 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.strIdSubDev); 00289 s << indent << "iChipSelect[]" << std::endl; 00290 for (size_t i = 0; i < v.iChipSelect.size(); ++i) 00291 { 00292 s << indent << " iChipSelect[" << i << "]: "; 00293 Printer<int16_t>::stream(s, indent + " ", v.iChipSelect[i]); 00294 } 00295 s << indent << "fAcclX[]" << std::endl; 00296 for (size_t i = 0; i < v.fAcclX.size(); ++i) 00297 { 00298 s << indent << " fAcclX[" << i << "]: "; 00299 Printer<double>::stream(s, indent + " ", v.fAcclX[i]); 00300 } 00301 s << indent << "fAcclY[]" << std::endl; 00302 for (size_t i = 0; i < v.fAcclY.size(); ++i) 00303 { 00304 s << indent << " fAcclY[" << i << "]: "; 00305 Printer<double>::stream(s, indent + " ", v.fAcclY[i]); 00306 } 00307 s << indent << "fRateZ[]" << std::endl; 00308 for (size_t i = 0; i < v.fRateZ.size(); ++i) 00309 { 00310 s << indent << " fRateZ[" << i << "]: "; 00311 Printer<double>::stream(s, indent + " ", v.fRateZ[i]); 00312 } 00313 } 00314 }; 00315 00316 00317 } // namespace message_operations 00318 } // namespace ros 00319 00320 #endif // SMI540_MESSAGE_SMI540MEAS_H 00321