; Auto-generated. Do not edit!


(cl:in-package colorimetry_msgs-msg)


;//! \htmlinclude ColorimetryResult.msg.html

(cl:defclass <ColorimetryResult> (roslisp-msg-protocol:ros-message)
  ((result_file_name
    :reader result_file_name
    :initarg :result_file_name
    :type cl:string
    :initform "")
   (red
    :reader red
    :initarg :red
    :type cl:integer
    :initform 0)
   (green
    :reader green
    :initarg :green
    :type cl:integer
    :initform 0)
   (blue
    :reader blue
    :initarg :blue
    :type cl:integer
    :initform 0))
)

(cl:defclass ColorimetryResult (<ColorimetryResult>)
  ())

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

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

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

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

(cl:ensure-generic-function 'blue-val :lambda-list '(m))
(cl:defmethod blue-val ((m <ColorimetryResult>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader colorimetry_msgs-msg:blue-val is deprecated.  Use colorimetry_msgs-msg:blue instead.")
  (blue m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <ColorimetryResult>) ostream)
  "Serializes a message object of type '<ColorimetryResult>"
  (cl:let ((__ros_str_len (cl:length (cl:slot-value msg 'result_file_name))))
    (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 'result_file_name))
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'red)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'red)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'red)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'red)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'green)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'green)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'green)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'green)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'blue)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'blue)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'blue)) ostream)
  (cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'blue)) ostream)
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <ColorimetryResult>) istream)
  "Deserializes a message object of type '<ColorimetryResult>"
    (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 'result_file_name) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:slot-value msg 'result_file_name) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
    (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'red)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'red)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'red)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'red)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'green)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'green)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'green)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'green)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'blue)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'blue)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'blue)) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'blue)) (cl:read-byte istream))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<ColorimetryResult>)))
  "Returns string type for a message object of type '<ColorimetryResult>"
  "colorimetry_msgs/ColorimetryResult")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'ColorimetryResult)))
  "Returns string type for a message object of type 'ColorimetryResult"
  "colorimetry_msgs/ColorimetryResult")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<ColorimetryResult>)))
  "Returns md5sum for a message object of type '<ColorimetryResult>"
  "e1db3c4c4d7afe3ab5599630fae7fb0e")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'ColorimetryResult)))
  "Returns md5sum for a message object of type 'ColorimetryResult"
  "e1db3c4c4d7afe3ab5599630fae7fb0e")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<ColorimetryResult>)))
  "Returns full string definition for message of type '<ColorimetryResult>"
  (cl:format cl:nil "string result_file_name~%uint32 red~%uint32 green~%uint32 blue~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'ColorimetryResult)))
  "Returns full string definition for message of type 'ColorimetryResult"
  (cl:format cl:nil "string result_file_name~%uint32 red~%uint32 green~%uint32 blue~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <ColorimetryResult>))
  (cl:+ 0
     4 (cl:length (cl:slot-value msg 'result_file_name))
     4
     4
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <ColorimetryResult>))
  "Converts a ROS message object to a list"
  (cl:list 'ColorimetryResult
    (cl:cons ':result_file_name (result_file_name msg))
    (cl:cons ':red (red msg))
    (cl:cons ':green (green msg))
    (cl:cons ':blue (blue msg))
))
