; Auto-generated. Do not edit!


(cl:in-package mettler_toledo_quantos_q2_msgs-msg)


;//! \htmlinclude QuantosCommand.msg.html

(cl:defclass <QuantosCommand> (roslisp-msg-protocol:ros-message)
  ((quantos_command
    :reader quantos_command
    :initarg :quantos_command
    :type cl:integer
    :initform 0)
   (quantos_ID
    :reader quantos_ID
    :initarg :quantos_ID
    :type cl:string
    :initform "")
   (quantos_bool
    :reader quantos_bool
    :initarg :quantos_bool
    :type cl:boolean
    :initform cl:nil)
   (quantos_float
    :reader quantos_float
    :initarg :quantos_float
    :type cl:float
    :initform 0.0)
   (quantos_int
    :reader quantos_int
    :initarg :quantos_int
    :type cl:integer
    :initform 0))
)

(cl:defclass QuantosCommand (<QuantosCommand>)
  ())

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

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

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

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

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

(cl:ensure-generic-function 'quantos_int-val :lambda-list '(m))
(cl:defmethod quantos_int-val ((m <QuantosCommand>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader mettler_toledo_quantos_q2_msgs-msg:quantos_int-val is deprecated.  Use mettler_toledo_quantos_q2_msgs-msg:quantos_int instead.")
  (quantos_int m))
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '<QuantosCommand>)))
    "Constants for message type '<QuantosCommand>"
  '((:STARTDOSE . 0)
    (:STOPDOSE . 1)
    (:GETDOORPOS . 2)
    (:GETSAMPLEPOS . 3)
    (:GETHEAD . 4)
    (:GETSAMPLE . 5)
    (:MOVEPIN . 6)
    (:MOVEDOOR . 7)
    (:SETSAMPLEPOS . 8)
    (:SETTAPBEFORE . 9)
    (:SETTAPDURING . 10)
    (:SETTAPINT . 11)
    (:SETTAPDURATION . 12)
    (:SETTARGET . 13)
    (:SETTOL . 14)
    (:SETTOLMODE . 15)
    (:SETSAMPLEID . 16)
    (:SETPANOFF . 17)
    (:SETALGO . 18)
    (:SETAS . 19)
    (:DISPENSESOLID . 20))
)
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'QuantosCommand)))
    "Constants for message type 'QuantosCommand"
  '((:STARTDOSE . 0)
    (:STOPDOSE . 1)
    (:GETDOORPOS . 2)
    (:GETSAMPLEPOS . 3)
    (:GETHEAD . 4)
    (:GETSAMPLE . 5)
    (:MOVEPIN . 6)
    (:MOVEDOOR . 7)
    (:SETSAMPLEPOS . 8)
    (:SETTAPBEFORE . 9)
    (:SETTAPDURING . 10)
    (:SETTAPINT . 11)
    (:SETTAPDURATION . 12)
    (:SETTARGET . 13)
    (:SETTOL . 14)
    (:SETTOLMODE . 15)
    (:SETSAMPLEID . 16)
    (:SETPANOFF . 17)
    (:SETALGO . 18)
    (:SETAS . 19)
    (:DISPENSESOLID . 20))
)
(cl:defmethod roslisp-msg-protocol:serialize ((msg <QuantosCommand>) ostream)
  "Serializes a message object of type '<QuantosCommand>"
  (cl:let* ((signed (cl:slot-value msg 'quantos_command)) (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:let ((__ros_str_len (cl:length (cl:slot-value msg 'quantos_ID))))
    (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 'quantos_ID))
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'quantos_bool) 1 0)) ostream)
  (cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'quantos_float))))
    (cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream))
  (cl:let* ((signed (cl:slot-value msg 'quantos_int)) (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:defmethod roslisp-msg-protocol:deserialize ((msg <QuantosCommand>) istream)
  "Deserializes a message object of type '<QuantosCommand>"
    (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 'quantos_command) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (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 'quantos_ID) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:slot-value msg 'quantos_ID) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
    (cl:setf (cl:slot-value msg 'quantos_bool) (cl:not (cl:zerop (cl:read-byte istream))))
    (cl:let ((bits 0))
      (cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
    (cl:setf (cl:slot-value msg 'quantos_float) (roslisp-utils:decode-single-float-bits bits)))
    (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 'quantos_int) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<QuantosCommand>)))
  "Returns string type for a message object of type '<QuantosCommand>"
  "mettler_toledo_quantos_q2_msgs/QuantosCommand")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'QuantosCommand)))
  "Returns string type for a message object of type 'QuantosCommand"
  "mettler_toledo_quantos_q2_msgs/QuantosCommand")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<QuantosCommand>)))
  "Returns md5sum for a message object of type '<QuantosCommand>"
  "aa63230c95b3f1f7695d287e88ee9006")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'QuantosCommand)))
  "Returns md5sum for a message object of type 'QuantosCommand"
  "aa63230c95b3f1f7695d287e88ee9006")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<QuantosCommand>)))
  "Returns full string definition for message of type '<QuantosCommand>"
  (cl:format cl:nil "# Available commands to use the MT Quantos System~%int32 STARTDOSE = 0~%int32 STOPDOSE = 1~%int32 GETDOORPOS = 2~%int32 GETSAMPLEPOS = 3~%int32 GETHEAD = 4~%int32 GETSAMPLE = 5~%int32 MOVEPIN = 6~%int32 MOVEDOOR = 7~%int32 SETSAMPLEPOS = 8~%int32 SETTAPBEFORE = 9~%int32 SETTAPDURING = 10~%int32 SETTAPINT = 11~%int32 SETTAPDURATION = 12~%int32 SETTARGET = 13~%int32 SETTOL = 14~%int32 SETTOLMODE = 15~%int32 SETSAMPLEID = 16~%int32 SETPANOFF = 17~%int32 SETALGO = 18~%int32 SETAS = 19~%int32 DISPENSESOLID = 20~%~%int32 quantos_command~%string quantos_ID~%bool quantos_bool~%float32 quantos_float~%int32 quantos_int~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'QuantosCommand)))
  "Returns full string definition for message of type 'QuantosCommand"
  (cl:format cl:nil "# Available commands to use the MT Quantos System~%int32 STARTDOSE = 0~%int32 STOPDOSE = 1~%int32 GETDOORPOS = 2~%int32 GETSAMPLEPOS = 3~%int32 GETHEAD = 4~%int32 GETSAMPLE = 5~%int32 MOVEPIN = 6~%int32 MOVEDOOR = 7~%int32 SETSAMPLEPOS = 8~%int32 SETTAPBEFORE = 9~%int32 SETTAPDURING = 10~%int32 SETTAPINT = 11~%int32 SETTAPDURATION = 12~%int32 SETTARGET = 13~%int32 SETTOL = 14~%int32 SETTOLMODE = 15~%int32 SETSAMPLEID = 16~%int32 SETPANOFF = 17~%int32 SETALGO = 18~%int32 SETAS = 19~%int32 DISPENSESOLID = 20~%~%int32 quantos_command~%string quantos_ID~%bool quantos_bool~%float32 quantos_float~%int32 quantos_int~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <QuantosCommand>))
  (cl:+ 0
     4
     4 (cl:length (cl:slot-value msg 'quantos_ID))
     1
     4
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <QuantosCommand>))
  "Converts a ROS message object to a list"
  (cl:list 'QuantosCommand
    (cl:cons ':quantos_command (quantos_command msg))
    (cl:cons ':quantos_ID (quantos_ID msg))
    (cl:cons ':quantos_bool (quantos_bool msg))
    (cl:cons ':quantos_float (quantos_float msg))
    (cl:cons ':quantos_int (quantos_int msg))
))
