robocup_knowledge
Classes | Functions | Variables
common Namespace Reference

Classes

class  bcolors
 

Functions

def get_inspect_areas (location)
 
def get_inspect_position (location, area="")
 
def get_location_from_room (room_id)
 
def get_locations (room=None, manipulation_location=None)
 
def get_locations (room=None, pick_location=None, place_location=None)
 
def get_object_category (obj)
 
def get_object_category_location (obj_cat)
 
def get_object_color (obj)
 
def get_object_names (category=None)
 
def get_object_size (obj)
 
def get_object_weight (obj)
 
def get_objects (category=None)
 
def get_room (location)
 
def is_known_object (obj)
 
def is_location (location)
 
def is_manipulation_location (location)
 
def is_pick_location (location)
 
def is_place_location (location)
 
def is_room (entity_id)
 
def make_prints (name)
 
def object_names_of_category (category)
 

Variables

list all_locations
 
 area_name
 
def cat = get_object_category(obj)
 
dictionary category_locations
 
float default_target_radius = 0.2
 
 drink
 
def drink_names = object_names_of_category('drink')
 
string drink_spec = "T['drink': O] -> OPTIONS[O]\n\n"
 
 False
 
list female_names = ["emma", "olivia", "sophia", "ava", "isabella", "mia", "abigail", "emily", "charlotte", "harper"]
 
 grab_locations = list(set([o["name"] for o in locations if o["manipulation"] == "yes"]))
 
dictionary inspect_areas
 
dictionary inspect_positions
 
 location
 
 location_categories = list(set([o["category"] for o in locations]))
 
 location_manipulatable = list(set([ o["manipulation"] for o in all_locations ]))
 
 location_names = list(set([o["name"] for o in locations]))
 
 location_rooms = list(set([o["room"] for o in locations]))
 
list locations
 
list male_names = ["noah", "liam", "mason", "jacob", "william", "ethan", "james", "alexander", "michael", "benjamin"]
 
 manipulation_locations = list(set([o["name"] for o in locations if o["manipulation"] == "yes"]))
 
dictionary most_probable_location_in_room_map
 
list names = female_names + male_names
 
 object_categories = list(set([o["category"] for o in objects]))
 
 object_color = list(set([ o["color"] for o in objects ]))
 
 object_groups = list(set([ o["group"] for o in objects ]))
 
 object_known_objects = list(set([ o["name"] for o in objects ]))
 
 object_names = list(set([o["name"] for o in objects]))
 
 object_placements = list(set([ o["placement"] for o in objects ]))
 
 object_size = list(set([ o["volume"] for o in objects ]))
 
 object_weight = list(set([ o["weight"] for o in objects ]))
 
list objects
 
 pick_location
 
 place_location
 
 put_locations = list(set([o["name"] for o in locations if o["manipulation"] != "no"]))
 
 rooms = list(set([o["room"] for o in locations]))
 

Function Documentation

◆ get_inspect_areas()

def common.get_inspect_areas (   location)

Definition at line 96 of file demo/common.py.

◆ get_inspect_position()

def common.get_inspect_position (   location,
  area = "" 
)

Definition at line 103 of file demo/common.py.

◆ get_location_from_room()

def common.get_location_from_room (   room_id)

Definition at line 106 of file impuls/common.py.

◆ get_locations() [1/2]

def common.get_locations (   room = None,
  manipulation_location = None 
)

Definition at line 156 of file rwc2023/common.py.

◆ get_locations() [2/2]

def common.get_locations (   room = None,
  pick_location = None,
  place_location = None 
)

Definition at line 124 of file demo/common.py.

◆ get_object_category()

def common.get_object_category (   obj)

Definition at line 136 of file demo/common.py.

◆ get_object_category_location()

def common.get_object_category_location (   obj_cat)

Definition at line 143 of file demo/common.py.

◆ get_object_color()

def common.get_object_color (   obj)

Definition at line 228 of file impuls/common.py.

◆ get_object_names()

def common.get_object_names (   category = None)

Definition at line 42 of file reo2016/common.py.

◆ get_object_size()

def common.get_object_size (   obj)

Definition at line 234 of file impuls/common.py.

◆ get_object_weight()

def common.get_object_weight (   obj)

Definition at line 240 of file impuls/common.py.

◆ get_objects()

def common.get_objects (   category = None)

Definition at line 131 of file demo/common.py.

◆ get_room()

def common.get_room (   location)

Definition at line 87 of file demo/common.py.

◆ is_known_object()

def common.is_known_object (   obj)

Definition at line 211 of file impuls/common.py.

◆ is_location()

def common.is_location (   location)

Definition at line 80 of file demo/common.py.

◆ is_manipulation_location()

def common.is_manipulation_location (   location)

Definition at line 149 of file rwc2023/common.py.

◆ is_pick_location()

def common.is_pick_location (   location)

Definition at line 110 of file demo/common.py.

◆ is_place_location()

def common.is_place_location (   location)

Definition at line 117 of file demo/common.py.

◆ is_room()

def common.is_room (   entity_id)

Definition at line 173 of file impuls/common.py.

◆ make_prints()

def common.make_prints (   name)

Definition at line 62 of file demo/common.py.

◆ object_names_of_category()

def common.object_names_of_category (   category)

Definition at line 112 of file impuls/common.py.

Variable Documentation

◆ all_locations

common.all_locations
Initial value:
1 = [{'room':'livingroom', 'category': 'shelf', 'location_name':'cupboard','manipulation':'yes'},
2 {'room':'livingroom', 'category': 'table', 'location_name':'couchtable','manipulation':'yes'},
3 {'room':'livingroom', 'category': 'shelf', 'location_name':'cabinet', 'manipulation':'yes'},
4 {'room':'livingroom', 'category': 'appliance', 'location_name':'tv', 'manipulation':'no'},
5 {'room':'livingroom', 'category': 'seat', 'location_name':'couch', 'manipulation':'no'},
6 {'room':'kitchen', 'category': '', 'location_name':'kitchencounter','manipulation':'yes'},
7 {'room':'kitchen', 'category': 'appliance', 'location_name':'stove', 'manipulation':'yes'},
8 {'room':'kitchen', 'category': 'appliance', 'location_name':'fridge', 'manipulation':'yes'},
9 {'room':'kitchen', 'category': 'appliance', 'location_name':'sink', 'manipulation':'yes'},
10 {'room':'kitchen', 'category': 'utility', 'location_name':'trashbin', 'manipulation':'no'},
11 {'room':'kitchen', 'category': 'table', 'location_name':'bartable', 'manipulation':'yes'},
12 {'room':'hall', 'category': 'table', 'location_name':'small_table', 'manipulation':'yes'},
13 {'room':'hall', 'category': 'utility', 'location_name':'coathanger', 'manipulation':'no'},
14 {'room':'bedroom', 'category': 'seat', 'location_name':'bed', 'manipulation':'yes'},
15 {'room':'bedroom', 'category': 'table', 'location_name':'left_bedside_table', 'manipulation':'yes'},
16 {'room':'bedroom', 'category': 'table', 'location_name':'right_bedside_table', 'manipulation':'yes'},
17 {'room':'office', 'category': 'table', 'location_name':'counter', 'manipulation':'yes'},
18 {'room':'office', 'category': 'shelf', 'location_name':'left_bookcase', 'manipulation':'yes'},
19 {'room':'office', 'category': 'shelf', 'location_name':'right_bookcase', 'manipulation':'yes'},
20 {'room':'office', 'category': 'table', 'location_name':'dinnertable', 'manipulation':'yes'},
21 {'room':'office', 'category': 'table', 'location_name':'desk', 'manipulation':'yes'}]

Definition at line 12 of file rgo2015/common.py.

◆ area_name

common.area_name

Definition at line 156 of file demo/common.py.

◆ cat

def common.cat = get_object_category(obj)

Definition at line 155 of file demo/common.py.

◆ category_locations

dictionary common.category_locations
Initial value:
1 = {
2  "drink": {"amigo_case_lid": "on_top_of"}
3 }

Definition at line 30 of file demo/common.py.

◆ default_target_radius

common.default_target_radius = 0.2

Definition at line 95 of file impuls/common.py.

◆ drink

common.drink

Definition at line 119 of file impuls/common.py.

◆ drink_names

common.drink_names = object_names_of_category('drink')

Definition at line 116 of file impuls/common.py.

◆ drink_spec

common.drink_spec = "T['drink': O] -> OPTIONS[O]\n\n"

Definition at line 117 of file impuls/common.py.

◆ False

common.False

Definition at line 177 of file demo/common.py.

◆ female_names

list common.female_names = ["emma", "olivia", "sophia", "ava", "isabella", "mia", "abigail", "emily", "charlotte", "harper"]

Definition at line 4 of file demo/common.py.

◆ grab_locations

common.grab_locations = list(set([o["name"] for o in locations if o["manipulation"] == "yes"]))

Definition at line 66 of file reo2016/common.py.

◆ inspect_areas

dictionary common.inspect_areas
Initial value:
1 = {
2  "closet": ["shelf1", "shelf2", "shelf3", "shelf4", "shelf5"]
3 }

Definition at line 88 of file impuls/common.py.

◆ inspect_positions

dictionary common.inspect_positions
Initial value:
1 = {
2 }

Definition at line 34 of file demo/common.py.

◆ location

common.location

Definition at line 156 of file demo/common.py.

◆ location_categories

common.location_categories = list(set([o["category"] for o in locations]))

Definition at line 18 of file demo/common.py.

◆ location_manipulatable

common.location_manipulatable = list(set([ o["manipulation"] for o in all_locations ]))

Definition at line 37 of file rgo2015/common.py.

◆ location_names

common.location_names = list(set([o["name"] for o in locations]))

Definition at line 19 of file demo/common.py.

◆ location_rooms

common.location_rooms = list(set([o["room"] for o in locations]))

Definition at line 17 of file demo/common.py.

◆ locations

list common.locations
Initial value:
1 = [
2  {"name": "amigo_case", "room": "ToDo", "category": "ToDo", "manipulation": "no"},
3  {"name": "laptop_case", "room": "ToDo", "category": "ToDo", "manipulation": "no"},
4  {"name": "amigo_case_lid", "room": "ToDo", "category": "ToDo", "manipulation": "yes"},
5  {"name": "laptop_case_lid", "room": "ToDo", "category": "ToDo", "manipulation": "yes"},
6 ]

Definition at line 10 of file demo/common.py.

◆ male_names

list common.male_names = ["noah", "liam", "mason", "jacob", "william", "ethan", "james", "alexander", "michael", "benjamin"]

Definition at line 5 of file demo/common.py.

◆ manipulation_locations

common.manipulation_locations = list(set([o["name"] for o in locations if o["manipulation"] == "yes"]))

Definition at line 20 of file demo/common.py.

◆ most_probable_location_in_room_map

dictionary common.most_probable_location_in_room_map
Initial value:
1 = {
2  'dining_room': 'dinner_table',
3  'office': 'work_bench2',
4  'living_room': 'salon_table'
5 }

Definition at line 99 of file impuls/common.py.

◆ names

list common.names = female_names + male_names

Definition at line 6 of file demo/common.py.

◆ object_categories

common.object_categories = list(set([o["category"] for o in objects]))

Definition at line 28 of file demo/common.py.

◆ object_color

common.object_color = list(set([ o["color"] for o in objects ]))

Definition at line 73 of file impuls/common.py.

◆ object_groups

common.object_groups = list(set([ o["group"] for o in objects ]))

Definition at line 78 of file rgo2015/common.py.

◆ object_known_objects

common.object_known_objects = list(set([ o["name"] for o in objects ]))

Definition at line 80 of file rgo2015/common.py.

◆ object_names

common.object_names = list(set([o["name"] for o in objects]))

Definition at line 27 of file demo/common.py.

◆ object_placements

common.object_placements = list(set([ o["placement"] for o in objects ]))

Definition at line 79 of file rgo2015/common.py.

◆ object_size

common.object_size = list(set([ o["volume"] for o in objects ]))

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

◆ object_weight

common.object_weight = list(set([ o["weight"] for o in objects ]))

Definition at line 75 of file impuls/common.py.

◆ objects

list common.objects
Initial value:
1 = [
2  {"name": "coke", "category": "drink"},
3  {"name": "fanta", "category": "drink"}
4 ]

Definition at line 22 of file demo/common.py.

◆ pick_location

common.pick_location

Definition at line 167 of file demo/common.py.

◆ place_location

common.place_location

Definition at line 172 of file demo/common.py.

◆ put_locations

common.put_locations = list(set([o["name"] for o in locations if o["manipulation"] != "no"]))

Definition at line 67 of file reo2016/common.py.

◆ rooms

common.rooms = list(set([o["room"] for o in locations]))

Definition at line 65 of file reo2016/common.py.