Skip to content

Commit

Permalink
Use LOCATION-DESIGNATOR-REACHED instead of perceive-state.
Browse files Browse the repository at this point in the history
It seems like the function LOCATION-DESIGNATOR-REACHED behaves
differently to perceive-state. Use it everywhere in AT-LOCATION to
prevent location-lost errors.
  • Loading branch information
moesenle committed Dec 10, 2012
1 parent 5370c12 commit 1921c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cram_plan_library/src/at-location.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ designator."
until ,terminated do
(pursue
(cond ((and (sb-thread:mutex-owner *at-location-lock*)
(perceive-state `(loc Robot ,,loc-var)))
(location-designator-reached
(current-robot-location) ,loc-var))
(setf (value ,navigation-done) t)
(sb-thread:with-mutex (*at-location-lock*)
(wait-for (make-fluent :value nil))))
Expand Down

0 comments on commit 1921c82

Please sign in to comment.