novaplan-decentralized-priv.../nova_plan/adapters/rover_adapter.py

15 lines
533 B
Python

"""Lightweight rover adapter stub for NovaPlan MVP."""
from __future__ import annotations
class RoverAdapter:
def __init__(self, rover_id: str):
self.rover_id = rover_id
def get_status(self) -> dict:
# In a real adapter this would fetch telemetry; here we return a stub.
return {"rover_id": self.rover_id, "status": "idle"}
def plan_task(self, task: dict) -> dict:
# Accept a plan and return an acknowledgment.
return {"rover_id": self.rover_id, "accepted": True, "task": task}