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

[jsk_footstep_planner/generate-footstep-planner-parameters-from-robot-model.l] fix collision bbox #753

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ footstep_size_x: 0.254
footstep_size_y: 0.150368
rleg_footstep_offset: [0.016411, 0.0, 0.0]
lleg_footstep_offset: [0.016411, 0.0, 0.0]
collision_bbox_size: [0.499967, 0.39561, 1.33184]
collision_bbox_offset: [-0.055675, 0.0, 0.0]
collision_bbox_size: [0.499966, 0.396911, 1.03184]
collision_bbox_offset: [-0.055675, 0.00064, 0.805435]
successors:
- x: 0.15
y: 0.0
Expand Down Expand Up @@ -250,3 +250,6 @@ successors:
- x: -0.05
y: -0.05
theta: -0.349066
goal_pos_thr: 0.05
goal_rot_thr: 0.087266
transition_limit_yaw: 0.350811
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
(float-vector
(* 1e-3 (- (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 0)) #'>) 0) (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 0)) #'<) 0)))
(* 1e-3 (- (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 1)) #'>) 1) (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 1)) #'<) 1)))
(* 1e-3 (- (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 2)) #'>) 2) (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 2)) #'<) 2)))))
(- (* 1e-3 (- (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 2)) #'>) 2) (elt (find-extream (send bb :vertices) #'(lambda (x) (elt x 2)) #'<) 2))) 0.3))) ;;0.3[m] from the ground is not considered
(neglect-thre (* 1e-3 0.1)) ;; 0.1[mm]
(bbox-offset
(let ((tmp (scale 1e-3 (send (send robot :foot-midcoords) :inverse-transform-vector (send bb :centroid)))))
(float-vector (neglect-small-value (elt tmp 0) neglect-thre) (neglect-small-value (elt tmp 1) neglect-thre) 0.0)
(float-vector (neglect-small-value (elt tmp 0) neglect-thre) (neglect-small-value (elt tmp 1) neglect-thre) (+ 0.15 (neglect-small-value (elt tmp 2) neglect-thre))) ;;0.3[m] from the ground is not considered
)))
(if return-value
(list bbox-size bbox-offset)
Expand Down