; Auto-generated. Do not edit!


(cl:in-package vqimg-msg)


;//! \htmlinclude component_centers.msg.html

(cl:defclass <component_centers> (roslisp-msg-protocol:ros-message)
  ((data
    :reader data
    :initarg :data
    :type (cl:vector vqimg-msg:component_center)
   :initform (cl:make-array 0 :element-type 'vqimg-msg:component_center :initial-element (cl:make-instance 'vqimg-msg:component_center))))
)

(cl:defclass component_centers (<component_centers>)
  ())

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

(cl:ensure-generic-function 'data-val :lambda-list '(m))
(cl:defmethod data-val ((m <component_centers>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader vqimg-msg:data-val is deprecated.  Use vqimg-msg:data instead.")
  (data m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <component_centers>) ostream)
  "Serializes a message object of type '<component_centers>"
  (cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'data))))
    (cl:write-byte (cl:ldb (cl:byte 8 0) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) __ros_arr_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) __ros_arr_len) ostream))
  (cl:map cl:nil #'(cl:lambda (ele) (roslisp-msg-protocol:serialize ele ostream))
   (cl:slot-value msg 'data))
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <component_centers>) istream)
  "Deserializes a message object of type '<component_centers>"
  (cl:let ((__ros_arr_len 0))
    (cl:setf (cl:ldb (cl:byte 8 0) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 8) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 16) __ros_arr_len) (cl:read-byte istream))
    (cl:setf (cl:ldb (cl:byte 8 24) __ros_arr_len) (cl:read-byte istream))
  (cl:setf (cl:slot-value msg 'data) (cl:make-array __ros_arr_len))
  (cl:let ((vals (cl:slot-value msg 'data)))
    (cl:dotimes (i __ros_arr_len)
    (cl:setf (cl:aref vals i) (cl:make-instance 'vqimg-msg:component_center))
  (roslisp-msg-protocol:deserialize (cl:aref vals i) istream))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<component_centers>)))
  "Returns string type for a message object of type '<component_centers>"
  "vqimg/component_centers")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'component_centers)))
  "Returns string type for a message object of type 'component_centers"
  "vqimg/component_centers")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<component_centers>)))
  "Returns md5sum for a message object of type '<component_centers>"
  "22da8af7f61e90ef304d55db8ee79368")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'component_centers)))
  "Returns md5sum for a message object of type 'component_centers"
  "22da8af7f61e90ef304d55db8ee79368")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<component_centers>)))
  "Returns full string definition for message of type '<component_centers>"
  (cl:format cl:nil "component_center[] data~%~%================================================================================~%MSG: vqimg/component_center~%int64   label~%int64   nb_vertex~%float64 x~%float64 y~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'component_centers)))
  "Returns full string definition for message of type 'component_centers"
  (cl:format cl:nil "component_center[] data~%~%================================================================================~%MSG: vqimg/component_center~%int64   label~%int64   nb_vertex~%float64 x~%float64 y~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <component_centers>))
  (cl:+ 0
     4 (cl:reduce #'cl:+ (cl:slot-value msg 'data) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ (roslisp-msg-protocol:serialization-length ele))))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <component_centers>))
  "Converts a ROS message object to a list"
  (cl:list 'component_centers
    (cl:cons ':data (data msg))
))
