; Auto-generated. Do not edit!


(in-package nxt_msgs-msg)


;//! \htmlinclude Gyro.msg.html

(defclass <Gyro> (ros-message)
  ((header
    :reader header-val
    :initarg :header
    :type roslib-msg:<Header>
    :initform (make-instance 'roslib-msg:<Header>))
   (calibration_offset
    :reader calibration_offset-val
    :initarg :calibration_offset
    :type geometry_msgs-msg:<Vector3>
    :initform (make-instance 'geometry_msgs-msg:<Vector3>))
   (angular_velocity
    :reader angular_velocity-val
    :initarg :angular_velocity
    :type geometry_msgs-msg:<Vector3>
    :initform (make-instance 'geometry_msgs-msg:<Vector3>))
   (angular_velocity_covariance
    :reader angular_velocity_covariance-val
    :initarg :angular_velocity_covariance
    :type (vector float)
   :initform (make-array 9 :element-type 'float :initial-element 0.0)))
)
(defmethod serialize ((msg <Gyro>) ostream)
  "Serializes a message object of type '<Gyro>"
  (serialize (slot-value msg 'header) ostream)
  (serialize (slot-value msg 'calibration_offset) ostream)
  (serialize (slot-value msg 'angular_velocity) ostream)
    (map nil #'(lambda (ele) (let ((bits (roslisp-utils:encode-double-float-bits ele)))
    (write-byte (ldb (byte 8 0) bits) ostream)
    (write-byte (ldb (byte 8 8) bits) ostream)
    (write-byte (ldb (byte 8 16) bits) ostream)
    (write-byte (ldb (byte 8 24) bits) ostream)
    (write-byte (ldb (byte 8 32) bits) ostream)
    (write-byte (ldb (byte 8 40) bits) ostream)
    (write-byte (ldb (byte 8 48) bits) ostream)
    (write-byte (ldb (byte 8 56) bits) ostream)))(slot-value msg 'angular_velocity_covariance))
)
(defmethod deserialize ((msg <Gyro>) istream)
  "Deserializes a message object of type '<Gyro>"
  (deserialize (slot-value msg 'header) istream)
  (deserialize (slot-value msg 'calibration_offset) istream)
  (deserialize (slot-value msg 'angular_velocity) istream)
  (setf (slot-value msg 'angular_velocity_covariance) (make-array 9))
  (let ((vals (slot-value msg 'angular_velocity_covariance)))
    (dotimes (i 9)
(let ((bits 0))
    (setf (ldb (byte 8 0) bits) (read-byte istream))
    (setf (ldb (byte 8 8) bits) (read-byte istream))
    (setf (ldb (byte 8 16) bits) (read-byte istream))
    (setf (ldb (byte 8 24) bits) (read-byte istream))
    (setf (ldb (byte 8 32) bits) (read-byte istream))
    (setf (ldb (byte 8 40) bits) (read-byte istream))
    (setf (ldb (byte 8 48) bits) (read-byte istream))
    (setf (ldb (byte 8 56) bits) (read-byte istream))
    (setf (aref vals i) (roslisp-utils:decode-double-float-bits bits)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<Gyro>)))
  "Returns string type for a message object of type '<Gyro>"
  "nxt_msgs/Gyro")
(defmethod md5sum ((type (eql '<Gyro>)))
  "Returns md5sum for a message object of type '<Gyro>"
  "e8c3b3c062e5c0998e1d03e28394cf83")
(defmethod message-definition ((type (eql '<Gyro>)))
  "Returns full string definition for message of type '<Gyro>"
  (format nil "Header header~%geometry_msgs/Vector3 calibration_offset~%geometry_msgs/Vector3 angular_velocity~%float64[9] angular_velocity_covariance~%================================================================================~%MSG: roslib/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.secs: seconds (stamp_secs) since epoch~%# * stamp.nsecs: nanoseconds since stamp_secs~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%# 0: no frame~%# 1: global frame~%string frame_id~%~%================================================================================~%MSG: geometry_msgs/Vector3~%# This represents a vector in free space. ~%~%float64 x~%float64 y~%float64 z~%~%"))
(defmethod serialization-length ((msg <Gyro>))
  (+ 0
     (serialization-length (slot-value msg 'header))
     (serialization-length (slot-value msg 'calibration_offset))
     (serialization-length (slot-value msg 'angular_velocity))
     0 (reduce #'+ (slot-value msg 'angular_velocity_covariance) :key #'(lambda (ele) (declare (ignorable ele)) (+ 8)))
))
(defmethod ros-message-to-list ((msg <Gyro>))
  "Converts a ROS message object to a list"
  (list '<Gyro>
    (cons ':header (header-val msg))
    (cons ':calibration_offset (calibration_offset-val msg))
    (cons ':angular_velocity (angular_velocity-val msg))
    (cons ':angular_velocity_covariance (angular_velocity_covariance-val msg))
))
