1 from robocup_knowledge
import knowledge_loader
2 common = knowledge_loader.load_knowledge(
"common")
5 guiding_spec =
"(<location> <side>|<continue>)"
8 guiding_choices = {
"location" : [
"one",
"two",
"three"],
"side" : [
"left",
"right",
"front"],
"continue" : [
"continue"]}
11 professional_guiding_spec =
"([This is ][table ]<location>)"
14 professional_guiding_choices = {
"location" : [
"one",
"two",
"three"]}
19 order_spec =
"(<beverage>|<food1> and [(a|an)] <food2>)"
22 drinks = [ o[
"name"]
for o
in common.objects
if o[
"category"] ==
"drink" ]
23 foods = [ o[
"name"]
for o
in common.objects
if o[
"category"] ==
"food" ]
24 order_choices = {
"beverage": drinks,
"food1": foods,
"food2": foods }