; Auto-generated. Do not edit!


(cl:in-package franka_msgs_archemist-msg)


;//! \htmlinclude PandaTask.msg.html

(cl:defclass <PandaTask> (roslisp-msg-protocol:ros-message)
  ((task_seq
    :reader task_seq
    :initarg :task_seq
    :type cl:integer
    :initform 0)
   (task_name
    :reader task_name
    :initarg :task_name
    :type cl:string
    :initform "")
   (task_parameters
    :reader task_parameters
    :initarg :task_parameters
    :type (cl:vector cl:string)
   :initform (cl:make-array 0 :element-type 'cl:string :initial-element "")))
)

(cl:defclass PandaTask (<PandaTask>)
  ())

(cl:defmethod cl:initialize-instance :after ((m <PandaTask>) cl:&rest args)
  (cl:declare (cl:ignorable args))
  (cl:unless (cl:typep m 'PandaTask)
    (roslisp-msg-protocol:msg-deprecation-warning "using old message class name franka_msgs_archemist-msg:<PandaTask> is deprecated: use franka_msgs_archemist-msg:PandaTask instead.")))

(cl:ensure-generic-function 'task_seq-val :lambda-list '(m))
(cl:defmethod task_seq-val ((m <PandaTask>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader franka_msgs_archemist-msg:task_seq-val is deprecated.  Use franka_msgs_archemist-msg:task_seq instead.")
  (task_seq m))

(cl:ensure-generic-function 'task_name-val :lambda-list '(m))
(cl:defmethod task_name-val ((m <PandaTask>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader franka_msgs_archemist-msg:task_name-val is deprecated.  Use franka_msgs_archemist-msg:task_name instead.")
  (task_name m))

(cl:ensure-generic-function 'task_parameters-val :lambda-list '(m))
(cl:defmethod task_parameters-val ((m <PandaTask>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader franka_msgs_archemist-msg:task_parameters-val is deprecated.  Use franka_msgs_archemist-msg:task_parameters instead.")
  (task_parameters m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <PandaTask>) ostream)
  "Serializes a message object of type '<PandaTask>"
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'task_seq)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'task_seq)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'task_seq)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'task_seq)) ostream)
  (cl:let ((__ros_str_len (cl:length (cl:slot-value msg 'task_name))))
    (cl:write-byte (cl:ldb (cl:byte 8 0) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) __ros_str_len) ostream))
  (cl:map cl:nil #'(cl:lambda (c) (cl:write-byte (cl:char-code c) ostream)) (cl:slot-value msg 'task_name))
  (cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'task_parameters))))
    (cl:write-byte (cl:ldb (cl:byte 8 0) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) __ros_arr_len) ostream))
  (cl:map cl:nil #'(cl:lambda (ele) (cl:let ((__ros_str_len (cl:length ele)))
    (cl:write-byte (cl:ldb (cl:byte 8 0) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) __ros_str_len) ostream))
  (cl:map cl:nil #'(cl:lambda (c) (cl:write-byte (cl:char-code c) ostream)) ele))
   (cl:slot-value msg 'task_parameters))
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <PandaTask>) istream)
  "Deserializes a message object of type '<PandaTask>"
    (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'task_seq)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'task_seq)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'task_seq)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'task_seq)) (cl:read-byte istream))
    (cl:let ((__ros_str_len 0))
      (cl:setf (cl:ldb (cl:byte 8 0) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:slot-value msg 'task_name) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:slot-value msg 'task_name) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
  (cl:let ((__ros_arr_len 0))
    (cl:setf (cl:ldb (cl:byte 8 0) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) __ros_arr_len) (cl:read-byte istream))
  (cl:setf (cl:slot-value msg 'task_parameters) (cl:make-array __ros_arr_len))
  (cl:let ((vals (cl:slot-value msg 'task_parameters)))
    (cl:dotimes (i __ros_arr_len)
    (cl:let ((__ros_str_len 0))
      (cl:setf (cl:ldb (cl:byte 8 0) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:aref vals i) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:aref vals i) __ros_str_idx) (cl:code-char (cl:read-byte istream))))))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<PandaTask>)))
  "Returns string type for a message object of type '<PandaTask>"
  "franka_msgs_archemist/PandaTask")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'PandaTask)))
  "Returns string type for a message object of type 'PandaTask"
  "franka_msgs_archemist/PandaTask")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<PandaTask>)))
  "Returns md5sum for a message object of type '<PandaTask>"
  "c88e821308b538b49a4a27e31e229264")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'PandaTask)))
  "Returns md5sum for a message object of type 'PandaTask"
  "c88e821308b538b49a4a27e31e229264")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<PandaTask>)))
  "Returns full string definition for message of type '<PandaTask>"
  (cl:format cl:nil "uint32 task_seq~%string task_name~%string[] task_parameters~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'PandaTask)))
  "Returns full string definition for message of type 'PandaTask"
  (cl:format cl:nil "uint32 task_seq~%string task_name~%string[] task_parameters~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <PandaTask>))
  (cl:+ 0
     4
     4 (cl:length (cl:slot-value msg 'task_name))
     4 (cl:reduce #'cl:+ (cl:slot-value msg 'task_parameters) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 4 (cl:length ele))))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <PandaTask>))
  "Converts a ROS message object to a list"
  (cl:list 'PandaTask
    (cl:cons ':task_seq (task_seq msg))
    (cl:cons ':task_name (task_name msg))
    (cl:cons ':task_parameters (task_parameters msg))
))
