map_base
BaseMap
Base map class. Contains basic interface for converting from map to world frame, and vise-versa
Source code in omnigibson/maps/map_base.py
__init__(map_resolution=0.1)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
map_resolution
|
float
|
map resolution |
0.1
|
load_map(*args, **kwargs)
map_to_world(xy)
Transforms a 2D point in map reference frame into world (simulator) reference frame
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xy
|
2 - array or (N, 2) - array
|
2D location(s) in map reference frame (in image pixel space) |
required |
Returns:
Type | Description |
---|---|
2 - array or (N, 2) - array
|
2D location(s) in world reference frame (in metric space) |
Source code in omnigibson/maps/map_base.py
world_to_map(xy)
Transforms a 2D point in world (simulator) reference frame into map reference frame
xy: 2D location in world reference frame (metric)
:return: 2D location in map reference frame (image)