; Auto-generated. Do not edit!


(cl:in-package test_crosspackage-msg)


;//! \htmlinclude TestMsgRename.msg.html

(cl:defclass <TestMsgRename> (roslisp-msg-protocol:ros-message)
  ((field1
    :reader field1
    :initarg :field1
    :type cl:string
    :initform "")
   (field2
    :reader field2
    :initarg :field2
    :type cl:integer
    :initform 0)
   (field3
    :reader field3
    :initarg :field3
    :type test_crosspackage-msg:TestSubMsgRename
    :initform (cl:make-instance 'test_crosspackage-msg:TestSubMsgRename)))
)

(cl:defclass TestMsgRename (<TestMsgRename>)
  ())

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

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

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

(cl:ensure-generic-function 'field3-val :lambda-list '(m))
(cl:defmethod field3-val ((m <TestMsgRename>))
  (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader test_crosspackage-msg:field3-val is deprecated.  Use test_crosspackage-msg:field3 instead.")
  (field3 m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <TestMsgRename>) ostream)
  "Serializes a message object of type '<TestMsgRename>"
  (cl:let ((__ros_str_len (cl:length (cl:slot-value msg 'field1))))
    (cl:write-byte (cl:ldb (cl:byte 8 0) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) __ros_str_len) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) __ros_str_len) ostream))
  (cl:map cl:nil #'(cl:lambda (c) (cl:write-byte (cl:char-code c) ostream)) (cl:slot-value msg 'field1))
  (cl:let* ((signed (cl:slot-value msg 'field2)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 4294967296) signed)))
    (cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 8) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 16) unsigned) ostream)
    (cl:write-byte (cl:ldb (cl:byte 8 24) unsigned) ostream)
    )
  (roslisp-msg-protocol:serialize (cl:slot-value msg 'field3) ostream)
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <TestMsgRename>) istream)
  "Deserializes a message object of type '<TestMsgRename>"
    (cl:let ((__ros_str_len 0))
      (cl:setf (cl:ldb (cl:byte 8 0) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) __ros_str_len) (cl:read-byte istream))
      (cl:setf (cl:slot-value msg 'field1) (cl:make-string __ros_str_len))
      (cl:dotimes (__ros_str_idx __ros_str_len msg)
        (cl:setf (cl:char (cl:slot-value msg 'field1) __ros_str_idx) (cl:code-char (cl:read-byte istream)))))
    (cl:let ((unsigned 0))
      (cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 8) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 16) unsigned) (cl:read-byte istream))
      (cl:setf (cl:ldb (cl:byte 8 24) unsigned) (cl:read-byte istream))
      (cl:setf (cl:slot-value msg 'field2) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
  (roslisp-msg-protocol:deserialize (cl:slot-value msg 'field3) istream)
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<TestMsgRename>)))
  "Returns string type for a message object of type '<TestMsgRename>"
  "test_crosspackage/TestMsgRename")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'TestMsgRename)))
  "Returns string type for a message object of type 'TestMsgRename"
  "test_crosspackage/TestMsgRename")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<TestMsgRename>)))
  "Returns md5sum for a message object of type '<TestMsgRename>"
  "796739ec6543fa03d2eb39f3aacaa2c0")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'TestMsgRename)))
  "Returns md5sum for a message object of type 'TestMsgRename"
  "796739ec6543fa03d2eb39f3aacaa2c0")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<TestMsgRename>)))
  "Returns full string definition for message of type '<TestMsgRename>"
  (cl:format cl:nil "string field1~%int32 field2~%TestSubMsgRename field3~%================================================================================~%MSG: test_crosspackage/TestSubMsgRename~%string field1~%int32 field2~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'TestMsgRename)))
  "Returns full string definition for message of type 'TestMsgRename"
  (cl:format cl:nil "string field1~%int32 field2~%TestSubMsgRename field3~%================================================================================~%MSG: test_crosspackage/TestSubMsgRename~%string field1~%int32 field2~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <TestMsgRename>))
  (cl:+ 0
     4 (cl:length (cl:slot-value msg 'field1))
     4
     (roslisp-msg-protocol:serialization-length (cl:slot-value msg 'field3))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <TestMsgRename>))
  "Converts a ROS message object to a list"
  (cl:list 'TestMsgRename
    (cl:cons ':field1 (field1 msg))
    (cl:cons ':field2 (field2 msg))
    (cl:cons ':field3 (field3 msg))
))
