;; Auto-generated. Do not edit!


(when (boundp 'vqimg::component_centers)
  (if (not (find-package "VQIMG"))
    (make-package "VQIMG"))
  (shadow 'component_centers (find-package "VQIMG")))
(unless (find-package "VQIMG::COMPONENT_CENTERS")
  (make-package "VQIMG::COMPONENT_CENTERS"))

(in-package "ROS")
;;//! \htmlinclude component_centers.msg.html


(defclass vqimg::component_centers
  :super ros::object
  :slots (_data ))

(defmethod vqimg::component_centers
  (:init
   (&key
    ((:data __data) (let (r) (dotimes (i 0) (push (instance vqimg::component_center :init) r)) r))
    )
   (send-super :init)
   (setq _data __data)
   self)
  (:data
   (&rest __data)
   (if (keywordp (car __data))
       (send* _data __data)
     (progn
       (if __data (setq _data (car __data)))
       _data)))
  (:serialization-length
   ()
   (+
    ;; vqimg/component_center[] _data
    (apply #'+ (send-all _data :serialization-length)) 4
    ))
  (:serialize
   (&optional strm)
   (let ((s (if strm strm
              (make-string-output-stream (send self :serialization-length)))))
     ;; vqimg/component_center[] _data
     (write-long (length _data) s)
     (dolist (elem _data)
       (send elem :serialize s)
       )
     ;;
     (if (null strm) (get-output-stream-string s))))
  (:deserialize
   (buf &optional (ptr- 0))
   ;; vqimg/component_center[] _data
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _data (let (r) (dotimes (i n) (push (instance vqimg::component_center :init) r)) r))
     (dolist (elem- _data)
     (send elem- :deserialize buf ptr-) (incf ptr- (send elem- :serialization-length))
     ))
   ;;
   self)
  )

(setf (get vqimg::component_centers :md5sum-) "22da8af7f61e90ef304d55db8ee79368")
(setf (get vqimg::component_centers :datatype-) "vqimg/component_centers")
(setf (get vqimg::component_centers :definition-)
      "component_center[] data

================================================================================
MSG: vqimg/component_center
int64   label
int64   nb_vertex
float64 x
float64 y

")



(provide :vqimg/component_centers "22da8af7f61e90ef304d55db8ee79368")


