; Auto-generated. Do not edit!


(cl:in-package velodyne_msgs-msg)


;//! \htmlinclude VelodyneScan.msg.html

(cl:defclass <VelodyneScan> (roslisp-msg-protocol:ros-message)
  ((header
    :reader header
    :initarg :header
    :type std_msgs-msg:Header
    :initform (cl:make-instance 'std_msgs-msg:Header))
   (packets
    :reader packets
    :initarg :packets
    :type (cl:vector velodyne_msgs-msg:VelodynePacket)
   :initform (cl:make-array 0 :element-type 'velodyne_msgs-msg:VelodynePacket :initial-element (cl:make-instance 'velodyne_msgs-msg:VelodynePacket))))
)

(cl:defclass VelodyneScan (<VelodyneScan>)
  ())

(cl:defmethod cl:initialize-instance :after ((m <VelodyneScan>) cl:&rest args)
  (cl:declare (cl:ignorable args))
  (cl:unless (cl:typep m 'VelodyneScan)
    (roslisp-msg-protocol:msg-deprecation-warning "using old message class name velodyne_msgs-msg:<VelodyneScan> is deprecated: use velodyne_msgs-msg:VelodyneScan instead.")))

(cl:ensure-generic-function 'header-val :lambda-list '(m))
(cl:defmethod header-val ((m <VelodyneScan>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader velodyne_msgs-msg:header-val is deprecated.  Use velodyne_msgs-msg:header instead.")
  (header m))

(cl:ensure-generic-function 'packets-val :lambda-list '(m))
(cl:defmethod packets-val ((m <VelodyneScan>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader velodyne_msgs-msg:packets-val is deprecated.  Use velodyne_msgs-msg:packets instead.")
  (packets m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <VelodyneScan>) ostream)
  "Serializes a message object of type '<VelodyneScan>"
  (roslisp-msg-protocol:serialize (cl:slot-value msg 'header) ostream)
  (cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'packets))))
    (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) (roslisp-msg-protocol:serialize ele ostream))
   (cl:slot-value msg 'packets))
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <VelodyneScan>) istream)
  "Deserializes a message object of type '<VelodyneScan>"
  (roslisp-msg-protocol:deserialize (cl:slot-value msg 'header) istream)
  (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 'packets) (cl:make-array __ros_arr_len))
  (cl:let ((vals (cl:slot-value msg 'packets)))
    (cl:dotimes (i __ros_arr_len)
    (cl:setf (cl:aref vals i) (cl:make-instance 'velodyne_msgs-msg:VelodynePacket))
  (roslisp-msg-protocol:deserialize (cl:aref vals i) istream))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<VelodyneScan>)))
  "Returns string type for a message object of type '<VelodyneScan>"
  "velodyne_msgs/VelodyneScan")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'VelodyneScan)))
  "Returns string type for a message object of type 'VelodyneScan"
  "velodyne_msgs/VelodyneScan")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<VelodyneScan>)))
  "Returns md5sum for a message object of type '<VelodyneScan>"
  "50804fc9533a0e579e6322c04ae70566")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'VelodyneScan)))
  "Returns md5sum for a message object of type 'VelodyneScan"
  "50804fc9533a0e579e6322c04ae70566")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<VelodyneScan>)))
  "Returns full string definition for message of type '<VelodyneScan>"
  (cl:format cl:nil "# Velodyne LIDAR scan packets.~%~%Header           header         # standard ROS message header~%VelodynePacket[] packets        # vector of raw packets~%~%================================================================================~%MSG: std_msgs/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.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%string frame_id~%~%================================================================================~%MSG: velodyne_msgs/VelodynePacket~%# Raw Velodyne LIDAR packet.~%~%time stamp              # packet timestamp~%uint8[1206] data        # packet contents~%~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'VelodyneScan)))
  "Returns full string definition for message of type 'VelodyneScan"
  (cl:format cl:nil "# Velodyne LIDAR scan packets.~%~%Header           header         # standard ROS message header~%VelodynePacket[] packets        # vector of raw packets~%~%================================================================================~%MSG: std_msgs/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.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%string frame_id~%~%================================================================================~%MSG: velodyne_msgs/VelodynePacket~%# Raw Velodyne LIDAR packet.~%~%time stamp              # packet timestamp~%uint8[1206] data        # packet contents~%~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <VelodyneScan>))
  (cl:+ 0
     (roslisp-msg-protocol:serialization-length (cl:slot-value msg 'header))
     4 (cl:reduce #'cl:+ (cl:slot-value msg 'packets) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ (roslisp-msg-protocol:serialization-length ele))))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <VelodyneScan>))
  "Converts a ROS message object to a list"
  (cl:list 'VelodyneScan
    (cl:cons ':header (header msg))
    (cl:cons ':packets (packets msg))
))
