; Auto-generated. Do not edit!


(cl:in-package chemspeed_flex_msgs-msg)


;//! \htmlinclude CSFlexStatus.msg.html

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

(cl:defclass CSFlexStatus (<CSFlexStatus>)
  ())

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

(cl:ensure-generic-function 'cs_flex_status-val :lambda-list '(m))
(cl:defmethod cs_flex_status-val ((m <CSFlexStatus>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader chemspeed_flex_msgs-msg:cs_flex_status-val is deprecated.  Use chemspeed_flex_msgs-msg:cs_flex_status instead.")
  (cs_flex_status m))
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '<CSFlexStatus>)))
    "Constants for message type '<CSFlexStatus>"
  '((:DOOR_OPEN . 0)
    (:DOOR_CLOSED . 1)
    (:RUNNING_JOB . 2)
    (:JOB_COMPLETE . 3)
    (:ERROR . -1))
)
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'CSFlexStatus)))
    "Constants for message type 'CSFlexStatus"
  '((:DOOR_OPEN . 0)
    (:DOOR_CLOSED . 1)
    (:RUNNING_JOB . 2)
    (:JOB_COMPLETE . 3)
    (:ERROR . -1))
)
(cl:defmethod roslisp-msg-protocol:serialize ((msg <CSFlexStatus>) ostream)
  "Serializes a message object of type '<CSFlexStatus>"
  (cl:let* ((signed (cl:slot-value msg 'cs_flex_status)) (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 <CSFlexStatus>) istream)
  "Deserializes a message object of type '<CSFlexStatus>"
    (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 'cs_flex_status) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<CSFlexStatus>)))
  "Returns string type for a message object of type '<CSFlexStatus>"
  "chemspeed_flex_msgs/CSFlexStatus")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'CSFlexStatus)))
  "Returns string type for a message object of type 'CSFlexStatus"
  "chemspeed_flex_msgs/CSFlexStatus")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<CSFlexStatus>)))
  "Returns md5sum for a message object of type '<CSFlexStatus>"
  "2a2aa224b84e0f53bfa45fd0f87fad66")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'CSFlexStatus)))
  "Returns md5sum for a message object of type 'CSFlexStatus"
  "2a2aa224b84e0f53bfa45fd0f87fad66")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<CSFlexStatus>)))
  "Returns full string definition for message of type '<CSFlexStatus>"
  (cl:format cl:nil "int32 DOOR_OPEN = 0~%int32 DOOR_CLOSED = 1~%int32 RUNNING_JOB = 2~%int32 JOB_COMPLETE = 3~%int32 ERROR = -1~%~%int32 cs_flex_status~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'CSFlexStatus)))
  "Returns full string definition for message of type 'CSFlexStatus"
  (cl:format cl:nil "int32 DOOR_OPEN = 0~%int32 DOOR_CLOSED = 1~%int32 RUNNING_JOB = 2~%int32 JOB_COMPLETE = 3~%int32 ERROR = -1~%~%int32 cs_flex_status~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <CSFlexStatus>))
  (cl:+ 0
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <CSFlexStatus>))
  "Converts a ROS message object to a list"
  (cl:list 'CSFlexStatus
    (cl:cons ':cs_flex_status (cs_flex_status msg))
))
