; Auto-generated. Do not edit! (cl:in-package ur_msgs-msg) ;//! \htmlinclude Analog.msg.html (cl:defclass (roslisp-msg-protocol:ros-message) ((pin :reader pin :initarg :pin :type cl:fixnum :initform 0) (domain :reader domain :initarg :domain :type cl:fixnum :initform 0) (state :reader state :initarg :state :type cl:float :initform 0.0)) ) (cl:defclass Analog () ()) (cl:defmethod cl:initialize-instance :after ((m ) cl:&rest args) (cl:declare (cl:ignorable args)) (cl:unless (cl:typep m 'Analog) (roslisp-msg-protocol:msg-deprecation-warning "using old message class name ur_msgs-msg: is deprecated: use ur_msgs-msg:Analog instead."))) (cl:ensure-generic-function 'pin-val :lambda-list '(m)) (cl:defmethod pin-val ((m )) (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader ur_msgs-msg:pin-val is deprecated. Use ur_msgs-msg:pin instead.") (pin m)) (cl:ensure-generic-function 'domain-val :lambda-list '(m)) (cl:defmethod domain-val ((m )) (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader ur_msgs-msg:domain-val is deprecated. Use ur_msgs-msg:domain instead.") (domain m)) (cl:ensure-generic-function 'state-val :lambda-list '(m)) (cl:defmethod state-val ((m )) (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader ur_msgs-msg:state-val is deprecated. Use ur_msgs-msg:state instead.") (state m)) (cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '))) "Constants for message type '" '((:VOLTAGE . 0) (:CURRENT . 1)) ) (cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'Analog))) "Constants for message type 'Analog" '((:VOLTAGE . 0) (:CURRENT . 1)) ) (cl:defmethod roslisp-msg-protocol:serialize ((msg ) ostream) "Serializes a message object of type '" (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'pin)) ostream) (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'domain)) ostream) (cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'state)))) (cl:write-byte (cl:ldb (cl:byte 8 0) bits) ostream) (cl:write-byte (cl:ldb (cl:byte 8 8) bits) ostream) (cl:write-byte (cl:ldb (cl:byte 8 16) bits) ostream) (cl:write-byte (cl:ldb (cl:byte 8 24) bits) ostream)) ) (cl:defmethod roslisp-msg-protocol:deserialize ((msg ) istream) "Deserializes a message object of type '" (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'pin)) (cl:read-byte istream)) (cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'domain)) (cl:read-byte istream)) (cl:let ((bits 0)) (cl:setf (cl:ldb (cl:byte 8 0) bits) (cl:read-byte istream)) (cl:setf (cl:ldb (cl:byte 8 8) bits) (cl:read-byte istream)) (cl:setf (cl:ldb (cl:byte 8 16) bits) (cl:read-byte istream)) (cl:setf (cl:ldb (cl:byte 8 24) bits) (cl:read-byte istream)) (cl:setf (cl:slot-value msg 'state) (roslisp-utils:decode-single-float-bits bits))) msg ) (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '))) "Returns string type for a message object of type '" "ur_msgs/Analog") (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'Analog))) "Returns string type for a message object of type 'Analog" "ur_msgs/Analog") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '))) "Returns md5sum for a message object of type '" "f41c08a810adf63713aec88712cd553d") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'Analog))) "Returns md5sum for a message object of type 'Analog" "f41c08a810adf63713aec88712cd553d") (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '))) "Returns full string definition for message of type '" (cl:format cl:nil "uint8 VOLTAGE=0~%uint8 CURRENT=1~%~%uint8 pin~%uint8 domain # can be VOLTAGE or CURRENT~%float32 state~%~%~%")) (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'Analog))) "Returns full string definition for message of type 'Analog" (cl:format cl:nil "uint8 VOLTAGE=0~%uint8 CURRENT=1~%~%uint8 pin~%uint8 domain # can be VOLTAGE or CURRENT~%float32 state~%~%~%")) (cl:defmethod roslisp-msg-protocol:serialization-length ((msg )) (cl:+ 0 1 1 4 )) (cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg )) "Converts a ROS message object to a list" (cl:list 'Analog (cl:cons ':pin (pin msg)) (cl:cons ':domain (domain msg)) (cl:cons ':state (state msg)) ))