;; Auto-generated. Do not edit!


(when (boundp 'shiyan2::FFT)
  (if (not (find-package "SHIYAN2"))
    (make-package "SHIYAN2"))
  (shadow 'FFT (find-package "SHIYAN2")))
(unless (find-package "SHIYAN2::FFT")
  (make-package "SHIYAN2::FFT"))
(unless (find-package "SHIYAN2::FFTREQUEST")
  (make-package "SHIYAN2::FFTREQUEST"))
(unless (find-package "SHIYAN2::FFTRESPONSE")
  (make-package "SHIYAN2::FFTRESPONSE"))

(in-package "ROS")





(defclass shiyan2::FFTRequest
  :super ros::object
  :slots (_data_x _data_y _window_size ))

(defmethod shiyan2::FFTRequest
  (:init
   (&key
    ((:data_x __data_x) (make-array 0 :initial-element 0.0 :element-type :float))
    ((:data_y __data_y) (make-array 0 :initial-element 0.0 :element-type :float))
    ((:window_size __window_size) 0)
    )
   (send-super :init)
   (setq _data_x __data_x)
   (setq _data_y __data_y)
   (setq _window_size (round __window_size))
   self)
  (:data_x
   (&optional __data_x)
   (if __data_x (setq _data_x __data_x)) _data_x)
  (:data_y
   (&optional __data_y)
   (if __data_y (setq _data_y __data_y)) _data_y)
  (:window_size
   (&optional __window_size)
   (if __window_size (setq _window_size __window_size)) _window_size)
  (:serialization-length
   ()
   (+
    ;; float64[] _data_x
    (* 8    (length _data_x)) 4
    ;; float64[] _data_y
    (* 8    (length _data_y)) 4
    ;; int32 _window_size
    4
    ))
  (:serialize
   (&optional strm)
   (let ((s (if strm strm
              (make-string-output-stream (send self :serialization-length)))))
     ;; float64[] _data_x
     (write-long (length _data_x) s)
     (dotimes (i (length _data_x))
       (sys::poke (elt _data_x i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;; float64[] _data_y
     (write-long (length _data_y) s)
     (dotimes (i (length _data_y))
       (sys::poke (elt _data_y i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;; int32 _window_size
       (write-long _window_size s)
     ;;
     (if (null strm) (get-output-stream-string s))))
  (:deserialize
   (buf &optional (ptr- 0))
   ;; float64[] _data_x
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _data_x (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _data_x i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;; float64[] _data_y
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _data_y (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _data_y i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;; int32 _window_size
     (setq _window_size (sys::peek buf ptr- :integer)) (incf ptr- 4)
   ;;
   self)
  )

(defclass shiyan2::FFTResponse
  :super ros::object
  :slots (_magnitude_x _magnitude_y _phase_x _phase_y ))

(defmethod shiyan2::FFTResponse
  (:init
   (&key
    ((:magnitude_x __magnitude_x) (make-array 0 :initial-element 0.0 :element-type :float))
    ((:magnitude_y __magnitude_y) (make-array 0 :initial-element 0.0 :element-type :float))
    ((:phase_x __phase_x) (make-array 0 :initial-element 0.0 :element-type :float))
    ((:phase_y __phase_y) (make-array 0 :initial-element 0.0 :element-type :float))
    )
   (send-super :init)
   (setq _magnitude_x __magnitude_x)
   (setq _magnitude_y __magnitude_y)
   (setq _phase_x __phase_x)
   (setq _phase_y __phase_y)
   self)
  (:magnitude_x
   (&optional __magnitude_x)
   (if __magnitude_x (setq _magnitude_x __magnitude_x)) _magnitude_x)
  (:magnitude_y
   (&optional __magnitude_y)
   (if __magnitude_y (setq _magnitude_y __magnitude_y)) _magnitude_y)
  (:phase_x
   (&optional __phase_x)
   (if __phase_x (setq _phase_x __phase_x)) _phase_x)
  (:phase_y
   (&optional __phase_y)
   (if __phase_y (setq _phase_y __phase_y)) _phase_y)
  (:serialization-length
   ()
   (+
    ;; float64[] _magnitude_x
    (* 8    (length _magnitude_x)) 4
    ;; float64[] _magnitude_y
    (* 8    (length _magnitude_y)) 4
    ;; float64[] _phase_x
    (* 8    (length _phase_x)) 4
    ;; float64[] _phase_y
    (* 8    (length _phase_y)) 4
    ))
  (:serialize
   (&optional strm)
   (let ((s (if strm strm
              (make-string-output-stream (send self :serialization-length)))))
     ;; float64[] _magnitude_x
     (write-long (length _magnitude_x) s)
     (dotimes (i (length _magnitude_x))
       (sys::poke (elt _magnitude_x i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;; float64[] _magnitude_y
     (write-long (length _magnitude_y) s)
     (dotimes (i (length _magnitude_y))
       (sys::poke (elt _magnitude_y i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;; float64[] _phase_x
     (write-long (length _phase_x) s)
     (dotimes (i (length _phase_x))
       (sys::poke (elt _phase_x i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;; float64[] _phase_y
     (write-long (length _phase_y) s)
     (dotimes (i (length _phase_y))
       (sys::poke (elt _phase_y i) (send s :buffer) (send s :count) :double) (incf (stream-count s) 8)
       )
     ;;
     (if (null strm) (get-output-stream-string s))))
  (:deserialize
   (buf &optional (ptr- 0))
   ;; float64[] _magnitude_x
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _magnitude_x (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _magnitude_x i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;; float64[] _magnitude_y
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _magnitude_y (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _magnitude_y i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;; float64[] _phase_x
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _phase_x (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _phase_x i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;; float64[] _phase_y
   (let (n)
     (setq n (sys::peek buf ptr- :integer)) (incf ptr- 4)
     (setq _phase_y (instantiate float-vector n))
     (dotimes (i n)
     (setf (elt _phase_y i) (sys::peek buf ptr- :double)) (incf ptr- 8)
     ))
   ;;
   self)
  )

(defclass shiyan2::FFT
  :super ros::object
  :slots ())

(setf (get shiyan2::FFT :md5sum-) "1c6bb3ace645464ed07f169d1723447f")
(setf (get shiyan2::FFT :datatype-) "shiyan2/FFT")
(setf (get shiyan2::FFT :request) shiyan2::FFTRequest)
(setf (get shiyan2::FFT :response) shiyan2::FFTResponse)

(defmethod shiyan2::FFTRequest
  (:response () (instance shiyan2::FFTResponse :init)))

(setf (get shiyan2::FFTRequest :md5sum-) "1c6bb3ace645464ed07f169d1723447f")
(setf (get shiyan2::FFTRequest :datatype-) "shiyan2/FFTRequest")
(setf (get shiyan2::FFTRequest :definition-)
      "float64[] data_x
float64[] data_y
int32 window_size
---
float64[] magnitude_x
float64[] magnitude_y
float64[] phase_x
float64[] phase_y
")

(setf (get shiyan2::FFTResponse :md5sum-) "1c6bb3ace645464ed07f169d1723447f")
(setf (get shiyan2::FFTResponse :datatype-) "shiyan2/FFTResponse")
(setf (get shiyan2::FFTResponse :definition-)
      "float64[] data_x
float64[] data_y
int32 window_size
---
float64[] magnitude_x
float64[] magnitude_y
float64[] phase_x
float64[] phase_y
")



(provide :shiyan2/FFT "1c6bb3ace645464ed07f169d1723447f")


