robocup_knowledge
src
robocup_knowledge
environments
robotics_testlabs
robotics_testlabs/challenge_open.py
Go to the documentation of this file.
1
from
robocup_knowledge
import
knowledge_loader
2
common = knowledge_loader.load_knowledge(
"common"
)
3
4
starting_point =
"initial_pose"
5
ask_waypoint =
"gpsr_meeting_point"
6
7
translations = {
"bookcase"
:
"bocase"
}
8
9
10
# required keys: entity_id (str), room_id (str), navigation_area (str), segment_areas (list)
11
inspection_places = [
12
{
"entity_id"
:
"dinner_table"
,
13
"room_id"
:
"livingroom"
,
14
"navigate_area"
:
"in_front_of"
,
15
"segment_areas"
: [
"on_top_of"
]},
16
17
{
"entity_id"
:
"hallway_table"
,
18
"room_id"
:
"hallway"
,
19
"navigate_area"
:
"in_front_of"
,
20
"segment_areas"
: [
"on_top_of"
]},
21
22
{
"entity_id"
:
"cabinet"
,
23
"room_id"
:
"kitchen"
,
24
"navigate_area"
:
"in_front_of"
,
25
"segment_areas"
: [
"on_top_of"
]},
26
27
{
"entity_id"
:
"bookcase"
,
28
"room_id"
:
"livingroom"
,
29
"navigate_area"
:
"in_front_of"
,
30
"segment_areas"
: [
"shelf2"
,
"shelf3"
,
"shelf4"
,
"shelf5"
]},
31
]
32
33
grammar =
"T[X] -> PLACES[X]"
34
grammar_target =
"T"
35
for
place
in
inspection_places:
36
grammar +=
"\nPLACES[%s] -> %s"
% (place[
'entity_id'
], place[
'entity_id'
])
37
grammar +=
"\nPLACES[%s] -> %s"
% (place[
'entity_id'
], place[
'room_id'
])
Generated on Fri Apr 18 2025 04:36:55 for robocup_knowledge by
1.8.17