Skip to content

Commit

Permalink
fix go-grasp problem in eus model
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 authored and tkmtnt7000 committed Nov 17, 2021
1 parent 65a6ff6 commit 7a6abf5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions jsk_kinova_robot/kinovaeus/kinova-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@
(when (send self :simulation-modep)
;; mimic joint
;; https://github.com/Kinovarobotics/ros_kortex/blob/kinetic-devel/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro
(send robot :right_finger_bottom_joint :joint-angle
(send robot :kinova_right_finger_bottom_joint :joint-angle
(rad2deg pos))
(send robot :right_finger_tip_joint :joint-angle
(send robot :kinova_right_finger_tip_joint :joint-angle
(rad2deg (+ (* -0.676 pos) 0.149)))
(send robot :left_finger_bottom_joint :joint-angle
(send robot :kinova_left_finger_bottom_joint :joint-angle
(rad2deg (* -1 pos)))
(send robot :left_finger_tip_joint :joint-angle
(send robot :kinova_left_finger_tip_joint :joint-angle
(rad2deg (+ (* -0.676 pos) 0.149)))
(return-from :go-grasp-lite t))
(let ((pos-max 0.95) (pos-min -0.05))
Expand Down
8 changes: 4 additions & 4 deletions jsk_spotkinova_robot/spotkinovaeus/spotkinova.l
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ Example:
(:go-grasp (&key (pos 0))
;; mimic joint
;; https://github.com/Kinovarobotics/ros_kortex/blob/kinetic-devel/kortex_description/grippers/gen3_lite_2f/urdf/gen3_lite_2f_macro.xacro
(send self :right_finger_bottom_joint :joint-angle
(send self :kinova_right_finger_bottom_joint :joint-angle
(rad2deg pos))
(send self :right_finger_tip_joint :joint-angle
(send self :kinova_right_finger_tip_joint :joint-angle
(rad2deg (+ (* -0.676 pos) 0.149)))
(send self :left_finger_bottom_joint :joint-angle
(send self :kinova_left_finger_bottom_joint :joint-angle
(rad2deg (* -1 pos)))
(send self :left_finger_tip_joint :joint-angle
(send self :kinova_left_finger_tip_joint :joint-angle
(rad2deg (+ (* -0.676 pos) 0.149))))
(:start-grasp ()
(send self :go-grasp :pos -0.05))
Expand Down

0 comments on commit 7a6abf5

Please sign in to comment.