; Auto-generated. Do not edit!


(in-package topic_tools-srv)


;//! \htmlinclude MuxSelect-request.msg.html

(defclass <MuxSelect-request> (ros-message)
  ((topic
    :reader topic-val
    :initarg :topic
    :type string
    :initform ""))
)
(defmethod serialize ((msg <MuxSelect-request>) ostream)
  "Serializes a message object of type '<MuxSelect-request>"
  (let ((__ros_str_len (length (slot-value msg 'topic))))
    (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 'topic))
)
(defmethod deserialize ((msg <MuxSelect-request>) istream)
  "Deserializes a message object of type '<MuxSelect-request>"
  (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 'topic) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'topic) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<MuxSelect-request>)))
  "Returns string type for a service object of type '<MuxSelect-request>"
  "topic_tools/MuxSelectRequest")
(defmethod md5sum ((type (eql '<MuxSelect-request>)))
  "Returns md5sum for a message object of type '<MuxSelect-request>"
  "053052240ca985e1f2eedbb0dae9b1f7")
(defmethod message-definition ((type (eql '<MuxSelect-request>)))
  "Returns full string definition for message of type '<MuxSelect-request>"
  (format nil "string topic~%~%"))
(defmethod serialization-length ((msg <MuxSelect-request>))
  (+ 0
     4 (length (slot-value msg 'topic))
))
(defmethod ros-message-to-list ((msg <MuxSelect-request>))
  "Converts a ROS message object to a list"
  (list '<MuxSelect-request>
    (cons ':topic (topic-val msg))
))
;//! \htmlinclude MuxSelect-response.msg.html

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