Source code for olo.robot
"""Composite namespace-scoped robot handle."""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from olo import Client
[docs]
class Robot:
"""Namespace-scoped robot handle over supported robot capabilities."""
[docs]
def __init__(self, client: "Client", namespace: str) -> None:
"""Bind service handles for a resolved robot namespace."""
self.namespace = namespace
self.locomotion = client.locomotion.handle(namespace)
self.archive = client.archive.handle(namespace)
self.core = client.core.handle(namespace)
self.frames = client.spatial.handle(namespace)
self.kinematics = client.kinematics.handle(namespace)
self.navigation = client.navigation.handle(namespace)
__all__ = ["Robot"]