; Auto-generated. Do not edit!


(in-package topic_tools-srv)


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

(defclass <MuxList-request> (ros-message)
  ()
)
(defmethod serialize ((msg <MuxList-request>) ostream)
  "Serializes a message object of type '<MuxList-request>"
)
(defmethod deserialize ((msg <MuxList-request>) istream)
  "Deserializes a message object of type '<MuxList-request>"
  msg
)
(defmethod ros-datatype ((msg (eql '<MuxList-request>)))
  "Returns string type for a service object of type '<MuxList-request>"
  "topic_tools/MuxListRequest")
(defmethod md5sum ((type (eql '<MuxList-request>)))
  "Returns md5sum for a message object of type '<MuxList-request>"
  "b0eef9a05d4e829092fc2f2c3c2aad3d")
(defmethod message-definition ((type (eql '<MuxList-request>)))
  "Returns full string definition for message of type '<MuxList-request>"
  (format nil "~%"))
(defmethod serialization-length ((msg <MuxList-request>))
  (+ 0
))
(defmethod ros-message-to-list ((msg <MuxList-request>))
  "Converts a ROS message object to a list"
  (list '<MuxList-request>
))
;//! \htmlinclude MuxList-response.msg.html

(defclass <MuxList-response> (ros-message)
  ((topics
    :reader topics-val
    :initarg :topics
    :type (vector string)
   :initform (make-array 0 :element-type 'string :initial-element "")))
)
(defmethod serialize ((msg <MuxList-response>) ostream)
  "Serializes a message object of type '<MuxList-response>"
  (let ((__ros_arr_len (length (slot-value msg 'topics))))
    (write-byte (ldb (byte 8 0) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_arr_len) ostream))
  (map nil #'(lambda (ele) (let ((__ros_str_len (length ele)))
    (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)) ele))
    (slot-value msg 'topics))
)
(defmethod deserialize ((msg <MuxList-response>) istream)
  "Deserializes a message object of type '<MuxList-response>"
  (let ((__ros_arr_len 0))
    (setf (ldb (byte 8 0) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_arr_len) (read-byte istream))
    (setf (slot-value msg 'topics) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'topics)))
      (dotimes (i __ros_arr_len)
(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 (aref vals i) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (aref vals i) __ros_str_idx) (code-char (read-byte istream))))))))
  msg
)
(defmethod ros-datatype ((msg (eql '<MuxList-response>)))
  "Returns string type for a service object of type '<MuxList-response>"
  "topic_tools/MuxListResponse")
(defmethod md5sum ((type (eql '<MuxList-response>)))
  "Returns md5sum for a message object of type '<MuxList-response>"
  "b0eef9a05d4e829092fc2f2c3c2aad3d")
(defmethod message-definition ((type (eql '<MuxList-response>)))
  "Returns full string definition for message of type '<MuxList-response>"
  (format nil "string[] topics~%~%~%"))
(defmethod serialization-length ((msg <MuxList-response>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'topics) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
))
(defmethod ros-message-to-list ((msg <MuxList-response>))
  "Converts a ROS message object to a list"
  (list '<MuxList-response>
    (cons ':topics (topics-val msg))
))
(defmethod service-request-type ((msg (eql 'MuxList)))
  '<MuxList-request>)
(defmethod service-response-type ((msg (eql 'MuxList)))
  '<MuxList-response>)
(defmethod ros-datatype ((msg (eql 'MuxList)))
  "Returns string type for a service object of type '<MuxList>"
  "topic_tools/MuxList")
