; Auto-generated. Do not edit!


(in-package test_roscpp-msg)


;//! \htmlinclude TestStringInt.msg.html

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