Skip to content

Commit

Permalink
Merge pull request #442 from knorth55/fix-pr2eus-moveit-bodies
Browse files Browse the repository at this point in the history
[pr2eus_moveit] evaluate all bodies only when it has bodies
  • Loading branch information
k-okada committed Aug 13, 2020
2 parents 4102b8d + 9f590e0 commit a228cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pr2eus_moveit/euslisp/collision-object-publisher.l
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
(let ((org-cds (send obj :copy-worldcoords)))
(send obj :reset-coords)
(send obj :worldcoords)
(mapcar #'(lambda (body) (send body :worldcoords)) (send obj :bodies))
(when (find-method obj :bodies)
(mapcar #'(lambda (body) (send body :worldcoords)) (send obj :bodies)))
(let ((fs (body-to-faces obj))
(geom (instance shape_msgs::mesh :init))
idx-lst vertices (cntr 0))
Expand Down

0 comments on commit a228cc7

Please sign in to comment.