Skip to content

Commit

Permalink
removed overused let
Browse files Browse the repository at this point in the history
  • Loading branch information
soonhyo committed Dec 6, 2024
1 parent 061c15a commit 7a26e6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pr2eus_moveit/euslisp/collision-object-publisher.l
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
(send colobj :primitive_poses
(append pose
(list
(ros::coords->tf-pose (let ((coords (if relative-pose
relative-pose
(send obj :worldcoords))))
(let* ((hv (float-vector 0 0 (/ (height-of-cylinder obj) 2)))
(hv-t (send coords :transform-vector hv)))
(make-coords :pos hv-t :rot (send coords :rot))))))))))
(ros::coords->tf-pose (let* ((coords (if relative-pose
relative-pose
(send obj :worldcoords)))
(hv (float-vector 0 0 (/ (height-of-cylinder obj) 2)))
(hv-t (send coords :transform-vector hv)))
(make-coords :pos hv-t :rot (send coords :rot)))))))))
((and (derivedp obj body) (eq (car (send obj :body-type)) :cube))
(let ((geom (send colobj :primitives))
(pose (send colobj :primitive_poses)))
Expand Down

0 comments on commit 7a26e6b

Please sign in to comment.