diff --git a/hrpsys_ros_bridge_tutorials/euslisp/make-joint-min-max-table.l b/hrpsys_ros_bridge_tutorials/euslisp/make-joint-min-max-table.l index 7fbc8654..db23773c 100644 --- a/hrpsys_ros_bridge_tutorials/euslisp/make-joint-min-max-table.l +++ b/hrpsys_ros_bridge_tutorials/euslisp/make-joint-min-max-table.l @@ -161,12 +161,13 @@ (with-open-file (f path :direction :output :if-exists :append) (format f "(defmethod ~A~%" (send (class robot) :name)) - (format f " (:init-ending~%") - (format f " ()~%") - (format f " (prog1~%") - (format f " (send-super :init-ending)~%") - (format f " (send self :define-min-max-table)~%") - (format f " ))~%") + (unless (assoc :define-min-max-table (send robot-model :methods)) + (format f " (:init-ending~%") + (format f " ()~%") + (format f " (prog1~%") + (format f " (send-super :init-ending)~%") + (format f " (send self :define-min-max-table)~%") + (format f " ))~%")) (format f " (:define-min-max-table~%") (format f " ()~%") (labels