Skip to content
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

[fetch] Exclude specific collision-check-pairs to ignore insignificant collisions #1026

Merged
merged 2 commits into from
Jun 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions jsk_fetch_robot/fetcheus/fetch-utils.l
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,26 @@
(setf (get self 'rarm-grasping-obj) nil))
(t
)))
(:collision-check-pairs
(&key ((:links ls) (cons (car links) (all-child-links (car links)))))
(let (pairs l neighbors
(exclude-pairs
(list (cons base_link_lk bellows_link2_lk)
(cons base_link_lk bellows_link_lk)
(cons torso_fixed_link_lk torso_lift_link_lk)
(cons torso_fixed_link_lk bellows_link2_lk)
(cons torso_fixed_link_lk bellows_link_lk)
(cons bellows_link2_lk bellows_link_lk)
(cons r_gripper_finger_link_lk l_gripper_finger_link_lk))))
(while (setq l (pop ls))
(setq neighbors (remove nil
(append
(send l :descendants)
(send l :child-links)
(list (send l :parent-link) (send l :parent)))))
(dolist (l2 ls)
(if (and (not (memq l2 neighbors))
(not (member (cons l l2) exclude-pairs :test #'equal)))
(push (cons l l2) pairs))))
pairs))
)