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