get_map()
- 1 Minute to read
get_map()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
get_map()
Get the data of a specific map. If map_name is not specified current map will be used.
Reference
Arguments
Arguments | Type | Default value | Description |
---|---|---|---|
map_name | string | Map name. |
Return
Returns an array representing the map and a dictionary describing the map meta data (origin and resolution).
Exceptions
RayaNavUnkownError
RayaNavNotLocated
See the complete list of navigation exceptions.
Usage Example
...
class RayaApplication(RayaApplicationBase):
async def setup(self):
self.nav = await self.enable_controller('navigation')
self.map_image, self.map_info = await self.nav.get_map('unity_apartment')
....
async def loop(self):
....
cv2.imshow("map", self.map_image)
...
async def finish(self):
...
See the Navigate to click example to check some valid uses.
Was this article helpful?