get_map()
  • 1 Minute to read

get_map()


Article summary

get_map()

Get the data of a specific map. If map_name is not specified current map will be used.

Reference

Arguments

ArgumentsTypeDefault valueDescription
map_namestringMap 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?