; Auto-generated. Do not edit! (cl:in-package ur_msgs-srv) ;//! \htmlinclude SetIO-request.msg.html (cl:defclass (roslisp-msg-protocol:ros-message) ((fun :reader fun :initarg :fun :type cl:fixnum :initform 0) (pin :reader pin :initarg :pin :type cl:fixnum :initform 0) (state :reader state :initarg :state :type cl:float :initform 0.0)) ) (cl:defclass SetIO-request () ()) (cl:defmethod cl:initialize-instance :after ((m ) cl:&rest args) (cl:declare (cl:ignorable args)) (cl:unless (cl:typep m 'SetIO-request) (roslisp-msg-protocol:msg-deprecation-warning "using old message class name ur_msgs-srv: is deprecated: use ur_msgs-srv:SetIO-request instead."))) (cl:ensure-generic-function 'fun-val :lambda-list '(m)) (cl:defmethod fun-val ((m )) (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader ur_msgs-srv:fun-val is deprecated. Use ur_msgs-srv:fun instead.") (fun m)) (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-srv:pin-val is deprecated. Use ur_msgs-srv:pin instead.") (pin 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-srv:state-val is deprecated. Use ur_msgs-srv:state instead.") (state m)) (cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql '))) "Constants for message type '" '((:FUN_SET_DIGITAL_OUT . 1) (:FUN_SET_FLAG . 2) (:FUN_SET_ANALOG_OUT . 3) (:FUN_SET_TOOL_VOLTAGE . 4) (:STATE_OFF . 0) (:STATE_ON . 1) (:STATE_TOOL_VOLTAGE_0V . 0) (:STATE_TOOL_VOLTAGE_12V . 12) (:STATE_TOOL_VOLTAGE_24V . 24)) ) (cl:defmethod roslisp-msg-protocol:symbol-codes ((msg-type (cl:eql 'SetIO-request))) "Constants for message type 'SetIO-request" '((:FUN_SET_DIGITAL_OUT . 1) (:FUN_SET_FLAG . 2) (:FUN_SET_ANALOG_OUT . 3) (:FUN_SET_TOOL_VOLTAGE . 4) (:STATE_OFF . 0) (:STATE_ON . 1) (:STATE_TOOL_VOLTAGE_0V . 0) (:STATE_TOOL_VOLTAGE_12V . 12) (:STATE_TOOL_VOLTAGE_24V . 24)) ) (cl:defmethod roslisp-msg-protocol:serialize ((msg ) ostream) "Serializes a message object of type '" (cl:let* ((signed (cl:slot-value msg 'fun)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 256) signed))) (cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream) ) (cl:let* ((signed (cl:slot-value msg 'pin)) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 256) signed))) (cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) 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:let ((unsigned 0)) (cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream)) (cl:setf (cl:slot-value msg 'fun) (cl:if (cl:< unsigned 128) unsigned (cl:- unsigned 256)))) (cl:let ((unsigned 0)) (cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream)) (cl:setf (cl:slot-value msg 'pin) (cl:if (cl:< unsigned 128) unsigned (cl:- unsigned 256)))) (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 service object of type '" "ur_msgs/SetIORequest") (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'SetIO-request))) "Returns string type for a service object of type 'SetIO-request" "ur_msgs/SetIORequest") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '))) "Returns md5sum for a message object of type '" "e1b580ccf43a938f2efbbb98bbe3e277") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'SetIO-request))) "Returns md5sum for a message object of type 'SetIO-request" "e1b580ccf43a938f2efbbb98bbe3e277") (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '))) "Returns full string definition for message of type '" (cl:format cl:nil "~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%int8 FUN_SET_DIGITAL_OUT = 1~%int8 FUN_SET_FLAG = 2~%int8 FUN_SET_ANALOG_OUT = 3~%int8 FUN_SET_TOOL_VOLTAGE = 4~%~%~%int8 STATE_OFF = 0~%int8 STATE_ON = 1~%~%~%int8 STATE_TOOL_VOLTAGE_0V = 0~%int8 STATE_TOOL_VOLTAGE_12V = 12~%int8 STATE_TOOL_VOLTAGE_24V = 24~%~%~%int8 fun~%int8 pin~%float32 state~%~%~%")) (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'SetIO-request))) "Returns full string definition for message of type 'SetIO-request" (cl:format cl:nil "~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%int8 FUN_SET_DIGITAL_OUT = 1~%int8 FUN_SET_FLAG = 2~%int8 FUN_SET_ANALOG_OUT = 3~%int8 FUN_SET_TOOL_VOLTAGE = 4~%~%~%int8 STATE_OFF = 0~%int8 STATE_ON = 1~%~%~%int8 STATE_TOOL_VOLTAGE_0V = 0~%int8 STATE_TOOL_VOLTAGE_12V = 12~%int8 STATE_TOOL_VOLTAGE_24V = 24~%~%~%int8 fun~%int8 pin~%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 'SetIO-request (cl:cons ':fun (fun msg)) (cl:cons ':pin (pin msg)) (cl:cons ':state (state msg)) )) ;//! \htmlinclude SetIO-response.msg.html (cl:defclass (roslisp-msg-protocol:ros-message) ((success :reader success :initarg :success :type cl:boolean :initform cl:nil)) ) (cl:defclass SetIO-response () ()) (cl:defmethod cl:initialize-instance :after ((m ) cl:&rest args) (cl:declare (cl:ignorable args)) (cl:unless (cl:typep m 'SetIO-response) (roslisp-msg-protocol:msg-deprecation-warning "using old message class name ur_msgs-srv: is deprecated: use ur_msgs-srv:SetIO-response instead."))) (cl:ensure-generic-function 'success-val :lambda-list '(m)) (cl:defmethod success-val ((m )) (roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader ur_msgs-srv:success-val is deprecated. Use ur_msgs-srv:success instead.") (success m)) (cl:defmethod roslisp-msg-protocol:serialize ((msg ) ostream) "Serializes a message object of type '" (cl:write-byte (cl:ldb (cl:byte 8 0) (cl:if (cl:slot-value msg 'success) 1 0)) ostream) ) (cl:defmethod roslisp-msg-protocol:deserialize ((msg ) istream) "Deserializes a message object of type '" (cl:setf (cl:slot-value msg 'success) (cl:not (cl:zerop (cl:read-byte istream)))) msg ) (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '))) "Returns string type for a service object of type '" "ur_msgs/SetIOResponse") (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'SetIO-response))) "Returns string type for a service object of type 'SetIO-response" "ur_msgs/SetIOResponse") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '))) "Returns md5sum for a message object of type '" "e1b580ccf43a938f2efbbb98bbe3e277") (cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'SetIO-response))) "Returns md5sum for a message object of type 'SetIO-response" "e1b580ccf43a938f2efbbb98bbe3e277") (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '))) "Returns full string definition for message of type '" (cl:format cl:nil "bool success~%~%~%~%")) (cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'SetIO-response))) "Returns full string definition for message of type 'SetIO-response" (cl:format cl:nil "bool success~%~%~%~%")) (cl:defmethod roslisp-msg-protocol:serialization-length ((msg )) (cl:+ 0 1 )) (cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg )) "Converts a ROS message object to a list" (cl:list 'SetIO-response (cl:cons ':success (success msg)) )) (cl:defmethod roslisp-msg-protocol:service-request-type ((msg (cl:eql 'SetIO))) 'SetIO-request) (cl:defmethod roslisp-msg-protocol:service-response-type ((msg (cl:eql 'SetIO))) 'SetIO-response) (cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'SetIO))) "Returns string type for a service object of type '" "ur_msgs/SetIO")