; Auto-generated. Do not edit!


(in-package std_msgs-msg)


;//! \htmlinclude MultiArrayDimension.msg.html

(defclass <MultiArrayDimension> (ros-message)
  ((label
    :reader label-val
    :initarg :label
    :type string
    :initform "")
   (size
    :reader size-val
    :initarg :size
    :type integer
    :initform 0)
   (stride
    :reader stride-val
    :initarg :stride
    :type integer
    :initform 0))
)
(defmethod serialize ((msg <MultiArrayDimension>) ostream)
  "Serializes a message object of type '<MultiArrayDimension>"
  (let ((__ros_str_len (length (slot-value msg 'label))))
    (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)) (slot-value msg 'label))
    (write-byte (ldb (byte 8 0) (slot-value msg 'size)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'size)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'size)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'size)) ostream)
    (write-byte (ldb (byte 8 0) (slot-value msg 'stride)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'stride)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'stride)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'stride)) ostream)
)
(defmethod deserialize ((msg <MultiArrayDimension>) istream)
  "Deserializes a message object of type '<MultiArrayDimension>"
  (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 (slot-value msg 'label) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'label) __ros_str_idx) (code-char (read-byte istream)))))
  (setf (ldb (byte 8 0) (slot-value msg 'size)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'size)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'size)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'size)) (read-byte istream))
  (setf (ldb (byte 8 0) (slot-value msg 'stride)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'stride)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'stride)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'stride)) (read-byte istream))
  msg
)
(defmethod ros-datatype ((msg (eql '<MultiArrayDimension>)))
  "Returns string type for a message object of type '<MultiArrayDimension>"
  "std_msgs/MultiArrayDimension")
(defmethod md5sum ((type (eql '<MultiArrayDimension>)))
  "Returns md5sum for a message object of type '<MultiArrayDimension>"
  "4cd0c83a8683deae40ecdac60e53bfa8")
(defmethod message-definition ((type (eql '<MultiArrayDimension>)))
  "Returns full string definition for message of type '<MultiArrayDimension>"
  (format nil "string label   # label of given dimension~%uint32 size    # size of given dimension (in type units)~%uint32 stride  # stride of given dimension~%~%"))
(defmethod serialization-length ((msg <MultiArrayDimension>))
  (+ 0
     4 (length (slot-value msg 'label))
     4
     4
))
(defmethod ros-message-to-list ((msg <MultiArrayDimension>))
  "Converts a ROS message object to a list"
  (list '<MultiArrayDimension>
    (cons ':label (label-val msg))
    (cons ':size (size-val msg))
    (cons ':stride (stride-val msg))
))
