; Auto-generated. Do not edit!


(cl:in-package test_crosspackage-msg)


;//! \htmlinclude TestSubMsgRename.msg.html

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

(cl:defclass TestSubMsgRename (<TestSubMsgRename>)
  ())

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

(cl:ensure-generic-function 'field1-val :lambda-list '(m))
(cl:defmethod field1-val ((m <TestSubMsgRename>))
  (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 <TestSubMsgRename>))
  (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:defmethod roslisp-msg-protocol:serialize ((msg <TestSubMsgRename>) ostream)
  "Serializes a message object of type '<TestSubMsgRename>"
  (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)
    )
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <TestSubMsgRename>) istream)
  "Deserializes a message object of type '<TestSubMsgRename>"
    (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))))
  msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<TestSubMsgRename>)))
  "Returns string type for a message object of type '<TestSubMsgRename>"
  "test_crosspackage/TestSubMsgRename")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'TestSubMsgRename)))
  "Returns string type for a message object of type 'TestSubMsgRename"
  "test_crosspackage/TestSubMsgRename")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<TestSubMsgRename>)))
  "Returns md5sum for a message object of type '<TestSubMsgRename>"
  "cb68fa50979d62961325d38238e6074d")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'TestSubMsgRename)))
  "Returns md5sum for a message object of type 'TestSubMsgRename"
  "cb68fa50979d62961325d38238e6074d")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<TestSubMsgRename>)))
  "Returns full string definition for message of type '<TestSubMsgRename>"
  (cl:format cl:nil "string field1~%int32 field2~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'TestSubMsgRename)))
  "Returns full string definition for message of type 'TestSubMsgRename"
  (cl:format cl:nil "string field1~%int32 field2~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <TestSubMsgRename>))
  (cl:+ 0
     4 (cl:length (cl:slot-value msg 'field1))
     4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <TestSubMsgRename>))
  "Converts a ROS message object to a list"
  (cl:list 'TestSubMsgRename
    (cl:cons ':field1 (field1 msg))
    (cl:cons ':field2 (field2 msg))
))
