;; Auto-generated. Do not edit!


(when (boundp 'kmriiwa_chemist_msgs::LBRCommand)
  (if (not (find-package "KMRIIWA_CHEMIST_MSGS"))
    (make-package "KMRIIWA_CHEMIST_MSGS"))
  (shadow 'LBRCommand (find-package "KMRIIWA_CHEMIST_MSGS")))
(unless (find-package "KMRIIWA_CHEMIST_MSGS::LBRCOMMAND")
  (make-package "KMRIIWA_CHEMIST_MSGS::LBRCOMMAND"))

(in-package "ROS")
;;//! \htmlinclude LBRCommand.msg.html


(defclass kmriiwa_chemist_msgs::LBRCommand
  :super ros::object
  :slots (_cmd_seq _priority_task _task_name _task_parameters ))

(defmethod kmriiwa_chemist_msgs::LBRCommand
  (:init
   (&key
    ((:cmd_seq __cmd_seq) 0)
    ((:priority_task __priority_task) nil)
    ((:task_name __task_name) "")
    ((:task_parameters __task_parameters) (let (r) (dotimes (i 0) (push "" r)) r))
    )
   (send-super :init)
   (setq _cmd_seq (round __cmd_seq))
   (setq _priority_task __priority_task)
   (setq _task_name (string __task_name))
   (setq _task_parameters __task_parameters)
   self)
  (:cmd_seq
   (&optional __cmd_seq)
   (if __cmd_seq (setq _cmd_seq __cmd_seq)) _cmd_seq)
  (:priority_task
   (&optional (__priority_task :null))
   (if (not (eq __priority_task :null)) (setq _priority_task __priority_task)) _priority_task)
  (:task_name
   (&optional __task_name)
   (if __task_name (setq _task_name __task_name)) _task_name)
  (:task_parameters
   (&optional __task_parameters)
   (if __task_parameters (setq _task_parameters __task_parameters)) _task_parameters)
  (:serialization-length
   ()
   (+
    ;; int32 _cmd_seq
    4
    ;; bool _priority_task
    1
    ;; string _task_name
    4 (length _task_name)
    ;; string[] _task_parameters
    (apply #'+ (mapcar #'(lambda (x) (+ 4 (length x))) _task_parameters)) 4
    ))
  (:serialize
   (&optional strm)
   (let ((s (if strm strm
              (make-string-output-stream (send self :serialization-length)))))
     ;; int32 _cmd_seq
       (write-long _cmd_seq s)
     ;; bool _priority_task
       (if _priority_task (write-byte -1 s) (write-byte 0 s))
     ;; string _task_name
       (write-long (length _task_name) s) (princ _task_name s)
     ;; string[] _task_parameters
     (write-long (length _task_parameters) s)
     (dolist (elem _task_parameters)
       (write-long (length elem) s) (princ elem s)
       )
     ;;
     (if (null strm) (get-output-stream-string s))))
  (:deserialize
   (buf &optional (ptr- 0))
   ;; int32 _cmd_seq
     (setq _cmd_seq (sys::peek buf ptr- :integer)) (incf ptr- 4)
   ;; bool _priority_task
     (setq _priority_task (not (= 0 (sys::peek buf ptr- :char)))) (incf ptr- 1)
   ;; string _task_name
     (let (n) (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4) (setq _task_name (subseq buf ptr- (+ ptr- n))) (incf ptr- n))
   ;; string[] _task_parameters
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _task_parameters (make-list n))
     (dotimes (i n)
     (let (n) (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4) (setf (elt _task_parameters i) (subseq buf ptr- (+ ptr- n))) (incf ptr- n))
     ))
   ;;
   self)
  )

(setf (get kmriiwa_chemist_msgs::LBRCommand :md5sum-) "c6cb5376d0b94a137e5519a205403138")
(setf (get kmriiwa_chemist_msgs::LBRCommand :datatype-) "kmriiwa_chemist_msgs/LBRCommand")
(setf (get kmriiwa_chemist_msgs::LBRCommand :definition-)
      "int32 cmd_seq
bool priority_task
string task_name
string[] task_parameters

")



(provide :kmriiwa_chemist_msgs/LBRCommand "c6cb5376d0b94a137e5519a205403138")


