; Auto-generated. Do not edit!


(cl:in-package kmriiwa_chemist_msgs-msg)


;//! \htmlinclude NavCommand.msg.html

(cl:defclass <NavCommand> (roslisp-msg-protocol:ros-message)
  ((cmd_seq
    :reader cmd_seq
    :initarg :cmd_seq
    :type cl:integer
    :initform 0)
   (priority_task
    :reader priority_task
    :initarg :priority_task
    :type cl:boolean
    :initform cl:nil)
   (robot_id
    :reader robot_id
    :initarg :robot_id
    :type cl:integer
    :initform 0)
   (graph_id
    :reader graph_id
    :initarg :graph_id
    :type cl:integer
    :initform 0)
   (node_id
    :reader node_id
    :initarg :node_id
    :type cl:integer
    :initform 0)
   (fine_localization
    :reader fine_localization
    :initarg :fine_localization
    :type cl:boolean
    :initform cl:nil))
)

(cl:defclass NavCommand (<NavCommand>)
  ())

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

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

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

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

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

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

(cl:ensure-generic-function 'fine_localization-val :lambda-list '(m))
(cl:defmethod fine_localization-val ((m <NavCommand>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader kmriiwa_chemist_msgs-msg:fine_localization-val is deprecated.  Use kmriiwa_chemist_msgs-msg:fine_localization instead.")
  (fine_localization m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <NavCommand>) ostream)
  "Serializes a message object of type '<NavCommand>"
  (cl:let* ((signed (cl:slot-value msg 'cmd_seq)) (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:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'priority_task) 1 0)) ostream)
  (cl:let* ((signed (cl:slot-value msg 'robot_id)) (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:let* ((signed (cl:slot-value msg 'graph_id)) (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:let* ((signed (cl:slot-value msg 'node_id)) (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:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'fine_localization) 1 0)) ostream)
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <NavCommand>) istream)
  "Deserializes a message object of type '<NavCommand>"
    (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 'cmd_seq) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (cl:setf (cl:slot-value msg 'priority_task) (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 'robot_id) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (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 'graph_id) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (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 'node_id) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
    (cl:setf (cl:slot-value msg 'fine_localization) (cl:not (cl:zerop (cl:read-byte istream))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<NavCommand>)))
  "Returns string type for a message object of type '<NavCommand>"
  "kmriiwa_chemist_msgs/NavCommand")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'NavCommand)))
  "Returns string type for a message object of type 'NavCommand"
  "kmriiwa_chemist_msgs/NavCommand")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<NavCommand>)))
  "Returns md5sum for a message object of type '<NavCommand>"
  "c83d4a6fe2238d17c0573f9bd0668daf")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'NavCommand)))
  "Returns md5sum for a message object of type 'NavCommand"
  "c83d4a6fe2238d17c0573f9bd0668daf")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<NavCommand>)))
  "Returns full string definition for message of type '<NavCommand>"
  (cl:format cl:nil "int32 cmd_seq~%bool priority_task~%int32 robot_id~%int32 graph_id~%int32 node_id~%bool fine_localization~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'NavCommand)))
  "Returns full string definition for message of type 'NavCommand"
  (cl:format cl:nil "int32 cmd_seq~%bool priority_task~%int32 robot_id~%int32 graph_id~%int32 node_id~%bool fine_localization~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <NavCommand>))
  (cl:+ 0
     4
     1
     4
     4
     4
     1
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <NavCommand>))
  "Converts a ROS message object to a list"
  (cl:list 'NavCommand
    (cl:cons ':cmd_seq (cmd_seq msg))
    (cl:cons ':priority_task (priority_task msg))
    (cl:cons ':robot_id (robot_id msg))
    (cl:cons ':graph_id (graph_id msg))
    (cl:cons ':node_id (node_id msg))
    (cl:cons ':fine_localization (fine_localization msg))
))
