Skip to content

fix gripper-controller #161

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 8 additions & 6 deletions dynamixel_7dof_arm/euslisp/dxl-7dof-arm-interface-common.l
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
)
(:default-controller
()
(send self :fullbody-controller)
;;(append (send self :fullbody-controller) (send self :gripper-controller))
;;(send self :fullbody-controller)
(append (send self :fullbody-controller) (send self :gripper-controller))
)
;; raw dynamixel command
;; TODO : define these methods by considering pr2eus?
Expand Down Expand Up @@ -166,8 +166,9 @@
(:start-grasp
(&optional (arm :arm) &key ((:gain g) 0.5) ((:objects objs) objects))
"Start grasp mode."
(send self :set-compliance-slope 7 1023)
(send self :set-torque-limit 7 g)
(unless (send self :simulation-modep)
(send self :set-compliance-slope 7 1023)
(send self :set-torque-limit 7 g))
(send robot :gripper arm :angle-vector
(send-all (send robot :gripper arm :joint-list) :min-angle))
(send self :angle-vector (send robot :angle-vector) 1000 :gripper-controller)
Expand All @@ -185,8 +186,9 @@
(send robot :gripper arm :angle-vector
(send-all (send robot :gripper arm :joint-list) :max-angle))
(send self :angle-vector (send robot :angle-vector) 1000 :gripper-controller)
(send self :set-compliance-slope 7 32)
(send self :set-torque-limit 7 1.0)
(unless (send self :simulation-modep)
(send self :set-compliance-slope 7 32)
(send self :set-torque-limit 7 1.0))
(send self :wait-interpolation :gripper-controller)
)
)
Expand Down