; Auto-generated. Do not edit!


(in-package test_rospy-msg)


;//! \htmlinclude Val.msg.html

(defclass <Val> (ros-message)
  ((val
    :reader val-val
    :initarg :val
    :type string
    :initform ""))
)
(defmethod serialize ((msg <Val>) ostream)
  "Serializes a message object of type '<Val>"
  (let ((__ros_str_len (length (slot-value msg 'val))))
    (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 'val))
)
(defmethod deserialize ((msg <Val>) istream)
  "Deserializes a message object of type '<Val>"
  (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 'val) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'val) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<Val>)))
  "Returns string type for a message object of type '<Val>"
  "test_rospy/Val")
(defmethod md5sum ((type (eql '<Val>)))
  "Returns md5sum for a message object of type '<Val>"
  "c45577ce53559408f0f69fe465be7c70")
(defmethod message-definition ((type (eql '<Val>)))
  "Returns full string definition for message of type '<Val>"
  (format nil "string val~%~%"))
(defmethod serialization-length ((msg <Val>))
  (+ 0
     4 (length (slot-value msg 'val))
))
(defmethod ros-message-to-list ((msg <Val>))
  "Converts a ROS message object to a list"
  (list '<Val>
    (cons ':val (val-val msg))
))
