; Auto-generated. Do not edit!


(in-package test_roscpp_serialization_perf-msg)


;//! \htmlinclude PointCloud.msg.html

(defclass <PointCloud> (ros-message)
  ((header
    :reader header-val
    :initarg :header
    :type roslib-msg:<Header>
    :initform (make-instance 'roslib-msg:<Header>))
   (pts
    :reader pts-val
    :initarg :pts
    :type (vector <Point32>)
   :initform (make-array 0 :element-type '<Point32> :initial-element (make-instance '<Point32>)))
   (chan
    :reader chan-val
    :initarg :chan
    :type (vector <ChannelFloat32>)
   :initform (make-array 0 :element-type '<ChannelFloat32> :initial-element (make-instance '<ChannelFloat32>))))
)
(defmethod serialize ((msg <PointCloud>) ostream)
  "Serializes a message object of type '<PointCloud>"
  (serialize (slot-value msg 'header) ostream)
  (let ((__ros_arr_len (length (slot-value msg 'pts))))
    (write-byte (ldb (byte 8 0) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_arr_len) ostream))
  (map nil #'(lambda (ele) (serialize ele ostream))
    (slot-value msg 'pts))
  (let ((__ros_arr_len (length (slot-value msg 'chan))))
    (write-byte (ldb (byte 8 0) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_arr_len) ostream))
  (map nil #'(lambda (ele) (serialize ele ostream))
    (slot-value msg 'chan))
)
(defmethod deserialize ((msg <PointCloud>) istream)
  "Deserializes a message object of type '<PointCloud>"
  (deserialize (slot-value msg 'header) istream)
  (let ((__ros_arr_len 0))
    (setf (ldb (byte 8 0) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_arr_len) (read-byte istream))
    (setf (slot-value msg 'pts) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'pts)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance '<Point32>))
(deserialize (aref vals i) istream))))
  (let ((__ros_arr_len 0))
    (setf (ldb (byte 8 0) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_arr_len) (read-byte istream))
    (setf (slot-value msg 'chan) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'chan)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance '<ChannelFloat32>))
(deserialize (aref vals i) istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<PointCloud>)))
  "Returns string type for a message object of type '<PointCloud>"
  "test_roscpp_serialization_perf/PointCloud")
(defmethod md5sum ((type (eql '<PointCloud>)))
  "Returns md5sum for a message object of type '<PointCloud>"
  "c47b5cedd2b77d241b27547ed7624840")
(defmethod message-definition ((type (eql '<PointCloud>)))
  "Returns full string definition for message of type '<PointCloud>"
  (format nil "Header header~%Point32[] pts~%ChannelFloat32[] chan~%~%================================================================================~%MSG: roslib/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.secs: seconds (stamp_secs) since epoch~%# * stamp.nsecs: nanoseconds since stamp_secs~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%# 0: no frame~%# 1: global frame~%string frame_id~%~%================================================================================~%MSG: test_roscpp_serialization_perf/Point32~%float32 x~%float32 y~%float32 z~%================================================================================~%MSG: test_roscpp_serialization_perf/ChannelFloat32~%string name~%float32[] vals~%~%"))
(defmethod serialization-length ((msg <PointCloud>))
  (+ 0
     (serialization-length (slot-value msg 'header))
     4 (reduce #'+ (slot-value msg 'pts) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     4 (reduce #'+ (slot-value msg 'chan) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <PointCloud>))
  "Converts a ROS message object to a list"
  (list '<PointCloud>
    (cons ':header (header-val msg))
    (cons ':pts (pts-val msg))
    (cons ':chan (chan-val msg))
))
