is_mapping()
  • 1 Minute to read

is_mapping()


Article summary

is_mapping()

check if the robot is in mapping mode.

Reference

Arguments

None

Return

Boolean: True if robot is in mapping mode.

Exceptions

  • RayaNavUnkownError

See the complete list of navigation exceptions.

Usage Example

Code:

...
class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.nav = await self.enable_controller('navigation')
        ...

async def loop(self):
...
    mapping_status = await self.nav.is_mapping()
    if mapping_status:
        self.log.info("MAPPING MODE ON.")
        ...

Was this article helpful?

What's Next