/usr/share/common-lisp/ros/map_msgs/msg/OccupancyGridUpdate.lisp is in cl-map-msgs 1.13.0-5.
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 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | ; Auto-generated. Do not edit!
(cl:in-package map_msgs-msg)
;//! \htmlinclude OccupancyGridUpdate.msg.html
(cl:defclass <OccupancyGridUpdate> (roslisp-msg-protocol:ros-message)
((header
:reader header
:initarg :header
:type std_msgs-msg:Header
:initform (cl:make-instance 'std_msgs-msg:Header))
(x
:reader x
:initarg :x
:type cl:integer
:initform 0)
(y
:reader y
:initarg :y
:type cl:integer
:initform 0)
(width
:reader width
:initarg :width
:type cl:integer
:initform 0)
(height
:reader height
:initarg :height
:type cl:integer
:initform 0)
(data
:reader data
:initarg :data
:type (cl:vector cl:fixnum)
:initform (cl:make-array 0 :element-type 'cl:fixnum :initial-element 0)))
)
(cl:defclass OccupancyGridUpdate (<OccupancyGridUpdate>)
())
(cl:defmethod cl:initialize-instance :after ((m <OccupancyGridUpdate>) cl:&rest args)
(cl:declare (cl:ignorable args))
(cl:unless (cl:typep m 'OccupancyGridUpdate)
(roslisp-msg-protocol:msg-deprecation-warning "using old message class name map_msgs-msg:<OccupancyGridUpdate> is deprecated: use map_msgs-msg:OccupancyGridUpdate instead.")))
(cl:ensure-generic-function 'header-val :lambda-list '(m))
(cl:defmethod header-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:header-val is deprecated. Use map_msgs-msg:header instead.")
(header m))
(cl:ensure-generic-function 'x-val :lambda-list '(m))
(cl:defmethod x-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:x-val is deprecated. Use map_msgs-msg:x instead.")
(x m))
(cl:ensure-generic-function 'y-val :lambda-list '(m))
(cl:defmethod y-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:y-val is deprecated. Use map_msgs-msg:y instead.")
(y m))
(cl:ensure-generic-function 'width-val :lambda-list '(m))
(cl:defmethod width-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:width-val is deprecated. Use map_msgs-msg:width instead.")
(width m))
(cl:ensure-generic-function 'height-val :lambda-list '(m))
(cl:defmethod height-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:height-val is deprecated. Use map_msgs-msg:height instead.")
(height m))
(cl:ensure-generic-function 'data-val :lambda-list '(m))
(cl:defmethod data-val ((m <OccupancyGridUpdate>))
(roslisp-msg-protocol:msg-deprecation-warning "Using old-style slot reader map_msgs-msg:data-val is deprecated. Use map_msgs-msg:data instead.")
(data m))
(cl:defmethod roslisp-msg-protocol:serialize ((msg <OccupancyGridUpdate>) ostream)
"Serializes a message object of type '<OccupancyGridUpdate>"
(roslisp-msg-protocol:serialize (cl:slot-value msg 'header) ostream)
(cl:let* ((signed (cl:slot-value msg 'x)) (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:let* ((signed (cl:slot-value msg 'y)) (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:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'width)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'width)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'width)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'width)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'height)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'height)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'height)) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'height)) ostream)
(cl:let ((__ros_arr_len (cl:length (cl:slot-value msg 'data))))
(cl:write-byte (cl:ldb (cl:byte 8 0) __ros_arr_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 8) __ros_arr_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 16) __ros_arr_len) ostream)
(cl:write-byte (cl:ldb (cl:byte 8 24) __ros_arr_len) ostream))
(cl:map cl:nil #'(cl:lambda (ele) (cl:let* ((signed ele) (unsigned (cl:if (cl:< signed 0) (cl:+ signed 256) signed)))
(cl:write-byte (cl:ldb (cl:byte 8 0) unsigned) ostream)
))
(cl:slot-value msg 'data))
)
(cl:defmethod roslisp-msg-protocol:deserialize ((msg <OccupancyGridUpdate>) istream)
"Deserializes a message object of type '<OccupancyGridUpdate>"
(roslisp-msg-protocol:deserialize (cl:slot-value msg 'header) 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 'x) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
(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 'y) (cl:if (cl:< unsigned 2147483648) unsigned (cl:- unsigned 4294967296))))
(cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'width)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'width)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'width)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'width)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 0) (cl:slot-value msg 'height)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) (cl:slot-value msg 'height)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) (cl:slot-value msg 'height)) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) (cl:slot-value msg 'height)) (cl:read-byte istream))
(cl:let ((__ros_arr_len 0))
(cl:setf (cl:ldb (cl:byte 8 0) __ros_arr_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 8) __ros_arr_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 16) __ros_arr_len) (cl:read-byte istream))
(cl:setf (cl:ldb (cl:byte 8 24) __ros_arr_len) (cl:read-byte istream))
(cl:setf (cl:slot-value msg 'data) (cl:make-array __ros_arr_len))
(cl:let ((vals (cl:slot-value msg 'data)))
(cl:dotimes (i __ros_arr_len)
(cl:let ((unsigned 0))
(cl:setf (cl:ldb (cl:byte 8 0) unsigned) (cl:read-byte istream))
(cl:setf (cl:aref vals i) (cl:if (cl:< unsigned 128) unsigned (cl:- unsigned 256)))))))
msg
)
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql '<OccupancyGridUpdate>)))
"Returns string type for a message object of type '<OccupancyGridUpdate>"
"map_msgs/OccupancyGridUpdate")
(cl:defmethod roslisp-msg-protocol:ros-datatype ((msg (cl:eql 'OccupancyGridUpdate)))
"Returns string type for a message object of type 'OccupancyGridUpdate"
"map_msgs/OccupancyGridUpdate")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql '<OccupancyGridUpdate>)))
"Returns md5sum for a message object of type '<OccupancyGridUpdate>"
"b295be292b335c34718bd939deebe1c9")
(cl:defmethod roslisp-msg-protocol:md5sum ((type (cl:eql 'OccupancyGridUpdate)))
"Returns md5sum for a message object of type 'OccupancyGridUpdate"
"b295be292b335c34718bd939deebe1c9")
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql '<OccupancyGridUpdate>)))
"Returns full string definition for message of type '<OccupancyGridUpdate>"
(cl:format cl:nil "Header header~%int32 x~%int32 y~%uint32 width~%uint32 height~%int8[] data~%~%================================================================================~%MSG: std_msgs/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%# 0: no frame~%# 1: global frame~%string frame_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:message-definition ((type (cl:eql 'OccupancyGridUpdate)))
"Returns full string definition for message of type 'OccupancyGridUpdate"
(cl:format cl:nil "Header header~%int32 x~%int32 y~%uint32 width~%uint32 height~%int8[] data~%~%================================================================================~%MSG: std_msgs/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')~%# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%# 0: no frame~%# 1: global frame~%string frame_id~%~%~%"))
(cl:defmethod roslisp-msg-protocol:serialization-length ((msg <OccupancyGridUpdate>))
(cl:+ 0
(roslisp-msg-protocol:serialization-length (cl:slot-value msg 'header))
4
4
4
4
4 (cl:reduce #'cl:+ (cl:slot-value msg 'data) :key #'(cl:lambda (ele) (cl:declare (cl:ignorable ele)) (cl:+ 1)))
))
(cl:defmethod roslisp-msg-protocol:ros-message-to-list ((msg <OccupancyGridUpdate>))
"Converts a ROS message object to a list"
(cl:list 'OccupancyGridUpdate
(cl:cons ':header (header msg))
(cl:cons ':x (x msg))
(cl:cons ':y (y msg))
(cl:cons ':width (width msg))
(cl:cons ':height (height msg))
(cl:cons ':data (data msg))
))
|