update_current_nav_goal()
- 1 Minute to read
update_current_nav_goal()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
This function allows you to change the desired goal destination of a current navigation.
Reference
Arguments
Arguments | Type | Default value | Description |
---|---|---|---|
x | float | X coordinate on the map. | |
y | float | Y coordinate on the map. | |
yaw | float | Specifies 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?