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