cancel_navigation()
  • 1 Minute to read

cancel_navigation()


Article summary

Cancels the current navigation goal.

Reference

Arguments

None

Return

None

Exceptions

  • RayaNavNotNavigating
  • 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):
        ...
           await self.navigation.navigate_to_zone(
                zone_name='initial_zone',
                to_center=True,
                callback_feedback=self.cb_nav_feedback, 
                callback_finish=self.cb_nav_finish, 
                wait=False
            )
            await self.sleep(0.5)
            await self.nav.cancel_navigation()
            ...
            
    async def finish(self):
       ...

See the Navigate to click, nav_all_unity_apartment, nav_get_info examples to check some valid uses.


Was this article helpful?