robocup_knowledge
Variables
challenge_where_is_this Namespace Reference

Variables

list backup_scenarios
 
 BackupScenario = namedtuple("BackupScenario", ["entity_id", "sentence"])
 
 category = common.get_object_category(loc)
 
 common = knowledge_loader.load_knowledge("common")
 
 entity_id = common.get_object_category_location(category)[0]
 
 grammar_parser = CFGParser.fromstring(location_grammar)
 
string grammar_target = "T"
 
string information_point_id = "where_is_this_information_point"
 
string initial_pose_id = "initial_pose"
 
string location_grammar
 
 sentence = grammar_parser.get_random_sentence("T")
 
string starting_point_grammar
 

Variable Documentation

◆ backup_scenarios

challenge_where_is_this.backup_scenarios
Initial value:
1 = [
2  BackupScenario("fridge", "I will take you to the fridge for a cold beer"),
3  BackupScenario("bed", "You look tired, I will take you to the bed"),
4  BackupScenario("desk", "I'll have you sit down at the desk so you can work on my speech recognition skills"),
5 ]

Definition at line 13 of file impuls/challenge_where_is_this.py.

◆ BackupScenario

challenge_where_is_this.BackupScenario = namedtuple("BackupScenario", ["entity_id", "sentence"])

Definition at line 11 of file impuls/challenge_where_is_this.py.

◆ category

challenge_where_is_this.category = common.get_object_category(loc)

Definition at line 47 of file impuls/challenge_where_is_this.py.

◆ common

challenge_where_is_this.common = knowledge_loader.load_knowledge("common")

Definition at line 23 of file impuls/challenge_where_is_this.py.

◆ entity_id

challenge_where_is_this.entity_id = common.get_object_category_location(category)[0]

Definition at line 51 of file impuls/challenge_where_is_this.py.

◆ grammar_parser

challenge_where_is_this.grammar_parser = CFGParser.fromstring(location_grammar)

Definition at line 70 of file impuls/challenge_where_is_this.py.

◆ grammar_target

challenge_where_is_this.grammar_target = "T"

Definition at line 25 of file impuls/challenge_where_is_this.py.

◆ information_point_id

challenge_where_is_this.information_point_id = "where_is_this_information_point"

Definition at line 19 of file impuls/challenge_where_is_this.py.

◆ initial_pose_id

challenge_where_is_this.initial_pose_id = "initial_pose"

Definition at line 20 of file impuls/challenge_where_is_this.py.

◆ location_grammar

challenge_where_is_this.location_grammar
Initial value:
1 = """
2 T[A] -> COURTESY_PREFIX VP[A] | VP[A]
3 
4 COURTESY_PREFIX -> robot please | could you | could you please | please
5 """

Definition at line 34 of file impuls/challenge_where_is_this.py.

◆ sentence

challenge_where_is_this.sentence = grammar_parser.get_random_sentence("T")

Definition at line 74 of file impuls/challenge_where_is_this.py.

◆ starting_point_grammar

challenge_where_is_this.starting_point_grammar
Initial value:
1 = """
2 T[A] -> LOCATION[A]
3 """

Definition at line 27 of file impuls/challenge_where_is_this.py.

challenge_where_is_this.BackupScenario
BackupScenario
Definition: impuls/challenge_where_is_this.py:11