/usr/share/common-lisp/ros/std_msgs/msg/ColorRGBA.lisp is in cl-std-msgs 0.5.9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | ; Auto-generated. Do not edit!
(cl:in-package std_msgs-msg)
;//! \htmlinclude ColorRGBA.msg.html
(cl:defclass <ColorRGBA> (roslisp-msg-protocol:ros-message)
((r
:reader r
:initarg :r
:type cl:float
:initform 0.0)
(g
:reader g
:initarg :g
:type cl:float
:initform 0.0)
(b
:reader b
:initarg :b
:type cl:float
:initform 0.0)
(a
:reader a
:initarg :a
:type cl:float
:initform 0.0))
)
(cl:defclass ColorRGBA (<ColorRGBA>)
())
(cl:defmethod cl:initialize-instance :after ((m <ColorRGBA>) cl:&rest args)
(cl:declare (cl:ignorable args))
(cl:unless (cl:typep m 'ColorRGBA)
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name std_msgs-msg:<ColorRGBA> is deprecated: use std_msgs-msg:ColorRGBA instead.")))
(cl:ensure-generic-function 'r-val :lambda-list '(m))
(cl:defmethod r-val ((m <ColorRGBA>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader std_msgs-msg:r-val is deprecated. Use std_msgs-msg:r instead.")
(r m))
(cl:ensure-generic-function 'g-val :lambda-list '(m))
(cl:defmethod g-val ((m <ColorRGBA>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader std_msgs-msg:g-val is deprecated. Use std_msgs-msg:g instead.")
(g m))
(cl:ensure-generic-function 'b-val :lambda-list '(m))
(cl:defmethod b-val ((m <ColorRGBA>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader std_msgs-msg:b-val is deprecated. Use std_msgs-msg:b instead.")
(b m))
(cl:ensure-generic-function 'a-val :lambda-list '(m))
(cl:defmethod a-val ((m <ColorRGBA>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader std_msgs-msg:a-val is deprecated. Use std_msgs-msg:a instead.")
(a m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <ColorRGBA>) ostream)
"Serializes a message object of type '<ColorRGBA>"
(cl:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'r))))
(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:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'g))))
(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:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'b))))
(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:let ((bits (roslisp-utils:encode-single-float-bits (cl:slot-value msg 'a))))
(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 <ColorRGBA>) istream)
"Deserializes a message object of type '<ColorRGBA>"
(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 'r) (roslisp-utils:decode-single-float-bits bits)))
(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 'g) (roslisp-utils:decode-single-float-bits bits)))
(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 'b) (roslisp-utils:decode-single-float-bits bits)))
(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 'a) (roslisp-utils:decode-single-float-bits bits)))
msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<ColorRGBA>)))
"Returns string type for a message object of type '<ColorRGBA>"
"std_msgs/ColorRGBA")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'ColorRGBA)))
"Returns string type for a message object of type 'ColorRGBA"
"std_msgs/ColorRGBA")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<ColorRGBA>)))
"Returns md5sum for a message object of type '<ColorRGBA>"
"a29a96539573343b1310c73607334b00")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'ColorRGBA)))
"Returns md5sum for a message object of type 'ColorRGBA"
"a29a96539573343b1310c73607334b00")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<ColorRGBA>)))
"Returns full string definition for message of type '<ColorRGBA>"
(cl:format cl:nil "float32 r~%float32 g~%float32 b~%float32 a~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'ColorRGBA)))
"Returns full string definition for message of type 'ColorRGBA"
(cl:format cl:nil "float32 r~%float32 g~%float32 b~%float32 a~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <ColorRGBA>))
(cl:+ 0
4
4
4
4
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <ColorRGBA>))
"Converts a ROS message object to a list"
(cl:list 'ColorRGBA
(cl:cons ':r (r msg))
(cl:cons ':g (g msg))
(cl:cons ':b (b msg))
(cl:cons ':a (a msg))
))
|