;; Auto-generated. Do not edit!


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

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


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

(defmethod detect_targets::component_centers
  (:init
   (&key
    ((:data __data) (let (r) (dotimes (i 0) (push (instance detect_targets::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
   ()
   (+
    ;; detect_targets/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)))))
     ;; detect_targets/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))
   ;; detect_targets/component_center[] _data
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _data (let (r) (dotimes (i n) (push (instance detect_targets::component_center :init) r)) r))
     (dolist (elem- _data)
     (send elem- :deserialize buf ptr-) (incf ptr- (send elem- :serialization-length))
     ))
   ;;
   self)
  )

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

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

")



(provide :detect_targets/component_centers "22da8af7f61e90ef304d55db8ee79368")


