Skip to content

Commit

Permalink
Fix the problem of not working function ":wait-interpolation" in usel…
Browse files Browse the repository at this point in the history
…isp by:

update the constaints for joint trajectory controller, relaxing the path tolerance
  • Loading branch information
tongtybj committed Nov 2, 2018
1 parent b36b65e commit f5881fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
14 changes: 7 additions & 7 deletions dxl_armed_turtlebot/config/dxl_armed_turtlebot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ fullbody_controller:
goal_time: 0.5 # Override default
stopped_velocity_tolerance: 0.02 # Override default
arm_joint1:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified
arm_joint2:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified
arm_joint3:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified
arm_joint4:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified
arm_joint5:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified
arm_joint6:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.1 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified

gains: # Required because we're controlling an effort interface
Expand All @@ -55,7 +55,7 @@ gripper_controller:
goal_time: 0.5 # Override default
stopped_velocity_tolerance: 0.02 # Override default
gripper_joint:
trajectory: 0.05 # Not enforced if unspecified
#trajectory: 0.05 # Not enforced if unspecified
goal: 0.02 # Not enforced if unspecified

gains: # Required because we're controlling an effort interface
Expand Down
7 changes: 2 additions & 5 deletions dxl_armed_turtlebot/euslisp/gazebo-grasp-test.l
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@

;; arm approach pose
(send *ri* :angle-vector #f(0 0 -90 0 90 0) 3000)
;;(send *ri* :wait-interpolation) ;; does not work?
(unix:sleep 4)
(send *ri* :wait-interpolation)

;; open gripper
(send *ri* :stop-grasp)

;; go-pos
(send *ri* :go-pos 0.56 0 1)
(unix:sleep 6)

;; grasp
;; still some bug in start-grasp, so we have to directly use :move-gripper
(send *ri* :move-gripper -30 :tm 1500 :wait t)
(unix:sleep 2)

(send *ri* :wait-interpolation)
(send *ri* :angle-vector #f(90 0 45 0 45 45)) ;; arm tuck pose
5 changes: 2 additions & 3 deletions dxl_armed_turtlebot/euslisp/gazebo-grasp-with-recognition.l
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
(send *ri* :stop-grasp)



(setq found-obj nil)
(until found-obj
(x::window-main-one) ;; IRT viewerの視点を変えられる。見にくければ変えよう
Expand Down Expand Up @@ -79,14 +78,14 @@
(ros::ros-warn "the grap arm pose is ~A" (send *dxl-armed-turtlebot* :angle-vector))

(send *ri* :angle-vector (send *dxl-armed-turtlebot* :angle-vector) 3000)
(send *ri* :wait-interpolation)

(unix:sleep 5)
(send *ri* :go-pos 0.1 0 0)

;; grasp
;; still some bug in start-grasp, so we have to directly use :move-gripper
(send *ri* :move-gripper -30 :tm 1500 :wait t)
(unix:sleep 2)
(send *ri* :wait-interpolation)

(send *ri* :angle-vector #f(80 0 45 0 45 45)) ;; arm tuck pose
(send *ri* :go-pos -0.6 0 0) ;; arm tuck pose

0 comments on commit f5881fa

Please sign in to comment.