; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude FixedLength.msg.html

(defclass <FixedLength> (ros-message)
  ((a
    :reader a-val
    :initarg :a
    :type integer
    :initform 0)
   (b
    :reader b-val
    :initarg :b
    :type float
    :initform 0.0))
)
(defmethod serialize ((msg <FixedLength>) ostream)
  "Serializes a message object of type '<FixedLength>"
    (write-byte (ldb (byte 8 0) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'a)) ostream)
  (let ((bits (roslisp-utils:encode-single-float-bits (slot-value msg 'b))))
    (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))
)
(defmethod deserialize ((msg <FixedLength>) istream)
  "Deserializes a message object of type '<FixedLength>"
  (setf (ldb (byte 8 0) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'a)) (read-byte istream))
  (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 (slot-value msg 'b) (roslisp-utils:decode-single-float-bits bits)))
  msg
)
(defmethod ros-datatype ((msg (eql '<FixedLength>)))
  "Returns string type for a message object of type '<FixedLength>"
  "test_roscpp_serialization/FixedLength")
(defmethod md5sum ((type (eql '<FixedLength>)))
  "Returns md5sum for a message object of type '<FixedLength>"
  "74143e1090cf694294f589605908b555")
(defmethod message-definition ((type (eql '<FixedLength>)))
  "Returns full string definition for message of type '<FixedLength>"
  (format nil "uint32 a~%float32 b~%~%~%"))
(defmethod serialization-length ((msg <FixedLength>))
  (+ 0
     4
     4
))
(defmethod ros-message-to-list ((msg <FixedLength>))
  "Converts a ROS message object to a list"
  (list '<FixedLength>
    (cons ':a (a-val msg))
    (cons ':b (b-val msg))
))
