Skip to content

Commit

Permalink
add code when last-feedback-msgs-stamp is not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jun 20, 2016
1 parent 5240dec commit a8923e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pr2eus/robot-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,14 @@ Return value is a list of interpolatingp for all controllers, so (null (some #'i
(cacts (cond
(ctype (gethash ctype controller-table))
(t controller-actions))))
(while (some #'(lambda (x) (<= (send (ros::time- (send x :last-feedback-msg-stamp) tm) :to-sec) 0)) cacts)
(while (some #'(lambda (x)
(and
(<= (send (ros::time- (send x :last-feedback-msg-stamp) tm) :to-sec) 0)
(let ((goal (send (x . ros::comm-state) :action-goal)))
(>= (send (ros::time- (ros::time+ (send goal :header :stamp)
(send (car (last (send goal :goal :trajectory :points))) :time_from_start))
(ros::time-now)) :to-sec) 0))))
cacts)
(send self :spin-once) ;; need to wait for feedback
(send self :ros-wait 0.005))))
(while (null (send self :interpolating-smoothp time-to-finish ctype))
Expand Down

0 comments on commit a8923e5

Please sign in to comment.