; Auto-generated. Do not edit!


(in-package nxt_msgs-msg)


;//! \htmlinclude JointCommand.msg.html

(defclass <JointCommand> (ros-message)
  ((name
    :reader name-val
    :initarg :name
    :type string
    :initform "")
   (effort
    :reader effort-val
    :initarg :effort
    :type float
    :initform 0.0))
)
(defmethod serialize ((msg <JointCommand>) ostream)
  "Serializes a message object of type '<JointCommand>"
  (let ((__ros_str_len (length (slot-value msg 'name))))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) (slot-value msg 'name))
  (let ((bits (roslisp-utils:encode-double-float-bits (slot-value msg 'effort))))
    (write-byte (ldb (byte 8 0) bits) ostream)
    (write-byte (ldb (byte 8 8) bits) ostream)
    (write-byte (ldb (byte 8 16) bits) ostream)
    (write-byte (ldb (byte 8 24) bits) ostream)
    (write-byte (ldb (byte 8 32) bits) ostream)
    (write-byte (ldb (byte 8 40) bits) ostream)
    (write-byte (ldb (byte 8 48) bits) ostream)
    (write-byte (ldb (byte 8 56) bits) ostream))
)
(defmethod deserialize ((msg <JointCommand>) istream)
  "Deserializes a message object of type '<JointCommand>"
  (let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (slot-value msg 'name) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'name) __ros_str_idx) (code-char (read-byte istream)))))
  (let ((bits 0))
    (setf (ldb (byte 8 0) bits) (read-byte istream))
    (setf (ldb (byte 8 8) bits) (read-byte istream))
    (setf (ldb (byte 8 16) bits) (read-byte istream))
    (setf (ldb (byte 8 24) bits) (read-byte istream))
    (setf (ldb (byte 8 32) bits) (read-byte istream))
    (setf (ldb (byte 8 40) bits) (read-byte istream))
    (setf (ldb (byte 8 48) bits) (read-byte istream))
    (setf (ldb (byte 8 56) bits) (read-byte istream))
    (setf (slot-value msg 'effort) (roslisp-utils:decode-double-float-bits bits)))
  msg
)
(defmethod ros-datatype ((msg (eql '<JointCommand>)))
  "Returns string type for a message object of type '<JointCommand>"
  "nxt_msgs/JointCommand")
(defmethod md5sum ((type (eql '<JointCommand>)))
  "Returns md5sum for a message object of type '<JointCommand>"
  "9de38d5a93df00cd9489becfca3e874a")
(defmethod message-definition ((type (eql '<JointCommand>)))
  "Returns full string definition for message of type '<JointCommand>"
  (format nil "string name~%float64 effort~%~%~%"))
(defmethod serialization-length ((msg <JointCommand>))
  (+ 0
     4 (length (slot-value msg 'name))
     8
))
(defmethod ros-message-to-list ((msg <JointCommand>))
  "Converts a ROS message object to a list"
  (list '<JointCommand>
    (cons ':name (name-val msg))
    (cons ':effort (effort-val msg))
))
