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