pi0.5 / openpi_runtime /openpi_client /base_policy.py
XiangpengYang's picture
build: add OpenPI runtime for UR Space
b2cec57
Raw
History Blame Contribute Delete
271 Bytes
import abc
from typing import Dict
class BasePolicy(abc.ABC):
@abc.abstractmethod
def infer(self, obs: Dict) -> Dict:
"""Infer actions from observations."""
def reset(self) -> None:
"""Reset the policy to its initial state."""
pass