; Auto-generated. Do not edit!


(cl:in-package kmriiwa_chemist_msgs-msg)


;//! \htmlinclude LBRCommand.msg.html

(cl:defclass <LBRCommand> (roslisp-msg-protocol:ros-message)
  ((cmd_seq
    :reader cmd_seq
    :initarg :cmd_seq
    :type cl:integer
    :initform 0)
   (priority_task
    :reader priority_task
    :initarg :priority_task
    :type cl:boolean
    :initform cl:nil)
   (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 LBRCommand (<LBRCommand>)
  ())

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

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

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

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

(cl:ensure-generic-function 'task_parameters-val :lambda-list '(m))
(cl:defmethod task_parameters-val ((m <LBRCommand>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader kmriiwa_chemist_msgs-msg:task_parameters-val is deprecated.  Use kmriiwa_chemist_msgs-msg:task_parameters instead.")
  (task_parameters m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <LBRCommand>) ostream)
  "Serializes a message object of type '<LBRCommand>"
  (cl:let* ((signed (cl:slot-value msg 'cmd_seq)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 4294967296) signed)))
    (cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) unsigned) ostream)
    )
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'priority_task) 1 0)) 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 <LBRCommand>) istream)
  "Deserializes a message object of type '<LBRCommand>"
    (cl:let ((unsigned 0))
      (cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) unsigned) (cl:read-byte istream))
      (cl:setf (cl:slot-value msg 'cmd_seq) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (cl:setf (cl:slot-value msg 'priority_task) (cl:not (cl:zerop (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 '<LBRCommand>)))
  "Returns string type for a message object of type '<LBRCommand>"
  "kmriiwa_chemist_msgs/LBRCommand")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'LBRCommand)))
  "Returns string type for a message object of type 'LBRCommand"
  "kmriiwa_chemist_msgs/LBRCommand")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<LBRCommand>)))
  "Returns md5sum for a message object of type '<LBRCommand>"
  "c6cb5376d0b94a137e5519a205403138")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'LBRCommand)))
  "Returns md5sum for a message object of type 'LBRCommand"
  "c6cb5376d0b94a137e5519a205403138")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<LBRCommand>)))
  "Returns full string definition for message of type '<LBRCommand>"
  (cl:format cl:nil "int32 cmd_seq~%bool priority_task~%string task_name~%string[] task_parameters~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'LBRCommand)))
  "Returns full string definition for message of type 'LBRCommand"
  (cl:format cl:nil "int32 cmd_seq~%bool priority_task~%string task_name~%string[] task_parameters~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <LBRCommand>))
  (cl:+ 0
     4
     1
     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 <LBRCommand>))
  "Converts a ROS message object to a list"
  (cl:list 'LBRCommand
    (cl:cons ':cmd_seq (cmd_seq msg))
    (cl:cons ':priority_task (priority_task msg))
    (cl:cons ':task_name (task_name msg))
    (cl:cons ':task_parameters (task_parameters msg))
))
