;; Auto-generated. Do not edit!


(when (boundp 'kmriiwa_chemist_msgs::KMRStatus)
  (if (not (find-package "KMRIIWA_CHEMIST_MSGS"))
    (make-package "KMRIIWA_CHEMIST_MSGS"))
  (shadow 'KMRStatus (find-package "KMRIIWA_CHEMIST_MSGS")))
(unless (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS")
  (make-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))

(in-package "ROS")
;;//! \htmlinclude KMRStatus.msg.html
(if (not (find-package "STD_MSGS"))
  (ros::roseus-add-msgs "std_msgs"))


(intern "*ACKNOWLEDGE_REQUIRED*" (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(shadow '*ACKNOWLEDGE_REQUIRED* (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(defconstant kmriiwa_chemist_msgs::KMRStatus::*ACKNOWLEDGE_REQUIRED* 1)
(intern "*EMERGENCY_STOP*" (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(shadow '*EMERGENCY_STOP* (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(defconstant kmriiwa_chemist_msgs::KMRStatus::*EMERGENCY_STOP* 2)
(intern "*SAFE*" (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(shadow '*SAFE* (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(defconstant kmriiwa_chemist_msgs::KMRStatus::*SAFE* 3)
(intern "*WARNING_FILED*" (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(shadow '*WARNING_FILED* (find-package "KMRIIWA_CHEMIST_MSGS::KMRSTATUS"))
(defconstant kmriiwa_chemist_msgs::KMRStatus::*WARNING_FILED* 4)

(defun kmriiwa_chemist_msgs::KMRStatus-to-symbol (const)
  (cond
        ((= const 1) 'kmriiwa_chemist_msgs::KMRStatus::*ACKNOWLEDGE_REQUIRED*)
        ((= const 2) 'kmriiwa_chemist_msgs::KMRStatus::*EMERGENCY_STOP*)
        ((= const 3) 'kmriiwa_chemist_msgs::KMRStatus::*SAFE*)
        ((= const 4) 'kmriiwa_chemist_msgs::KMRStatus::*WARNING_FILED*)
        (t nil)))

(defclass kmriiwa_chemist_msgs::KMRStatus
  :super ros::object
  :slots (_header _robot_op_state _commandable _stationary _last_graph_node_id _safety_state _state_of_charge ))

(defmethod kmriiwa_chemist_msgs::KMRStatus
  (:init
   (&key
    ((:header __header) (instance std_msgs::Header :init))
    ((:robot_op_state __robot_op_state) "")
    ((:commandable __commandable) nil)
    ((:stationary __stationary) nil)
    ((:last_graph_node_id __last_graph_node_id) 0)
    ((:safety_state __safety_state) 0)
    ((:state_of_charge __state_of_charge) 0.0)
    )
   (send-super :init)
   (setq _header __header)
   (setq _robot_op_state (string __robot_op_state))
   (setq _commandable __commandable)
   (setq _stationary __stationary)
   (setq _last_graph_node_id (round __last_graph_node_id))
   (setq _safety_state (round __safety_state))
   (setq _state_of_charge (float __state_of_charge))
   self)
  (:header
   (&rest __header)
   (if (keywordp (car __header))
       (send* _header __header)
     (progn
       (if __header (setq _header (car __header)))
       _header)))
  (:robot_op_state
   (&optional __robot_op_state)
   (if __robot_op_state (setq _robot_op_state __robot_op_state)) _robot_op_state)
  (:commandable
   (&optional (__commandable :null))
   (if (not (eq __commandable :null)) (setq _commandable __commandable)) _commandable)
  (:stationary
   (&optional (__stationary :null))
   (if (not (eq __stationary :null)) (setq _stationary __stationary)) _stationary)
  (:last_graph_node_id
   (&optional __last_graph_node_id)
   (if __last_graph_node_id (setq _last_graph_node_id __last_graph_node_id)) _last_graph_node_id)
  (:safety_state
   (&optional __safety_state)
   (if __safety_state (setq _safety_state __safety_state)) _safety_state)
  (:state_of_charge
   (&optional __state_of_charge)
   (if __state_of_charge (setq _state_of_charge __state_of_charge)) _state_of_charge)
  (:serialization-length
   ()
   (+
    ;; std_msgs/Header _header
    (send _header :serialization-length)
    ;; string _robot_op_state
    4 (length _robot_op_state)
    ;; bool _commandable
    1
    ;; bool _stationary
    1
    ;; int32 _last_graph_node_id
    4
    ;; int32 _safety_state
    4
    ;; float32 _state_of_charge
    4
    ))
  (:serialize
   (&optional strm)
   (let ((s (if strm strm
              (make-string-output-stream (send self :serialization-length)))))
     ;; std_msgs/Header _header
       (send _header :serialize s)
     ;; string _robot_op_state
       (write-long (length _robot_op_state) s) (princ _robot_op_state s)
     ;; bool _commandable
       (if _commandable (write-byte -1 s) (write-byte 0 s))
     ;; bool _stationary
       (if _stationary (write-byte -1 s) (write-byte 0 s))
     ;; int32 _last_graph_node_id
       (write-long _last_graph_node_id s)
     ;; int32 _safety_state
       (write-long _safety_state s)
     ;; float32 _state_of_charge
       (sys::poke _state_of_charge (send s :buffer) (send s :count) :float) (incf (stream-count s) 4)
     ;;
     (if (null strm) (get-output-stream-string s))))
  (:deserialize
   (buf &optional (ptr- 0))
   ;; std_msgs/Header _header
     (send _header :deserialize buf ptr-) (incf ptr- (send _header :serialization-length))
   ;; string _robot_op_state
     (let (n) (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4) (setq _robot_op_state (subseq buf ptr- (+ ptr- n))) (incf ptr- n))
   ;; bool _commandable
     (setq _commandable (not (= 0 (sys::peek buf ptr- :char)))) (incf ptr- 1)
   ;; bool _stationary
     (setq _stationary (not (= 0 (sys::peek buf ptr- :char)))) (incf ptr- 1)
   ;; int32 _last_graph_node_id
     (setq _last_graph_node_id (sys::peek buf ptr- :integer)) (incf ptr- 4)
   ;; int32 _safety_state
     (setq _safety_state (sys::peek buf ptr- :integer)) (incf ptr- 4)
   ;; float32 _state_of_charge
     (setq _state_of_charge (sys::peek buf ptr- :float)) (incf ptr- 4)
   ;;
   self)
  )

(setf (get kmriiwa_chemist_msgs::KMRStatus :md5sum-) "a9bcf9045c06bd7ceb24e87815705b06")
(setf (get kmriiwa_chemist_msgs::KMRStatus :datatype-) "kmriiwa_chemist_msgs/KMRStatus")
(setf (get kmriiwa_chemist_msgs::KMRStatus :definition-)
      "Header header
string robot_op_state
bool commandable
bool stationary
int32 last_graph_node_id
int32 ACKNOWLEDGE_REQUIRED = 1
int32 EMERGENCY_STOP = 2
int32 SAFE = 3
int32 WARNING_FILED = 4
int32 safety_state
float32 state_of_charge


================================================================================
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

")



(provide :kmriiwa_chemist_msgs/KMRStatus "a9bcf9045c06bd7ceb24e87815705b06")


