Skip to content

Commit

Permalink
Merge pull request #293 from tue-robotics/fix/add-default-grasp-locat…
Browse files Browse the repository at this point in the history
…ions-for-rooms

fix(robotics_testlabs/common): add room based manipulation location
  • Loading branch information
rokusottervanger committed May 24, 2017
2 parents d4fd87d + 432a8ee commit 443409d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

most_probable_location_in_room_map = {
'livingroom': 'dinner_table',
'bedroom': 'nightstand',
'workshop': 'workbench',
'kitchen': 'desk',
'hallway': 'hallway_table'
}


def get_location_from_room(room_id):
if room_id in most_probable_location_in_room_map:
return most_probable_location_in_room_map[room_id]
return None

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

''' colors from printing on screen '''
class bcolors:
HEADER = '\033[95m'
Expand Down

0 comments on commit 443409d

Please sign in to comment.