Skip to content

Commit

Permalink
Make sure semantic map has been queried in sub-part search functions
Browse files Browse the repository at this point in the history
  • Loading branch information
moesenle committed Sep 12, 2011
1 parent 22354b3 commit def1582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cl_semantic_map_utils/src/semantic-map.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@
(defun sub-parts-with-type (map type &key (recursive t))
"Returns a lazy list of all objects of type `type' that are children
of map. When `recursive' is T, recursively traverses all sub-parts, i.e. returns not only direct children."
;; Update the cache if not updated yet
(get-semantic-map)
(let ((type (etypecase type
(symbol (cram-roslisp-common:rosify-lisp-name type))
(string type))))
Expand All @@ -275,6 +277,8 @@ of map. When `recursive' is T, recursively traverses all sub-parts, i.e. returns
(defun sub-parts-with-name (map name &key (recursive t))
"Returns a lazy list of all objects of type `type' that are children
of map. When `recursive' is T, recursively traverses all sub-parts, i.e. returns not only direct children."
;; Update the cache if not updated yet
(get-semantic-map)
(let ((name (etypecase name
(symbol (cram-roslisp-common:rosify-lisp-name name))
(string name))))
Expand Down

0 comments on commit def1582

Please sign in to comment.