update_current_nav_goal()
  • 1 Minute to read

update_current_nav_goal()


Article summary

This function allows you to change the desired goal destination of a current navigation.

Reference

Arguments

ArgumentsTypeDefault valueDescription
xfloatX coordinate on the map.
yfloatY coordinate on the map.
yawfloatSpecifies the angle on radians for the goal orientation (determines direction the robot should face after reaching the goal).

Return

None

Exceptions

  • RayaNavNotLocated
  • RayaNavNoMapLoaded
  • 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.nav.update_current_nav_goal(
                x = goal_x,
                y = goal_y,
                yaw = goal_yaw)
        ...

Was this article helpful?

What's Next