stop_mapping()
  • 1 Minute to read

stop_mapping()


Article summary

stop_mapping()

This method will stop current mapping progress saving or discarting the map.

Reference

Arguments

ArgumentsTypeDefault value
save_mapboolTrueTrue to save the map, False to discard it.

Return

None

Exceptions

  • RayaNavNotMapping

See the complete list of navigation exceptions.

Usage Example

Code:

...
class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.navigation = await self.enable_controller('navigation')
        self.map_name = "newmap01"
        ...

    async def loop(self):
        await self.navigation.start_mapping(self.map_name)
        self.log.info(f'Using map \'{self.map_name}\'')
        ...

    async def finish(self):
        await self.navigation.stop_mapping(save_map = True)
         ...

See the map_tags, map to check some valid uses.


Was this article helpful?