navigate_to_zone()
- 1 Minute to read
navigate_to_zone()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
navigate_to_zone()
Navigate to a specific zone. By default, it will navigate to the center of the zone.
## Reference
Arguments
Arguments | Type | Default value | |
---|---|---|---|
zone_name | str | The name of the specified zone. | |
to_center | bool | True | Navigate to the zone's center if True . If False , it will stop when he enters the zone area |
callback_feedback | callable | None | |
callback_finish | callable | None | |
wait | bool | False | blocks the application until the robot finishes its navigation. |
Callbacks
callback_feedback
key | Type |
---|---|
state | str |
distance_to_goal | double |
speed | double |
callback_finish
key | Type |
---|---|
error | int |
error_msg | str |
Return
None
Exceptions
Exception | Condition |
---|---|
RayaNavNotLocated | The robot is not localized. |
RayaNotMoving | The robot is already moving. |
See the complete list of Raya Exceptions.
Was this article helpful?