; Auto-generated. Do not edit!


(in-package test_rosrecord-msg)


;//! \htmlinclude TestMsgMove.msg.html

(defclass <TestMsgMove> (ros-message)
  ((field1
    :reader field1-val
    :initarg :field1
    :type string
    :initform "")
   (field2
    :reader field2-val
    :initarg :field2
    :type integer
    :initform 0)
   (field3
    :reader field3-val
    :initarg :field3
    :type test_crosspackage-msg:<TestSubMsgRename>
    :initform (make-instance 'test_crosspackage-msg:<TestSubMsgRename>)))
)
(defmethod serialize ((msg <TestMsgMove>) ostream)
  "Serializes a message object of type '<TestMsgMove>"
  (let ((__ros_str_len (length (slot-value msg 'field1))))
    (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 'field1))
    (write-byte (ldb (byte 8 0) (slot-value msg 'field2)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'field2)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'field2)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'field2)) ostream)
  (serialize (slot-value msg 'field3) ostream)
)
(defmethod deserialize ((msg <TestMsgMove>) istream)
  "Deserializes a message object of type '<TestMsgMove>"
  (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 'field1) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'field1) __ros_str_idx) (code-char (read-byte istream)))))
  (setf (ldb (byte 8 0) (slot-value msg 'field2)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'field2)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'field2)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'field2)) (read-byte istream))
  (deserialize (slot-value msg 'field3) istream)
  msg
)
(defmethod ros-datatype ((msg (eql '<TestMsgMove>)))
  "Returns string type for a message object of type '<TestMsgMove>"
  "test_rosrecord/TestMsgMove")
(defmethod md5sum ((type (eql '<TestMsgMove>)))
  "Returns md5sum for a message object of type '<TestMsgMove>"
  "796739ec6543fa03d2eb39f3aacaa2c0")
(defmethod message-definition ((type (eql '<TestMsgMove>)))
  "Returns full string definition for message of type '<TestMsgMove>"
  (format nil "string field1~%int32 field2~%test_crosspackage/TestSubMsgRename field3~%================================================================================~%MSG: test_crosspackage/TestSubMsgRename~%string field1~%int32 field2~%~%~%"))
(defmethod serialization-length ((msg <TestMsgMove>))
  (+ 0
     4 (length (slot-value msg 'field1))
     4
     (serialization-length (slot-value msg 'field3))
))
(defmethod ros-message-to-list ((msg <TestMsgMove>))
  "Converts a ROS message object to a list"
  (list '<TestMsgMove>
    (cons ':field1 (field1-val msg))
    (cons ':field2 (field2-val msg))
    (cons ':field3 (field3-val msg))
))
