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