; Auto-generated. Do not edit!


(in-package test_rospy-msg)


;//! \htmlinclude TestFixedArray.msg.html

(defclass <TestFixedArray> (ros-message)
  ((f32_1
    :reader f32_1-val
    :initarg :f32_1
    :type (vector float)
   :initform (make-array 1 :element-type 'float :initial-element 0.0))
   (f32_3
    :reader f32_3-val
    :initarg :f32_3
    :type (vector float)
   :initform (make-array 3 :element-type 'float :initial-element 0.0))
   (f64_1
    :reader f64_1-val
    :initarg :f64_1
    :type (vector float)
   :initform (make-array 1 :element-type 'float :initial-element 0.0))
   (f64_3
    :reader f64_3-val
    :initarg :f64_3
    :type (vector float)
   :initform (make-array 3 :element-type 'float :initial-element 0.0))
   (i8_1
    :reader i8_1-val
    :initarg :i8_1
    :type (vector fixnum)
   :initform (make-array 1 :element-type 'fixnum :initial-element 0))
   (i8_3
    :reader i8_3-val
    :initarg :i8_3
    :type (vector fixnum)
   :initform (make-array 3 :element-type 'fixnum :initial-element 0))
   (u8_1
    :reader u8_1-val
    :initarg :u8_1
    :type (vector fixnum)
   :initform (make-array 1 :element-type 'fixnum :initial-element 0))
   (u8_3
    :reader u8_3-val
    :initarg :u8_3
    :type (vector fixnum)
   :initform (make-array 3 :element-type 'fixnum :initial-element 0))
   (i32_1
    :reader i32_1-val
    :initarg :i32_1
    :type (vector integer)
   :initform (make-array 1 :element-type 'integer :initial-element 0))
   (i32_3
    :reader i32_3-val
    :initarg :i32_3
    :type (vector integer)
   :initform (make-array 3 :element-type 'integer :initial-element 0))
   (u32_1
    :reader u32_1-val
    :initarg :u32_1
    :type (vector integer)
   :initform (make-array 1 :element-type 'integer :initial-element 0))
   (u32_3
    :reader u32_3-val
    :initarg :u32_3
    :type (vector integer)
   :initform (make-array 3 :element-type 'integer :initial-element 0))
   (s_1
    :reader s_1-val
    :initarg :s_1
    :type (vector string)
   :initform (make-array 1 :element-type 'string :initial-element ""))
   (s_3
    :reader s_3-val
    :initarg :s_3
    :type (vector string)
   :initform (make-array 3 :element-type 'string :initial-element ""))
   (b_1
    :reader b_1-val
    :initarg :b_1
    :type (vector boolean)
   :initform (make-array 1 :element-type 'boolean :initial-element nil))
   (b_3
    :reader b_3-val
    :initarg :b_3
    :type (vector boolean)
   :initform (make-array 3 :element-type 'boolean :initial-element nil)))
)
(defmethod serialize ((msg <TestFixedArray>) ostream)
  "Serializes a message object of type '<TestFixedArray>"
    (map nil #'(lambda (ele) (let ((bits (roslisp-utils:encode-single-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)))(slot-value msg 'f32_1))
    (map nil #'(lambda (ele) (let ((bits (roslisp-utils:encode-single-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)))(slot-value msg 'f32_3))
    (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 'f64_1))
    (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 'f64_3))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream))(slot-value msg 'i8_1))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream))(slot-value msg 'i8_3))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream))(slot-value msg 'u8_1))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream))(slot-value msg 'u8_3))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream)
  (write-byte (ldb (byte 8 8) ele) ostream)
  (write-byte (ldb (byte 8 16) ele) ostream)
  (write-byte (ldb (byte 8 24) ele) ostream))(slot-value msg 'i32_1))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream)
  (write-byte (ldb (byte 8 8) ele) ostream)
  (write-byte (ldb (byte 8 16) ele) ostream)
  (write-byte (ldb (byte 8 24) ele) ostream))(slot-value msg 'i32_3))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream)
  (write-byte (ldb (byte 8 8) ele) ostream)
  (write-byte (ldb (byte 8 16) ele) ostream)
  (write-byte (ldb (byte 8 24) ele) ostream))(slot-value msg 'u32_1))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) ele) ostream)
  (write-byte (ldb (byte 8 8) ele) ostream)
  (write-byte (ldb (byte 8 16) ele) ostream)
  (write-byte (ldb (byte 8 24) ele) ostream))(slot-value msg 'u32_3))
    (map nil #'(lambda (ele) (let ((__ros_str_len (length ele)))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) ele))(slot-value msg 's_1))
    (map nil #'(lambda (ele) (let ((__ros_str_len (length ele)))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) ele))(slot-value msg 's_3))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) (if ele 1 0)) ostream))(slot-value msg 'b_1))
    (map nil #'(lambda (ele)   (write-byte (ldb (byte 8 0) (if ele 1 0)) ostream))(slot-value msg 'b_3))
)
(defmethod deserialize ((msg <TestFixedArray>) istream)
  "Deserializes a message object of type '<TestFixedArray>"
  (setf (slot-value msg 'f32_1) (make-array 1))
  (let ((vals (slot-value msg 'f32_1)))
    (dotimes (i 1)
(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 (aref vals i) (roslisp-utils:decode-single-float-bits bits)))))
  (setf (slot-value msg 'f32_3) (make-array 3))
  (let ((vals (slot-value msg 'f32_3)))
    (dotimes (i 3)
(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 (aref vals i) (roslisp-utils:decode-single-float-bits bits)))))
  (setf (slot-value msg 'f64_1) (make-array 1))
  (let ((vals (slot-value msg 'f64_1)))
    (dotimes (i 1)
(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)))))
  (setf (slot-value msg 'f64_3) (make-array 3))
  (let ((vals (slot-value msg 'f64_3)))
    (dotimes (i 3)
(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)))))
  (setf (slot-value msg 'i8_1) (make-array 1))
  (let ((vals (slot-value msg 'i8_1)))
    (dotimes (i 1)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'i8_3) (make-array 3))
  (let ((vals (slot-value msg 'i8_3)))
    (dotimes (i 3)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'u8_1) (make-array 1))
  (let ((vals (slot-value msg 'u8_1)))
    (dotimes (i 1)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'u8_3) (make-array 3))
  (let ((vals (slot-value msg 'u8_3)))
    (dotimes (i 3)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'i32_1) (make-array 1))
  (let ((vals (slot-value msg 'i32_1)))
    (dotimes (i 1)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 8) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 16) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 24) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'i32_3) (make-array 3))
  (let ((vals (slot-value msg 'i32_3)))
    (dotimes (i 3)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 8) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 16) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 24) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'u32_1) (make-array 1))
  (let ((vals (slot-value msg 'u32_1)))
    (dotimes (i 1)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 8) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 16) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 24) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 'u32_3) (make-array 3))
  (let ((vals (slot-value msg 'u32_3)))
    (dotimes (i 3)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 8) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 16) (aref vals i)) (read-byte istream))
  (setf (ldb (byte 8 24) (aref vals i)) (read-byte istream))))
  (setf (slot-value msg 's_1) (make-array 1))
  (let ((vals (slot-value msg 's_1)))
    (dotimes (i 1)
(let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (aref vals i) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (aref vals i) __ros_str_idx) (code-char (read-byte istream)))))))
  (setf (slot-value msg 's_3) (make-array 3))
  (let ((vals (slot-value msg 's_3)))
    (dotimes (i 3)
(let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (aref vals i) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (aref vals i) __ros_str_idx) (code-char (read-byte istream)))))))
  (setf (slot-value msg 'b_1) (make-array 1))
  (let ((vals (slot-value msg 'b_1)))
    (dotimes (i 1)
(setf (aref vals i) (not (zerop (read-byte istream))))))
  (setf (slot-value msg 'b_3) (make-array 3))
  (let ((vals (slot-value msg 'b_3)))
    (dotimes (i 3)
(setf (aref vals i) (not (zerop (read-byte istream))))))
  msg
)
(defmethod ros-datatype ((msg (eql '<TestFixedArray>)))
  "Returns string type for a message object of type '<TestFixedArray>"
  "test_rospy/TestFixedArray")
(defmethod md5sum ((type (eql '<TestFixedArray>)))
  "Returns md5sum for a message object of type '<TestFixedArray>"
  "1557473dc09f1a01a00123a713c822a7")
(defmethod message-definition ((type (eql '<TestFixedArray>)))
  "Returns full string definition for message of type '<TestFixedArray>"
  (format nil "float32[1] f32_1~%float32[3] f32_3~%float64[1] f64_1~%float64[3] f64_3~%int8[1] i8_1~%int8[3] i8_3~%uint8[1] u8_1~%uint8[3] u8_3~%int32[1] i32_1~%int32[3] i32_3~%uint32[1] u32_1~%uint32[3] u32_3~%string[1] s_1~%string[3] s_3~%bool[1] b_1~%bool[3] b_3~%~%"))
(defmethod serialization-length ((msg <TestFixedArray>))
  (+ 0
     0 (reduce #'+ (slot-value msg 'f32_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 'f32_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 'f64_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 8)))
     0 (reduce #'+ (slot-value msg 'f64_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 8)))
     0 (reduce #'+ (slot-value msg 'i8_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
     0 (reduce #'+ (slot-value msg 'i8_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
     0 (reduce #'+ (slot-value msg 'u8_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
     0 (reduce #'+ (slot-value msg 'u8_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
     0 (reduce #'+ (slot-value msg 'i32_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 'i32_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 'u32_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 'u32_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
     0 (reduce #'+ (slot-value msg 's_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
     0 (reduce #'+ (slot-value msg 's_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
     0 (reduce #'+ (slot-value msg 'b_1) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
     0 (reduce #'+ (slot-value msg 'b_3) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
))
(defmethod ros-message-to-list ((msg <TestFixedArray>))
  "Converts a ROS message object to a list"
  (list '<TestFixedArray>
    (cons ':f32_1 (f32_1-val msg))
    (cons ':f32_3 (f32_3-val msg))
    (cons ':f64_1 (f64_1-val msg))
    (cons ':f64_3 (f64_3-val msg))
    (cons ':i8_1 (i8_1-val msg))
    (cons ':i8_3 (i8_3-val msg))
    (cons ':u8_1 (u8_1-val msg))
    (cons ':u8_3 (u8_3-val msg))
    (cons ':i32_1 (i32_1-val msg))
    (cons ':i32_3 (i32_3-val msg))
    (cons ':u32_1 (u32_1-val msg))
    (cons ':u32_3 (u32_3-val msg))
    (cons ':s_1 (s_1-val msg))
    (cons ':s_3 (s_3-val msg))
    (cons ':b_1 (b_1-val msg))
    (cons ':b_3 (b_3-val msg))
))
