Skip to content

Commit

Permalink
Add method copy process for robot arm part
Browse files Browse the repository at this point in the history
  • Loading branch information
tongtybj committed Sep 19, 2018
1 parent 5caec8b commit f696fdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dxl_armed_turtlebot/euslisp/dxl-armed-turtlebot-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defclass dxl-armed-turtlebot-interface
:super robot-interface
:slots ())
:slots (gripper-action))

(eval `(defmethod dxl-armed-turtlebot-interface
;; dxl-7dof-arm-interface, turtlebot-interfaceのメソッドをそれぞれdefmethodする
Expand Down Expand Up @@ -48,4 +48,4 @@
(send *irtviewer* :change-background #f(0.9 0.9 0.9))
(send *irtviewer* :draw-objects)
)
(warn ";; (dxl-armed-turtlebot-init) ;; for initialize ~%")
(warn ";; (dxl-armed-turtlebot-init) ;; for initialize ~%")
10 changes: 7 additions & 3 deletions dxl_armed_turtlebot/euslisp/dxl-armed-turtlebot.l
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
(send self :method-copying "-pose")
(send self :method-copying "_joint")
(send self :method-copying "inverse-kinematics" t)
(send self :method-copying "gripper" t)
(send self :method-copying "arm" t)
t))
(:method-copying
(substr &optional (use-args nil))
Expand All @@ -79,10 +81,12 @@
,(if use-args `(send* arm-robot ,me args) `(send arm-robot ,me))
)
))
)))
)
methods))

;; limbs
(:arm (&rest args)
(unless args (setq args (list nil))) (send* self :limb :rarm args))
;;(:arm (&rest args)
;;(unless args (setq args (list nil))) (send* self :limb :rarm args))
)

;; アーム台車モデル生成関数
Expand Down

0 comments on commit f696fdb

Please sign in to comment.