创建分支
This commit is contained in:
1 parent
e8e2ecd86d
commit
9d814abd4f
841 files changed
+35780
-4140
No files matched your search
@@ -0,0 +1,395 @@
|
||||
; Auto-generated. Do not edit!
|
||||
|
||||
|
||||
(cl:in-package shiyan2-srv)
|
||||
|
||||
|
||||
;//! \htmlinclude FFT-request.msg.html
|
||||
|
||||
(cl:defclass <FFT-request> (roslisp-msg-protocol:ros-message)
|
||||
((data_x
|
||||
:reader data_x
|
||||
:initarg :data_x
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0))
|
||||
(data_y
|
||||
:reader data_y
|
||||
:initarg :data_y
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0))
|
||||
(window_size
|
||||
:reader window_size
|
||||
:initarg :window_size
|
||||
:type cl:integer
|
||||
:initform 0))
|
||||
)
|
||||
|
||||
(cl:defclass FFT-request (<FFT-request>)
|
||||
())
|
||||
|
||||
(cl:defmethod cl:initialize-instance :after ((m <FFT-request>) cl:&rest args)
|
||||
(cl:declare (cl:ignorable args))
|
||||
(cl:unless (cl:typep m 'FFT-request)
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name shiyan2-srv:<FFT-request> is deprecated: use shiyan2-srv:FFT-request instead.")))
|
||||
|
||||
(cl:ensure-generic-function 'data_x-val :lambda-list '(m))
|
||||
(cl:defmethod data_x-val ((m <FFT-request>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:data_x-val is deprecated. Use shiyan2-srv:data_x instead.")
|
||||
(data_x m))
|
||||
|
||||
(cl:ensure-generic-function 'data_y-val :lambda-list '(m))
|
||||
(cl:defmethod data_y-val ((m <FFT-request>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:data_y-val is deprecated. Use shiyan2-srv:data_y instead.")
|
||||
(data_y m))
|
||||
|
||||
(cl:ensure-generic-function 'window_size-val :lambda-list '(m))
|
||||
(cl:defmethod window_size-val ((m <FFT-request>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:window_size-val is deprecated. Use shiyan2-srv:window_size instead.")
|
||||
(window_size m))
|
||||
(cl:defmethod roslisp-msg-protocol:serialize ((msg <FFT-request>) ostream)
|
||||
"Serializes a message object of type '<FFT-request>"
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'data_x))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'data_x))
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'data_y))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'data_y))
|
||||
(cl:let* ((signed (cl:slot-value msg 'window_size)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 4294967296) signed)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) unsigned) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) unsigned) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) unsigned) ostream)
|
||||
)
|
||||
)
|
||||
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <FFT-request>) istream)
|
||||
"Deserializes a message object of type '<FFT-request>"
|
||||
(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_x) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'data_x)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
(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_y) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'data_y)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
(cl:let ((unsigned 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) unsigned) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) unsigned) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) unsigned) (cl:read-byte istream))
|
||||
(cl:setf (cl:slot-value msg 'window_size) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
|
||||
msg
|
||||
)
|
||||
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<FFT-request>)))
|
||||
"Returns string type for a service object of type '<FFT-request>"
|
||||
"shiyan2/FFTRequest")
|
||||
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'FFT-request)))
|
||||
"Returns string type for a service object of type 'FFT-request"
|
||||
"shiyan2/FFTRequest")
|
||||
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<FFT-request>)))
|
||||
"Returns md5sum for a message object of type '<FFT-request>"
|
||||
"1c6bb3ace645464ed07f169d1723447f")
|
||||
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'FFT-request)))
|
||||
"Returns md5sum for a message object of type 'FFT-request"
|
||||
"1c6bb3ace645464ed07f169d1723447f")
|
||||
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<FFT-request>)))
|
||||
"Returns full string definition for message of type '<FFT-request>"
|
||||
(cl:format cl:nil "float64[] data_x~%float64[] data_y~%int32 window_size~%~%~%"))
|
||||
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'FFT-request)))
|
||||
"Returns full string definition for message of type 'FFT-request"
|
||||
(cl:format cl:nil "float64[] data_x~%float64[] data_y~%int32 window_size~%~%~%"))
|
||||
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <FFT-request>))
|
||||
(cl:+ 0
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'data_x) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'data_y) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
4
|
||||
))
|
||||
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <FFT-request>))
|
||||
"Converts a ROS message object to a list"
|
||||
(cl:list 'FFT-request
|
||||
(cl:cons ':data_x (data_x msg))
|
||||
(cl:cons ':data_y (data_y msg))
|
||||
(cl:cons ':window_size (window_size msg))
|
||||
))
|
||||
;//! \htmlinclude FFT-response.msg.html
|
||||
|
||||
(cl:defclass <FFT-response> (roslisp-msg-protocol:ros-message)
|
||||
((magnitude_x
|
||||
:reader magnitude_x
|
||||
:initarg :magnitude_x
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0))
|
||||
(magnitude_y
|
||||
:reader magnitude_y
|
||||
:initarg :magnitude_y
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0))
|
||||
(phase_x
|
||||
:reader phase_x
|
||||
:initarg :phase_x
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0))
|
||||
(phase_y
|
||||
:reader phase_y
|
||||
:initarg :phase_y
|
||||
:type (cl:vector cl:float)
|
||||
:initform (cl:make-array 0 :element-type 'cl:float :initial-element 0.0)))
|
||||
)
|
||||
|
||||
(cl:defclass FFT-response (<FFT-response>)
|
||||
())
|
||||
|
||||
(cl:defmethod cl:initialize-instance :after ((m <FFT-response>) cl:&rest args)
|
||||
(cl:declare (cl:ignorable args))
|
||||
(cl:unless (cl:typep m 'FFT-response)
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name shiyan2-srv:<FFT-response> is deprecated: use shiyan2-srv:FFT-response instead.")))
|
||||
|
||||
(cl:ensure-generic-function 'magnitude_x-val :lambda-list '(m))
|
||||
(cl:defmethod magnitude_x-val ((m <FFT-response>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:magnitude_x-val is deprecated. Use shiyan2-srv:magnitude_x instead.")
|
||||
(magnitude_x m))
|
||||
|
||||
(cl:ensure-generic-function 'magnitude_y-val :lambda-list '(m))
|
||||
(cl:defmethod magnitude_y-val ((m <FFT-response>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:magnitude_y-val is deprecated. Use shiyan2-srv:magnitude_y instead.")
|
||||
(magnitude_y m))
|
||||
|
||||
(cl:ensure-generic-function 'phase_x-val :lambda-list '(m))
|
||||
(cl:defmethod phase_x-val ((m <FFT-response>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:phase_x-val is deprecated. Use shiyan2-srv:phase_x instead.")
|
||||
(phase_x m))
|
||||
|
||||
(cl:ensure-generic-function 'phase_y-val :lambda-list '(m))
|
||||
(cl:defmethod phase_y-val ((m <FFT-response>))
|
||||
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader shiyan2-srv:phase_y-val is deprecated. Use shiyan2-srv:phase_y instead.")
|
||||
(phase_y m))
|
||||
(cl:defmethod roslisp-msg-protocol:serialize ((msg <FFT-response>) ostream)
|
||||
"Serializes a message object of type '<FFT-response>"
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'magnitude_x))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'magnitude_x))
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'magnitude_y))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'magnitude_y))
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'phase_x))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'phase_x))
|
||||
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'phase_y))))
|
||||
(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) (cl:let ((bits (roslisp-utils:encode-double-float-bits ele)))
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 32) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 40) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 48) bits) ostream)
|
||||
(cl:write-byte (cl:ldb (cl:byte 8 56) bits) ostream)))
|
||||
(cl:slot-value msg 'phase_y))
|
||||
)
|
||||
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <FFT-response>) istream)
|
||||
"Deserializes a message object of type '<FFT-response>"
|
||||
(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 'magnitude_x) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'magnitude_x)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
(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 'magnitude_y) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'magnitude_y)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
(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 'phase_x) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'phase_x)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
(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 'phase_y) (cl:make-array __ros_arr_len))
|
||||
(cl:let ((vals (cl:slot-value msg 'phase_y)))
|
||||
(cl:dotimes (i __ros_arr_len)
|
||||
(cl:let ((bits 0))
|
||||
(cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 32) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 40) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 48) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:ldb (cl:byte 8 56) bits) (cl:read-byte istream))
|
||||
(cl:setf (cl:aref vals i) (roslisp-utils:decode-double-float-bits bits))))))
|
||||
msg
|
||||
)
|
||||
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<FFT-response>)))
|
||||
"Returns string type for a service object of type '<FFT-response>"
|
||||
"shiyan2/FFTResponse")
|
||||
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'FFT-response)))
|
||||
"Returns string type for a service object of type 'FFT-response"
|
||||
"shiyan2/FFTResponse")
|
||||
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<FFT-response>)))
|
||||
"Returns md5sum for a message object of type '<FFT-response>"
|
||||
"1c6bb3ace645464ed07f169d1723447f")
|
||||
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'FFT-response)))
|
||||
"Returns md5sum for a message object of type 'FFT-response"
|
||||
"1c6bb3ace645464ed07f169d1723447f")
|
||||
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<FFT-response>)))
|
||||
"Returns full string definition for message of type '<FFT-response>"
|
||||
(cl:format cl:nil "float64[] magnitude_x~%float64[] magnitude_y~%float64[] phase_x~%float64[] phase_y~%~%~%"))
|
||||
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'FFT-response)))
|
||||
"Returns full string definition for message of type 'FFT-response"
|
||||
(cl:format cl:nil "float64[] magnitude_x~%float64[] magnitude_y~%float64[] phase_x~%float64[] phase_y~%~%~%"))
|
||||
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <FFT-response>))
|
||||
(cl:+ 0
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'magnitude_x) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'magnitude_y) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'phase_x) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
4 (cl:reduce #'cl:+ (cl:slot-value msg 'phase_y) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 8)))
|
||||
))
|
||||
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <FFT-response>))
|
||||
"Converts a ROS message object to a list"
|
||||
(cl:list 'FFT-response
|
||||
(cl:cons ':magnitude_x (magnitude_x msg))
|
||||
(cl:cons ':magnitude_y (magnitude_y msg))
|
||||
(cl:cons ':phase_x (phase_x msg))
|
||||
(cl:cons ':phase_y (phase_y msg))
|
||||
))
|
||||
(cl:defmethod roslisp-msg-protocol:service-request-type ((msg (cl:eql 'FFT)))
|
||||
'FFT-request)
|
||||
(cl:defmethod roslisp-msg-protocol:service-response-type ((msg (cl:eql 'FFT)))
|
||||
'FFT-response)
|
||||
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'FFT)))
|
||||
"Returns string type for a service object of type '<FFT>"
|
||||
"shiyan2/FFT")
|
||||
@@ -0,0 +1,10 @@
|
||||
(cl:defpackage shiyan2-srv
|
||||
(:use )
|
||||
(:export
|
||||
"FFT"
|
||||
"<FFT-REQUEST>"
|
||||
"FFT-REQUEST"
|
||||
"<FFT-RESPONSE>"
|
||||
"FFT-RESPONSE"
|
||||
))
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
(cl:in-package shiyan2-srv)
|
||||
(cl:export '(DATA_X-VAL
|
||||
DATA_X
|
||||
DATA_Y-VAL
|
||||
DATA_Y
|
||||
WINDOW_SIZE-VAL
|
||||
WINDOW_SIZE
|
||||
MAGNITUDE_X-VAL
|
||||
MAGNITUDE_X
|
||||
MAGNITUDE_Y-VAL
|
||||
MAGNITUDE_Y
|
||||
PHASE_X-VAL
|
||||
PHASE_X
|
||||
PHASE_Y-VAL
|
||||
PHASE_Y
|
||||
))
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
(cl:in-package :asdf)
|
||||
|
||||
(defsystem "shiyan2-srv"
|
||||
:depends-on (:roslisp-msg-protocol :roslisp-utils )
|
||||
:components ((:file "_package")
|
||||
(:file "FFT" :depends-on ("_package_FFT"))
|
||||
(:file "_package_FFT" :depends-on ("_package"))
|
||||
))
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
srv: require('./srv/_index.js')
|
||||
};
|
||||
@@ -0,0 +1,270 @@
|
||||
// Auto-generated. Do not edit!
|
||||
|
||||
// (in-package shiyan2.srv)
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
const _serializer = _ros_msg_utils.Serialize;
|
||||
const _arraySerializer = _serializer.Array;
|
||||
const _deserializer = _ros_msg_utils.Deserialize;
|
||||
const _arrayDeserializer = _deserializer.Array;
|
||||
const _finder = _ros_msg_utils.Find;
|
||||
const _getByteLength = _ros_msg_utils.getByteLength;
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
class FFTRequest {
|
||||
constructor(initObj={}) {
|
||||
if (initObj === null) {
|
||||
// initObj === null is a special case for deserialization where we don't initialize fields
|
||||
this.data_x = null;
|
||||
this.data_y = null;
|
||||
this.window_size = null;
|
||||
}
|
||||
else {
|
||||
if (initObj.hasOwnProperty('data_x')) {
|
||||
this.data_x = initObj.data_x
|
||||
}
|
||||
else {
|
||||
this.data_x = [];
|
||||
}
|
||||
if (initObj.hasOwnProperty('data_y')) {
|
||||
this.data_y = initObj.data_y
|
||||
}
|
||||
else {
|
||||
this.data_y = [];
|
||||
}
|
||||
if (initObj.hasOwnProperty('window_size')) {
|
||||
this.window_size = initObj.window_size
|
||||
}
|
||||
else {
|
||||
this.window_size = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static serialize(obj, buffer, bufferOffset) {
|
||||
// Serializes a message object of type FFTRequest
|
||||
// Serialize message field [data_x]
|
||||
bufferOffset = _arraySerializer.float64(obj.data_x, buffer, bufferOffset, null);
|
||||
// Serialize message field [data_y]
|
||||
bufferOffset = _arraySerializer.float64(obj.data_y, buffer, bufferOffset, null);
|
||||
// Serialize message field [window_size]
|
||||
bufferOffset = _serializer.int32(obj.window_size, buffer, bufferOffset);
|
||||
return bufferOffset;
|
||||
}
|
||||
|
||||
static deserialize(buffer, bufferOffset=[0]) {
|
||||
//deserializes a message object of type FFTRequest
|
||||
let len;
|
||||
let data = new FFTRequest(null);
|
||||
// Deserialize message field [data_x]
|
||||
data.data_x = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
// Deserialize message field [data_y]
|
||||
data.data_y = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
// Deserialize message field [window_size]
|
||||
data.window_size = _deserializer.int32(buffer, bufferOffset);
|
||||
return data;
|
||||
}
|
||||
|
||||
static getMessageSize(object) {
|
||||
let length = 0;
|
||||
length += 8 * object.data_x.length;
|
||||
length += 8 * object.data_y.length;
|
||||
return length + 12;
|
||||
}
|
||||
|
||||
static datatype() {
|
||||
// Returns string type for a service object
|
||||
return 'shiyan2/FFTRequest';
|
||||
}
|
||||
|
||||
static md5sum() {
|
||||
//Returns md5sum for a message object
|
||||
return '733f3e62b6715209e5e8aea0162ecd43';
|
||||
}
|
||||
|
||||
static messageDefinition() {
|
||||
// Returns full string definition for message
|
||||
return `
|
||||
float64[] data_x
|
||||
float64[] data_y
|
||||
int32 window_size
|
||||
|
||||
`;
|
||||
}
|
||||
|
||||
static Resolve(msg) {
|
||||
// deep-construct a valid message object instance of whatever was passed in
|
||||
if (typeof msg !== 'object' || msg === null) {
|
||||
msg = {};
|
||||
}
|
||||
const resolved = new FFTRequest(null);
|
||||
if (msg.data_x !== undefined) {
|
||||
resolved.data_x = msg.data_x;
|
||||
}
|
||||
else {
|
||||
resolved.data_x = []
|
||||
}
|
||||
|
||||
if (msg.data_y !== undefined) {
|
||||
resolved.data_y = msg.data_y;
|
||||
}
|
||||
else {
|
||||
resolved.data_y = []
|
||||
}
|
||||
|
||||
if (msg.window_size !== undefined) {
|
||||
resolved.window_size = msg.window_size;
|
||||
}
|
||||
else {
|
||||
resolved.window_size = 0
|
||||
}
|
||||
|
||||
return resolved;
|
||||
}
|
||||
};
|
||||
|
||||
class FFTResponse {
|
||||
constructor(initObj={}) {
|
||||
if (initObj === null) {
|
||||
// initObj === null is a special case for deserialization where we don't initialize fields
|
||||
this.magnitude_x = null;
|
||||
this.magnitude_y = null;
|
||||
this.phase_x = null;
|
||||
this.phase_y = null;
|
||||
}
|
||||
else {
|
||||
if (initObj.hasOwnProperty('magnitude_x')) {
|
||||
this.magnitude_x = initObj.magnitude_x
|
||||
}
|
||||
else {
|
||||
this.magnitude_x = [];
|
||||
}
|
||||
if (initObj.hasOwnProperty('magnitude_y')) {
|
||||
this.magnitude_y = initObj.magnitude_y
|
||||
}
|
||||
else {
|
||||
this.magnitude_y = [];
|
||||
}
|
||||
if (initObj.hasOwnProperty('phase_x')) {
|
||||
this.phase_x = initObj.phase_x
|
||||
}
|
||||
else {
|
||||
this.phase_x = [];
|
||||
}
|
||||
if (initObj.hasOwnProperty('phase_y')) {
|
||||
this.phase_y = initObj.phase_y
|
||||
}
|
||||
else {
|
||||
this.phase_y = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static serialize(obj, buffer, bufferOffset) {
|
||||
// Serializes a message object of type FFTResponse
|
||||
// Serialize message field [magnitude_x]
|
||||
bufferOffset = _arraySerializer.float64(obj.magnitude_x, buffer, bufferOffset, null);
|
||||
// Serialize message field [magnitude_y]
|
||||
bufferOffset = _arraySerializer.float64(obj.magnitude_y, buffer, bufferOffset, null);
|
||||
// Serialize message field [phase_x]
|
||||
bufferOffset = _arraySerializer.float64(obj.phase_x, buffer, bufferOffset, null);
|
||||
// Serialize message field [phase_y]
|
||||
bufferOffset = _arraySerializer.float64(obj.phase_y, buffer, bufferOffset, null);
|
||||
return bufferOffset;
|
||||
}
|
||||
|
||||
static deserialize(buffer, bufferOffset=[0]) {
|
||||
//deserializes a message object of type FFTResponse
|
||||
let len;
|
||||
let data = new FFTResponse(null);
|
||||
// Deserialize message field [magnitude_x]
|
||||
data.magnitude_x = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
// Deserialize message field [magnitude_y]
|
||||
data.magnitude_y = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
// Deserialize message field [phase_x]
|
||||
data.phase_x = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
// Deserialize message field [phase_y]
|
||||
data.phase_y = _arrayDeserializer.float64(buffer, bufferOffset, null)
|
||||
return data;
|
||||
}
|
||||
|
||||
static getMessageSize(object) {
|
||||
let length = 0;
|
||||
length += 8 * object.magnitude_x.length;
|
||||
length += 8 * object.magnitude_y.length;
|
||||
length += 8 * object.phase_x.length;
|
||||
length += 8 * object.phase_y.length;
|
||||
return length + 16;
|
||||
}
|
||||
|
||||
static datatype() {
|
||||
// Returns string type for a service object
|
||||
return 'shiyan2/FFTResponse';
|
||||
}
|
||||
|
||||
static md5sum() {
|
||||
//Returns md5sum for a message object
|
||||
return '66df876c396498ba109714197bb49c4c';
|
||||
}
|
||||
|
||||
static messageDefinition() {
|
||||
// Returns full string definition for message
|
||||
return `
|
||||
float64[] magnitude_x
|
||||
float64[] magnitude_y
|
||||
float64[] phase_x
|
||||
float64[] phase_y
|
||||
|
||||
`;
|
||||
}
|
||||
|
||||
static Resolve(msg) {
|
||||
// deep-construct a valid message object instance of whatever was passed in
|
||||
if (typeof msg !== 'object' || msg === null) {
|
||||
msg = {};
|
||||
}
|
||||
const resolved = new FFTResponse(null);
|
||||
if (msg.magnitude_x !== undefined) {
|
||||
resolved.magnitude_x = msg.magnitude_x;
|
||||
}
|
||||
else {
|
||||
resolved.magnitude_x = []
|
||||
}
|
||||
|
||||
if (msg.magnitude_y !== undefined) {
|
||||
resolved.magnitude_y = msg.magnitude_y;
|
||||
}
|
||||
else {
|
||||
resolved.magnitude_y = []
|
||||
}
|
||||
|
||||
if (msg.phase_x !== undefined) {
|
||||
resolved.phase_x = msg.phase_x;
|
||||
}
|
||||
else {
|
||||
resolved.phase_x = []
|
||||
}
|
||||
|
||||
if (msg.phase_y !== undefined) {
|
||||
resolved.phase_y = msg.phase_y;
|
||||
}
|
||||
else {
|
||||
resolved.phase_y = []
|
||||
}
|
||||
|
||||
return resolved;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
Request: FFTRequest,
|
||||
Response: FFTResponse,
|
||||
md5sum() { return '1c6bb3ace645464ed07f169d1723447f'; },
|
||||
datatype() { return 'shiyan2/FFT'; }
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
let FFT = require('./FFT.js')
|
||||
|
||||
module.exports = {
|
||||
FFT: FFT,
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
;;
|
||||
;; DO NOT EDIT THIS FILE
|
||||
;;
|
||||
;; THIS FILE IS AUTOMATICALLY GENERATED
|
||||
;; FROM /home/a/shiyan2/src/shiyan2/package.xml (0.0.0)
|
||||
;; USING /opt/ros/noetic/lib/python3/dist-packages/geneus/geneus_main.py /opt/ros/noetic/share/geneus/package.xml (3.0.0)
|
||||
;;
|
||||
(ros::load-ros-package "geometry_msgs")
|
||||
(ros::load-ros-package "roscpp")
|
||||
(ros::load-ros-package "rosgraph_msgs")
|
||||
(ros::load-ros-package "std_msgs")
|
||||
(ros::load-ros-package "visualization_msgs")
|
||||
(ros::load-ros-package "shiyan2")
|
||||
@@ -0,0 +1,240 @@
|
||||
;; 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")
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
set(shiyan2_MESSAGE_FILES "")
|
||||
set(shiyan2_SERVICE_FILES "/home/a/shiyan2/src/shiyan2/srv/FFT.srv")
|
||||
@@ -0,0 +1,4 @@
|
||||
# generated from genmsg/cmake/pkg-msg-paths.cmake.develspace.in
|
||||
|
||||
set(shiyan2_MSG_INCLUDE_DIRS "")
|
||||
set(shiyan2_MSG_DEPENDENCIES std_msgs)
|
||||
@@ -0,0 +1,14 @@
|
||||
# generated from catkin/cmake/template/pkgConfig-version.cmake.in
|
||||
set(PACKAGE_VERSION "0.0.0")
|
||||
|
||||
set(PACKAGE_VERSION_EXACT False)
|
||||
set(PACKAGE_VERSION_COMPATIBLE False)
|
||||
|
||||
if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT True)
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
||||
|
||||
if("${PACKAGE_FIND_VERSION}" VERSION_LESS "${PACKAGE_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
||||
@@ -0,0 +1,225 @@
|
||||
# generated from catkin/cmake/template/pkgConfig.cmake.in
|
||||
|
||||
# append elements to a list and remove existing duplicates from the list
|
||||
# copied from catkin/cmake/list_append_deduplicate.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_list_append_deduplicate listname)
|
||||
if(NOT "${ARGN}" STREQUAL "")
|
||||
if(${listname})
|
||||
list(REMOVE_ITEM ${listname} ${ARGN})
|
||||
endif()
|
||||
list(APPEND ${listname} ${ARGN})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# append elements to a list if they are not already in the list
|
||||
# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_list_append_unique listname)
|
||||
foreach(_item ${ARGN})
|
||||
list(FIND ${listname} ${_item} _index)
|
||||
if(_index EQUAL -1)
|
||||
list(APPEND ${listname} ${_item})
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
# pack a list of libraries with optional build configuration keywords
|
||||
# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_pack_libraries_with_build_configuration VAR)
|
||||
set(${VAR} "")
|
||||
set(_argn ${ARGN})
|
||||
list(LENGTH _argn _count)
|
||||
set(_index 0)
|
||||
while(${_index} LESS ${_count})
|
||||
list(GET _argn ${_index} lib)
|
||||
if("${lib}" MATCHES "^(debug|optimized|general)$")
|
||||
math(EXPR _index "${_index} + 1")
|
||||
if(${_index} EQUAL ${_count})
|
||||
message(FATAL_ERROR "_pack_libraries_with_build_configuration() the list of libraries '${ARGN}' ends with '${lib}' which is a build configuration keyword and must be followed by a library")
|
||||
endif()
|
||||
list(GET _argn ${_index} library)
|
||||
list(APPEND ${VAR} "${lib}${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}${library}")
|
||||
else()
|
||||
list(APPEND ${VAR} "${lib}")
|
||||
endif()
|
||||
math(EXPR _index "${_index} + 1")
|
||||
endwhile()
|
||||
endmacro()
|
||||
|
||||
# unpack a list of libraries with optional build configuration keyword prefixes
|
||||
# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_unpack_libraries_with_build_configuration VAR)
|
||||
set(${VAR} "")
|
||||
foreach(lib ${ARGN})
|
||||
string(REGEX REPLACE "^(debug|optimized|general)${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}(.+)$" "\\1;\\2" lib "${lib}")
|
||||
list(APPEND ${VAR} "${lib}")
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
|
||||
if(shiyan2_CONFIG_INCLUDED)
|
||||
return()
|
||||
endif()
|
||||
set(shiyan2_CONFIG_INCLUDED TRUE)
|
||||
|
||||
# set variables for source/devel/install prefixes
|
||||
if("TRUE" STREQUAL "TRUE")
|
||||
set(shiyan2_SOURCE_PREFIX /home/a/shiyan2/src/shiyan2)
|
||||
set(shiyan2_DEVEL_PREFIX /home/a/shiyan2/devel)
|
||||
set(shiyan2_INSTALL_PREFIX "")
|
||||
set(shiyan2_PREFIX ${shiyan2_DEVEL_PREFIX})
|
||||
else()
|
||||
set(shiyan2_SOURCE_PREFIX "")
|
||||
set(shiyan2_DEVEL_PREFIX "")
|
||||
set(shiyan2_INSTALL_PREFIX /home/a/shiyan2/install)
|
||||
set(shiyan2_PREFIX ${shiyan2_INSTALL_PREFIX})
|
||||
endif()
|
||||
|
||||
# warn when using a deprecated package
|
||||
if(NOT "" STREQUAL "")
|
||||
set(_msg "WARNING: package 'shiyan2' is deprecated")
|
||||
# append custom deprecation text if available
|
||||
if(NOT "" STREQUAL "TRUE")
|
||||
set(_msg "${_msg} ()")
|
||||
endif()
|
||||
message("${_msg}")
|
||||
endif()
|
||||
|
||||
# flag project as catkin-based to distinguish if a find_package()-ed project is a catkin project
|
||||
set(shiyan2_FOUND_CATKIN_PROJECT TRUE)
|
||||
|
||||
if(NOT "/home/a/shiyan2/devel/include " STREQUAL " ")
|
||||
set(shiyan2_INCLUDE_DIRS "")
|
||||
set(_include_dirs "/home/a/shiyan2/devel/include")
|
||||
if(NOT " " STREQUAL " ")
|
||||
set(_report "Check the issue tracker '' and consider creating a ticket if the problem has not been reported yet.")
|
||||
elseif(NOT " " STREQUAL " ")
|
||||
set(_report "Check the website '' for information and consider reporting the problem.")
|
||||
else()
|
||||
set(_report "Report the problem to the maintainer 'Your Name <user@example.com>' and request to fix the problem.")
|
||||
endif()
|
||||
foreach(idir ${_include_dirs})
|
||||
if(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
|
||||
set(include ${idir})
|
||||
elseif("${idir} " STREQUAL "include ")
|
||||
get_filename_component(include "${shiyan2_DIR}/../../../include" ABSOLUTE)
|
||||
if(NOT IS_DIRECTORY ${include})
|
||||
message(FATAL_ERROR "Project 'shiyan2' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. ${_report}")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Project 'shiyan2' specifies '${idir}' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/a/shiyan2/src/shiyan2/${idir}'. ${_report}")
|
||||
endif()
|
||||
_list_append_unique(shiyan2_INCLUDE_DIRS ${include})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set(libraries "")
|
||||
foreach(library ${libraries})
|
||||
# keep build configuration keywords, generator expressions, target names, and absolute libraries as-is
|
||||
if("${library}" MATCHES "^(debug|optimized|general)$")
|
||||
list(APPEND shiyan2_LIBRARIES ${library})
|
||||
elseif(${library} MATCHES "^-l")
|
||||
list(APPEND shiyan2_LIBRARIES ${library})
|
||||
elseif(${library} MATCHES "^-")
|
||||
# This is a linker flag/option (like -pthread)
|
||||
# There's no standard variable for these, so create an interface library to hold it
|
||||
if(NOT shiyan2_NUM_DUMMY_TARGETS)
|
||||
set(shiyan2_NUM_DUMMY_TARGETS 0)
|
||||
endif()
|
||||
# Make sure the target name is unique
|
||||
set(interface_target_name "catkin::shiyan2::wrapped-linker-option${shiyan2_NUM_DUMMY_TARGETS}")
|
||||
while(TARGET "${interface_target_name}")
|
||||
math(EXPR shiyan2_NUM_DUMMY_TARGETS "${shiyan2_NUM_DUMMY_TARGETS}+1")
|
||||
set(interface_target_name "catkin::shiyan2::wrapped-linker-option${shiyan2_NUM_DUMMY_TARGETS}")
|
||||
endwhile()
|
||||
add_library("${interface_target_name}" INTERFACE IMPORTED)
|
||||
if("${CMAKE_VERSION}" VERSION_LESS "3.13.0")
|
||||
set_property(
|
||||
TARGET
|
||||
"${interface_target_name}"
|
||||
APPEND PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES "${library}")
|
||||
else()
|
||||
target_link_options("${interface_target_name}" INTERFACE "${library}")
|
||||
endif()
|
||||
list(APPEND shiyan2_LIBRARIES "${interface_target_name}")
|
||||
elseif(${library} MATCHES "^\\$<")
|
||||
list(APPEND shiyan2_LIBRARIES ${library})
|
||||
elseif(TARGET ${library})
|
||||
list(APPEND shiyan2_LIBRARIES ${library})
|
||||
elseif(IS_ABSOLUTE ${library})
|
||||
list(APPEND shiyan2_LIBRARIES ${library})
|
||||
else()
|
||||
set(lib_path "")
|
||||
set(lib "${library}-NOTFOUND")
|
||||
# since the path where the library is found is returned we have to iterate over the paths manually
|
||||
foreach(path /home/a/shiyan2/devel/lib;/home/a/demo/devel/lib;/opt/ros/noetic/lib)
|
||||
find_library(lib ${library}
|
||||
PATHS ${path}
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
if(lib)
|
||||
set(lib_path ${path})
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
if(lib)
|
||||
_list_append_unique(shiyan2_LIBRARY_DIRS ${lib_path})
|
||||
list(APPEND shiyan2_LIBRARIES ${lib})
|
||||
else()
|
||||
# as a fall back for non-catkin libraries try to search globally
|
||||
find_library(lib ${library})
|
||||
if(NOT lib)
|
||||
message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'. The library is neither a target nor built/installed properly. Did you compile project 'shiyan2'? Did you find_package() it before the subdirectory containing its code is included?")
|
||||
endif()
|
||||
list(APPEND shiyan2_LIBRARIES ${lib})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(shiyan2_EXPORTED_TARGETS "shiyan2_generate_messages_cpp;shiyan2_generate_messages_eus;shiyan2_generate_messages_lisp;shiyan2_generate_messages_nodejs;shiyan2_generate_messages_py")
|
||||
# create dummy targets for exported code generation targets to make life of users easier
|
||||
foreach(t ${shiyan2_EXPORTED_TARGETS})
|
||||
if(NOT TARGET ${t})
|
||||
add_custom_target(${t})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(depends "roscpp;std_msgs;geometry_msgs;visualization_msgs;message_runtime")
|
||||
foreach(depend ${depends})
|
||||
string(REPLACE " " ";" depend_list ${depend})
|
||||
# the package name of the dependency must be kept in a unique variable so that it is not overwritten in recursive calls
|
||||
list(GET depend_list 0 shiyan2_dep)
|
||||
list(LENGTH depend_list count)
|
||||
if(${count} EQUAL 1)
|
||||
# simple dependencies must only be find_package()-ed once
|
||||
if(NOT ${shiyan2_dep}_FOUND)
|
||||
find_package(${shiyan2_dep} REQUIRED NO_MODULE)
|
||||
endif()
|
||||
else()
|
||||
# dependencies with components must be find_package()-ed again
|
||||
list(REMOVE_AT depend_list 0)
|
||||
find_package(${shiyan2_dep} REQUIRED NO_MODULE ${depend_list})
|
||||
endif()
|
||||
_list_append_unique(shiyan2_INCLUDE_DIRS ${${shiyan2_dep}_INCLUDE_DIRS})
|
||||
|
||||
# merge build configuration keywords with library names to correctly deduplicate
|
||||
_pack_libraries_with_build_configuration(shiyan2_LIBRARIES ${shiyan2_LIBRARIES})
|
||||
_pack_libraries_with_build_configuration(_libraries ${${shiyan2_dep}_LIBRARIES})
|
||||
_list_append_deduplicate(shiyan2_LIBRARIES ${_libraries})
|
||||
# undo build configuration keyword merging after deduplication
|
||||
_unpack_libraries_with_build_configuration(shiyan2_LIBRARIES ${shiyan2_LIBRARIES})
|
||||
|
||||
_list_append_unique(shiyan2_LIBRARY_DIRS ${${shiyan2_dep}_LIBRARY_DIRS})
|
||||
_list_append_deduplicate(shiyan2_EXPORTED_TARGETS ${${shiyan2_dep}_EXPORTED_TARGETS})
|
||||
endforeach()
|
||||
|
||||
set(pkg_cfg_extras "shiyan2-msg-extras.cmake")
|
||||
foreach(extra ${pkg_cfg_extras})
|
||||
if(NOT IS_ABSOLUTE ${extra})
|
||||
set(extra ${shiyan2_DIR}/${extra})
|
||||
endif()
|
||||
include(${extra})
|
||||
endforeach()
|
||||
Reference in new issue
Block a user