; Auto-generated. Do not edit!


(cl:in-package kmriiwa_chemist_msgs-msg)


;//! \htmlinclude LBRStatus.msg.html

(cl:defclass <LBRStatus> (roslisp-msg-protocol:ros-message)
  ((header
    :reader header
    :initarg :header
    :type std_msgs-msg:Header
    :initform (cl:make-instance 'std_msgs-msg:Header))
   (robot_op_state
    :reader robot_op_state
    :initarg :robot_op_state
    :type cl:string
    :initform "")
   (motion_enabled
    :reader motion_enabled
    :initarg :motion_enabled
    :type cl:boolean
    :initform cl:nil)
   (axes_gms_referenced
    :reader axes_gms_referenced
    :initarg :axes_gms_referenced
    :type cl:boolean
    :initform cl:nil)
   (axes_position_referenced
    :reader axes_position_referenced
    :initarg :axes_position_referenced
    :type cl:boolean
    :initform cl:nil)
   (safety_stop_state
    :reader safety_stop_state
    :initarg :safety_stop_state
    :type cl:integer
    :initform 0))
)

(cl:defclass LBRStatus (<LBRStatus>)
  ())

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

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

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

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

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

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

(cl:ensure-generic-function 'safety_stop_state-val :lambda-list '(m))
(cl:defmethod safety_stop_state-val ((m <LBRStatus>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader kmriiwa_chemist_msgs-msg:safety_stop_state-val is deprecated.  Use kmriiwa_chemist_msgs-msg:safety_stop_state instead.")
  (safety_stop_state m))
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '<LBRStatus>)))
    "Constants for message type '<LBRStatus>"
  '((:NOSTOP . 0)
    (:STOP0 . 1)
    (:STOP1_ON_PATH . 2)
    (:STOP2 . 3))
)
(cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'LBRStatus)))
    "Constants for message type 'LBRStatus"
  '((:NOSTOP . 0)
    (:STOP0 . 1)
    (:STOP1_ON_PATH . 2)
    (:STOP2 . 3))
)
(cl:defmethod roslisp-msg-protocol:serialize ((msg <LBRStatus>) ostream)
  "Serializes a message object of type '<LBRStatus>"
  (roslisp-msg-protocol:serialize (cl:slot-value msg 'header) ostream)
  (cl:let ((__ros_str_len (cl:length (cl:slot-value msg 'robot_op_state))))
    (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 'robot_op_state))
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'motion_enabled) 1 0)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'axes_gms_referenced) 1 0)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'axes_position_referenced) 1 0)) ostream)
  (cl:let* ((signed (cl:slot-value msg 'safety_stop_state)) (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 <LBRStatus>) istream)
  "Deserializes a message object of type '<LBRStatus>"
  (roslisp-msg-protocol:deserialize (cl:slot-value msg 'header) istream)
    (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 'robot_op_state) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:slot-value msg 'robot_op_state) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
    (cl:setf (cl:slot-value msg 'motion_enabled) (cl:not (cl:zerop (cl:read-byte istream))))
    (cl:setf (cl:slot-value msg 'axes_gms_referenced) (cl:not (cl:zerop (cl:read-byte istream))))
    (cl:setf (cl:slot-value msg 'axes_position_referenced) (cl:not (cl:zerop (cl:read-byte istream))))
    (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 'safety_stop_state) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<LBRStatus>)))
  "Returns string type for a message object of type '<LBRStatus>"
  "kmriiwa_chemist_msgs/LBRStatus")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'LBRStatus)))
  "Returns string type for a message object of type 'LBRStatus"
  "kmriiwa_chemist_msgs/LBRStatus")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<LBRStatus>)))
  "Returns md5sum for a message object of type '<LBRStatus>"
  "f941e68f3c24d5264e4b59474170dbef")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'LBRStatus)))
  "Returns md5sum for a message object of type 'LBRStatus"
  "f941e68f3c24d5264e4b59474170dbef")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<LBRStatus>)))
  "Returns full string definition for message of type '<LBRStatus>"
  (cl:format cl:nil "Header header~%string robot_op_state~%bool motion_enabled~%bool axes_gms_referenced~%bool axes_position_referenced~%int32 NOSTOP = 0~%int32 STOP0 = 1~%int32 STOP1_ON_PATH = 2~%int32 STOP2 = 3~%int32 safety_stop_state~%~%================================================================================~%MSG: std_msgs/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%string frame_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'LBRStatus)))
  "Returns full string definition for message of type 'LBRStatus"
  (cl:format cl:nil "Header header~%string robot_op_state~%bool motion_enabled~%bool axes_gms_referenced~%bool axes_position_referenced~%int32 NOSTOP = 0~%int32 STOP0 = 1~%int32 STOP1_ON_PATH = 2~%int32 STOP2 = 3~%int32 safety_stop_state~%~%================================================================================~%MSG: std_msgs/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%string frame_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <LBRStatus>))
  (cl:+ 0
     (roslisp-msg-protocol:serialization-length (cl:slot-value msg 'header))
     4 (cl:length (cl:slot-value msg 'robot_op_state))
     1
     1
     1
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <LBRStatus>))
  "Converts a ROS message object to a list"
  (cl:list 'LBRStatus
    (cl:cons ':header (header msg))
    (cl:cons ':robot_op_state (robot_op_state msg))
    (cl:cons ':motion_enabled (motion_enabled msg))
    (cl:cons ':axes_gms_referenced (axes_gms_referenced msg))
    (cl:cons ':axes_position_referenced (axes_position_referenced msg))
    (cl:cons ':safety_stop_state (safety_stop_state msg))
))
