-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Depends on #1378] [jsk_2016_01_baxter_apc] don't use gripper joint to solve IK #1362
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e9b67f6
Test move-arm-to-bin with rosbag for bin boxes
wkentaro 0fa3237
apply test to every bin
pazeshun b316a9d
don't use gripper joint to solve ik
pazeshun a2be0f8
change middle point of ik
pazeshun 22a94b1
rotate gripper joint by script not by ik
pazeshun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
DATA_DIR=$(rospack find jsk_2016_01_baxter_apc)/test_data | ||
|
||
gdown "https://drive.google.com/uc?id=0B9P1L--7Wd2vZ2xLZG55OWNYTDQ" -O $DATA_DIR/2016-04-30-16-33-54_apc2016-bin-boxes.bag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env roseus | ||
|
||
(require :unittest "lib/llib/unittest.l") | ||
(require :baxter-interface "package://jsk_2016_01_baxter_apc/euslisp/jsk_2016_01_baxter_apc/baxter-interface.l") | ||
|
||
(init-unit-test) | ||
|
||
(deftest | ||
test-move-arm-to-bin | ||
(jsk_2016_01_baxter_apc::baxter-init) | ||
(send *ri* :recognize-bin-boxes :stamp (ros::time 0)) | ||
(dolist (bin (list :a :b :c :d :e :f :g :h :i :j :k :l)) | ||
(case bin | ||
((:a :d :g :j) (setq arm-list (list :larm))) | ||
((:b :e :h :k) (setq arm-list (list :larm :rarm))) | ||
((:c :f :i :l) (setq arm-list (list :rarm))) | ||
) | ||
(dolist (arm arm-list) | ||
(dolist (offset (list #f(-150 0 0) #f(-50 0 0) #f(0 0 0) #f(0 0 -80))) | ||
(assert (send *ri* :ik->bin-entrance arm bin :offset offset)) | ||
) | ||
) | ||
) | ||
) | ||
|
||
(run-all-tests) | ||
(exit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<launch> | ||
|
||
<env name="DISPLAY" value="" /> | ||
|
||
<node name="rosbag_play" | ||
pkg="rosbag" type="play" | ||
args="$(find jsk_2016_01_baxter_apc)/test_data/2016-04-30-16-33-54_apc2016-bin-boxes.bag --clock" /> | ||
|
||
<test test-name="test_move_arm_to_bin" | ||
name="test_move_arm_to_bin" | ||
pkg="jsk_2016_01_baxter_apc" type="test-move-arm-to-bin.l" /> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これを変えても、move-arm-body->binメソッドなどは問題ない?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この中間姿勢は、ik->bin-entranceメソッドでしか使用してなかったはずです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
特に、fold-pose-upperについては、変えないとIK普通に解いたときに手首の関節が可動域ギリギリの姿勢が出てきてしまい、そのあとのIKが失敗します。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:ik->bin-entrance
でIKの初期姿勢になっている:ik->bin-entrance
は他のメソッドで使われているというのが問題かと思います.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今問題になっているのは、ik->bin-entranceで出てくる姿勢がおかしいということです。
それを修正するために、中間姿勢を修正しました。
この中間姿勢はあくまで
*baxter*
に送られるものであり、これで実機が動くわけではないと考えています。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このPRの副作用を調べるためなので、このPRに必要ですね。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
わかりました。
といっても、なんのテストを作ればいいのかよくわかっていないのですが、ik->bin-entranceが成功するかどうかをテストすればいいのでしょうか。それとも、よりシーケンシャルな動き(例えば、:move-arm-body->binメソッドをしてから、ik->bin-entranceを使用している各オフセットで解き、それから:view-hand-pose のあと:move-arm-body->order-bin)をテストすれば良いのでしょうか。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変更したfold-poseを使っているのは:ik->bin-entranceだけだったということなので、:ik->bin-entranceだけでいいんじゃないでしょうか。(引数をいくつか変えて)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
わかりました。
#1367 のようなものをik->bin-entranceに対して作ります。できたらmergeしてしまおうと思っています。
大丈夫でしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
できたら@ban-masaに一度見てもらって下さい.