; Auto-generated. Do not edit!


(in-package nodelet-srv)


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

(defclass <NodeletLoad-request> (ros-message)
  ((name
    :reader name-val
    :initarg :name
    :type string
    :initform "")
   (type
    :reader type-val
    :initarg :type
    :type string
    :initform "")
   (remap_source_args
    :reader remap_source_args-val
    :initarg :remap_source_args
    :type (vector string)
   :initform (make-array 0 :element-type 'string :initial-element ""))
   (remap_target_args
    :reader remap_target_args-val
    :initarg :remap_target_args
    :type (vector string)
   :initform (make-array 0 :element-type 'string :initial-element ""))
   (my_argv
    :reader my_argv-val
    :initarg :my_argv
    :type (vector string)
   :initform (make-array 0 :element-type 'string :initial-element "")))
)
(defmethod serialize ((msg <NodeletLoad-request>) ostream)
  "Serializes a message object of type '<NodeletLoad-request>"
  (let ((__ros_str_len (length (slot-value msg 'name))))
    (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 'name))
  (let ((__ros_str_len (length (slot-value msg 'type))))
    (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 'type))
  (let ((__ros_arr_len (length (slot-value msg 'remap_source_args))))
    (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 'remap_source_args))
  (let ((__ros_arr_len (length (slot-value msg 'remap_target_args))))
    (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 'remap_target_args))
  (let ((__ros_arr_len (length (slot-value msg 'my_argv))))
    (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 'my_argv))
)
(defmethod deserialize ((msg <NodeletLoad-request>) istream)
  "Deserializes a message object of type '<NodeletLoad-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 'name) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'name) __ros_str_idx) (code-char (read-byte istream)))))
  (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 'type) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'type) __ros_str_idx) (code-char (read-byte istream)))))
  (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 'remap_source_args) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'remap_source_args)))
      (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))))))))
  (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 'remap_target_args) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'remap_target_args)))
      (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))))))))
  (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 'my_argv) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'my_argv)))
      (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 '<NodeletLoad-request>)))
  "Returns string type for a service object of type '<NodeletLoad-request>"
  "nodelet/NodeletLoadRequest")
(defmethod md5sum ((type (eql '<NodeletLoad-request>)))
  "Returns md5sum for a message object of type '<NodeletLoad-request>"
  "640816e8197cc04933674927c1ddcc6c")
(defmethod message-definition ((type (eql '<NodeletLoad-request>)))
  "Returns full string definition for message of type '<NodeletLoad-request>"
  (format nil "string name~%string type~%string[] remap_source_args~%string[] remap_target_args~%string[] my_argv~%~%"))
(defmethod serialization-length ((msg <NodeletLoad-request>))
  (+ 0
     4 (length (slot-value msg 'name))
     4 (length (slot-value msg 'type))
     4 (reduce #'+ (slot-value msg 'remap_source_args) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
     4 (reduce #'+ (slot-value msg 'remap_target_args) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
     4 (reduce #'+ (slot-value msg 'my_argv) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4 (length ele))))
))
(defmethod ros-message-to-list ((msg <NodeletLoad-request>))
  "Converts a ROS message object to a list"
  (list '<NodeletLoad-request>
    (cons ':name (name-val msg))
    (cons ':type (type-val msg))
    (cons ':remap_source_args (remap_source_args-val msg))
    (cons ':remap_target_args (remap_target_args-val msg))
    (cons ':my_argv (my_argv-val msg))
))
;//! \htmlinclude NodeletLoad-response.msg.html

(defclass <NodeletLoad-response> (ros-message)
  ((success
    :reader success-val
    :initarg :success
    :type boolean
    :initform nil))
)
(defmethod serialize ((msg <NodeletLoad-response>) ostream)
  "Serializes a message object of type '<NodeletLoad-response>"
    (write-byte (ldb (byte 8 0) (if (slot-value msg 'success) 1 0)) ostream)
)
(defmethod deserialize ((msg <NodeletLoad-response>) istream)
  "Deserializes a message object of type '<NodeletLoad-response>"
  (setf (slot-value msg 'success) (not (zerop (read-byte istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<NodeletLoad-response>)))
  "Returns string type for a service object of type '<NodeletLoad-response>"
  "nodelet/NodeletLoadResponse")
(defmethod md5sum ((type (eql '<NodeletLoad-response>)))
  "Returns md5sum for a message object of type '<NodeletLoad-response>"
  "640816e8197cc04933674927c1ddcc6c")
(defmethod message-definition ((type (eql '<NodeletLoad-response>)))
  "Returns full string definition for message of type '<NodeletLoad-response>"
  (format nil "bool success~%~%~%"))
(defmethod serialization-length ((msg <NodeletLoad-response>))
  (+ 0
     1
))
(defmethod ros-message-to-list ((msg <NodeletLoad-response>))
  "Converts a ROS message object to a list"
  (list '<NodeletLoad-response>
    (cons ':success (success-val msg))
))
(defmethod service-request-type ((msg (eql 'NodeletLoad)))
  '<NodeletLoad-request>)
(defmethod service-response-type ((msg (eql 'NodeletLoad)))
  '<NodeletLoad-response>)
(defmethod ros-datatype ((msg (eql 'NodeletLoad)))
  "Returns string type for a service object of type '<NodeletLoad>"
  "nodelet/NodeletLoad")
