; Auto-generated. Do not edit!


(cl:in-package fisherbrand_pps4102_balance_msgs-msg)


;//! \htmlinclude BalanceCommand.msg.html

(cl:defclass <BalanceCommand> (roslisp-msg-protocol:ros-message)
  ((balance_command
    :reader balance_command
    :initarg :balance_command
    :type cl:integer
    :initform 0))
)

(cl:defclass BalanceCommand (<BalanceCommand>)
  ())

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

(cl:ensure-generic-function 'balance_command-val :lambda-list '(m))
(cl:defmethod balance_command-val ((m <BalanceCommand>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader fisherbrand_pps4102_balance_msgs-msg:balance_command-val is deprecated.  Use fisherbrand_pps4102_balance_msgs-msg:balance_command instead.")
  (balance_command m))
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '<BalanceCommand>)))
    "Constants for message type '<BalanceCommand>"
  '((:ZERO . 0)
    (:BALANCE_ON . 1)
    (:BALANCE_OFF . 2)
    (:WEIGHT_STABLE . 3)
    (:WEIGHT_NOW . 4))
)
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'BalanceCommand)))
    "Constants for message type 'BalanceCommand"
  '((:ZERO . 0)
    (:BALANCE_ON . 1)
    (:BALANCE_OFF . 2)
    (:WEIGHT_STABLE . 3)
    (:WEIGHT_NOW . 4))
)
(cl:defmethod roslisp-msg-protocol:serialize ((msg <BalanceCommand>) ostream)
  "Serializes a message object of type '<BalanceCommand>"
  (cl:let* ((signed (cl:slot-value msg 'balance_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:defmethod roslisp-msg-protocol:deserialize ((msg <BalanceCommand>) istream)
  "Deserializes a message object of type '<BalanceCommand>"
    (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 'balance_command) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<BalanceCommand>)))
  "Returns string type for a message object of type '<BalanceCommand>"
  "fisherbrand_pps4102_balance_msgs/BalanceCommand")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'BalanceCommand)))
  "Returns string type for a message object of type 'BalanceCommand"
  "fisherbrand_pps4102_balance_msgs/BalanceCommand")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<BalanceCommand>)))
  "Returns md5sum for a message object of type '<BalanceCommand>"
  "574dd25b04452c9c1afc9d3cae7bc78b")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'BalanceCommand)))
  "Returns md5sum for a message object of type 'BalanceCommand"
  "574dd25b04452c9c1afc9d3cae7bc78b")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<BalanceCommand>)))
  "Returns full string definition for message of type '<BalanceCommand>"
  (cl:format cl:nil "# Available commands to use the Fisher Scientific PPS4102 Top Pan balance ~%int32 ZERO = 0~%int32 BALANCE_ON = 1~%int32 BALANCE_OFF = 2~%int32 WEIGHT_STABLE = 3~%int32 WEIGHT_NOW = 4~%~%int32 balance_command ~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'BalanceCommand)))
  "Returns full string definition for message of type 'BalanceCommand"
  (cl:format cl:nil "# Available commands to use the Fisher Scientific PPS4102 Top Pan balance ~%int32 ZERO = 0~%int32 BALANCE_ON = 1~%int32 BALANCE_OFF = 2~%int32 WEIGHT_STABLE = 3~%int32 WEIGHT_NOW = 4~%~%int32 balance_command ~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <BalanceCommand>))
  (cl:+ 0
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <BalanceCommand>))
  "Converts a ROS message object to a list"
  (cl:list 'BalanceCommand
    (cl:cons ':balance_command (balance_command msg))
))
