stop_mapping()
- 1 Minute to read
stop_mapping()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
stop_mapping()
This method will stop current mapping progress saving or discarting the map.
Reference
Arguments
Arguments | Type | Default value | |
---|---|---|---|
save_map | bool | True | True 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)
...
Was this article helpful?