Commit bbd96c7a authored by yoda's avatar yoda

update requested by Ze Nuno

parent de3302cb
......@@ -109,6 +109,11 @@ class Locations:
# goal not found
return (False, "Goal '%s' not found"%(goal))
def get_location(self, location):
try:
return self.locations[location]
except KeyError:
return None
## --- OLD OBSOLETE CODE (remains from CMU CoBot) ---
......@@ -143,10 +148,6 @@ class Locations:
print "%15s --> (%f, %f, %f)"%(r, x, y, a)
def test1(argv):
if len(argv)>1:
l = Locations(argv[1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment