euslisp / jskeus

This repository contains EusLisp software developed and used by JSK at The University of Tokyo
23 stars 55 forks source link

円周のどこにでも目標値があってもいいようなIK #158

Open garaemon opened 9 years ago

garaemon commented 9 years ago

:rotatoin-axis :z みたいな. 丸いハンドルをつかむようなIK

snozawa commented 9 years ago

言葉でちょっと伝わりきらないかもしれまsんが、

snozawa commented 9 years ago

後者の例

(load "irteus/demo/sample-robot-model.l")
(setq *sr* (instance sample-robot :init))
(send *sr* :reset-pose)
(send *sr* :fix-leg-to-coords (make-coords))
(objects (list *sr*))
(with-assoc-move-target
(mt :move-target (send (send *sr* :rarm :end-coords :copy-worldcoords) :translate (float-vector 0 200 0)) :parent-link (send *sr* :rarm :end-coords :parent))
(send *sr* :inverse-kinematics
(make-coords :pos (float-vector 300 0 600))
:move-target (car mt)
:debug-view :no-message
:rotation-axis :x
:link-list (send *sr* :link-list (send (car mt) :parent))))
garaemon commented 9 years ago

後者がよさそう。 使いやすいインタフェイスはなんだろう、、、 普通にmovetarget動かす、というのがシンプルなのかな

2014年12月16日火曜日、Shunichi Nozawanotifications@github.comさんは書きました:

後者の例

(load "irteus/demo/sample-robot-model.l") (setq sr (instance sample-robot :init)) (send sr :reset-pose) (send sr :fix-leg-to-coords (make-coords)) (objects (list sr)) (with-assoc-move-target (mt :move-target (send (send sr :rarm :end-coords :copy-worldcoords) :translate (float-vector 0 200 0)) :parent-link (send sr :rarm :end-coords :parent)) (send sr :inverse-kinematics (make-coords :pos (float-vector 300 0 600)) :move-target mt :debug-view :no-message :rotation-axis :x :link-list (send sr :link-list (send (car mt) :parent))))

— Reply to this email directly or view it on GitHub https://github.com/euslisp/jskeus/issues/158#issuecomment-67116821.

from iPhone

garaemon commented 9 years ago

サンプルコードみました。よさそうですね。

garaemon commented 9 years ago

手の内のrotation-axis :zがこのままだと使えない

これの解決案を考えたほうがよさそうですね。 やはりjoint作戦になる?