Skip to content

Commit

Permalink
Merge branch 'master' into use-ec-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada authored Feb 7, 2017
2 parents 1366a37 + 968d9c5 commit ef0579c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions jsk_baxter_robot/baxtereus/baxter-util.l
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
(require :baxter "package://baxtereus/baxter.l")

(defmethod baxter-robot
(:ik-prepared-poses
(&optional (poses :null))
(let ((ik-prepared-poses (or (get self :ik-prepared-poses) '(:untuck-pose))))
(if (eq poses :null)
(return-from :ik-prepared-poses ik-prepared-poses)
(setf (get self :ik-prepared-poses) poses))
poses))
(:inverse-kinematics
(target-coords &rest args &key (avoid-collision-distance 5) &allow-other-keys)
"Compute Inverse Kinematics with some strategies.
Expand Down Expand Up @@ -34,7 +41,7 @@
(format *error-output* "; failed for slow ik, try to start from prepared poses~%")
(let* ((move-joints (send-all (cadr (memq :link-list args)) :joint))
(av (mapcar #'(lambda (j) (send j :joint-angle)) (send self :joint-list)))
(ik-prepared-poses (if (memq :ik-prepared-poses (send self :methods)) (send self :ik-prepared-poses) '(:untuck-pose))))
(ik-prepared-poses (send self :ik-prepared-poses)))
(dolist (pose ik-prepared-poses)
(unless r
(format *error-output* "; starting from prepared pose '~A'~%" pose)
Expand Down Expand Up @@ -99,7 +106,7 @@
(send (send self :right_e0) :max-joint-velocity 1)
(send (send self :right_s0) :max-joint-velocity 1.4)
)
(:self-collision-check (&key (pairs (send self :collision-check-pairs :links collision-avoidance-links)) &rest args &allow-other-keys)
(:self-collision-check (&rest args &key (pairs (send self :collision-check-pairs :links collision-avoidance-links)) &allow-other-keys)
(send-super* :self-collision-check :pairs pairs args))
)

1 change: 1 addition & 0 deletions jsk_fetch_robot/jsk_fetch_startup/scripts/warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(self):
self.diagnostics_status_sub = rospy.Subscriber("diagnostics", DiagnosticArray, self.diagnostics_status_callback, queue_size = 1)
self.base_breaker = rospy.ServiceProxy('base_breaker', BreakerCommand)
#
self.robot_state_msgs = RobotState()
self.battery_state_msgs = BatteryState()
self.twist_msgs = Twist()
#
Expand Down

0 comments on commit ef0579c

Please sign in to comment.