; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude WithHeader.msg.html

(defclass <WithHeader> (ros-message)
  ((header
    :reader header-val
    :initarg :header
    :type roslib-msg:<Header>
    :initform (make-instance 'roslib-msg:<Header>))
   (a
    :reader a-val
    :initarg :a
    :type integer
    :initform 0))
)
(defmethod serialize ((msg <WithHeader>) ostream)
  "Serializes a message object of type '<WithHeader>"
  (serialize (slot-value msg 'header) ostream)
    (write-byte (ldb (byte 8 0) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'a)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'a)) ostream)
)
(defmethod deserialize ((msg <WithHeader>) istream)
  "Deserializes a message object of type '<WithHeader>"
  (deserialize (slot-value msg 'header) istream)
  (setf (ldb (byte 8 0) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'a)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'a)) (read-byte istream))
  msg
)
(defmethod ros-datatype ((msg (eql '<WithHeader>)))
  "Returns string type for a message object of type '<WithHeader>"
  "test_roscpp_serialization/WithHeader")
(defmethod md5sum ((type (eql '<WithHeader>)))
  "Returns md5sum for a message object of type '<WithHeader>"
  "ea0b9ad283b0d4dcc850b560da7b6965")
(defmethod message-definition ((type (eql '<WithHeader>)))
  "Returns full string definition for message of type '<WithHeader>"
  (format nil "Header header~%uint32 a~%~%================================================================================~%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~%~%~%"))
(defmethod serialization-length ((msg <WithHeader>))
  (+ 0
     (serialization-length (slot-value msg 'header))
     4
))
(defmethod ros-message-to-list ((msg <WithHeader>))
  "Converts a ROS message object to a list"
  (list '<WithHeader>
    (cons ':header (header-val msg))
    (cons ':a (a-val msg))
))
