; Auto-generated. Do not edit!


(cl:in-package chemspeed_flex_msgs-msg)


;//! \htmlinclude CSFlexCommand.msg.html

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

(cl:defclass CSFlexCommand (<CSFlexCommand>)
  ())

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

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