; Auto-generated. Do not edit!


(in-package test_ros-msg)


;//! \htmlinclude TestHeader.msg.html

(defclass <TestHeader> (ros-message)
  ((header
    :reader header-val
    :initarg :header
    :type roslib-msg:<Header>
    :initform (make-instance 'roslib-msg:<Header>))
   (caller_id
    :reader caller_id-val
    :initarg :caller_id
    :type string
    :initform "")
   (orig_caller_id
    :reader orig_caller_id-val
    :initarg :orig_caller_id
    :type string
    :initform "")
   (auto_header
    :reader auto_header-val
    :initarg :auto_header
    :type integer
    :initform 0))
)
(defmethod serialize ((msg <TestHeader>) ostream)
  "Serializes a message object of type '<TestHeader>"
  (serialize (slot-value msg 'header) ostream)
  (let ((__ros_str_len (length (slot-value msg 'caller_id))))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) (slot-value msg 'caller_id))
  (let ((__ros_str_len (length (slot-value msg 'orig_caller_id))))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) (slot-value msg 'orig_caller_id))
    (write-byte (ldb (byte 8 0) (slot-value msg 'auto_header)) ostream)
)
(defmethod deserialize ((msg <TestHeader>) istream)
  "Deserializes a message object of type '<TestHeader>"
  (deserialize (slot-value msg 'header) istream)
  (let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (slot-value msg 'caller_id) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'caller_id) __ros_str_idx) (code-char (read-byte istream)))))
  (let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (slot-value msg 'orig_caller_id) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'orig_caller_id) __ros_str_idx) (code-char (read-byte istream)))))
  (setf (ldb (byte 8 0) (slot-value msg 'auto_header)) (read-byte istream))
  msg
)
(defmethod ros-datatype ((msg (eql '<TestHeader>)))
  "Returns string type for a message object of type '<TestHeader>"
  "test_ros/TestHeader")
(defmethod md5sum ((type (eql '<TestHeader>)))
  "Returns md5sum for a message object of type '<TestHeader>"
  "4b5a00f536da2f756ba6aebcf795a967")
(defmethod message-definition ((type (eql '<TestHeader>)))
  "Returns full string definition for message of type '<TestHeader>"
  (format nil "Header header~%~%# caller_id of most recent node to send this message~%string caller_id~%# caller_id of the original node to send this message~%string orig_caller_id~%~%byte auto_header # autoset header on response~%~%================================================================================~%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 <TestHeader>))
  (+ 0
     (serialization-length (slot-value msg 'header))
     4 (length (slot-value msg 'caller_id))
     4 (length (slot-value msg 'orig_caller_id))
     1
))
(defmethod ros-message-to-list ((msg <TestHeader>))
  "Converts a ROS message object to a list"
  (list '<TestHeader>
    (cons ':header (header-val msg))
    (cons ':caller_id (caller_id-val msg))
    (cons ':orig_caller_id (orig_caller_id-val msg))
    (cons ':auto_header (auto_header-val msg))
))
