25 lines
703 B
Python
25 lines
703 B
Python
from __future__ import annotations
|
|
|
|
"""Toy Rover Runtime Adapter.
|
|
|
|
This is a lightweight adapter sketch that could be wired into EnergiBridge
|
|
workflows. It reuses the existing DeviceRuntime for basic inference/planning
|
|
and exposes a minimal interface.
|
|
"""
|
|
|
|
from nebulaforge.runtime import DeviceRuntime
|
|
|
|
|
|
class RoverRuntimeAdapter:
|
|
def __init__(self, device: str = "arm-cortex-a53"): # pragma: no cover
|
|
self.runtime = DeviceRuntime(device=device)
|
|
|
|
def initialize(self, config: dict | None = None) -> None:
|
|
self.runtime.initialize(config)
|
|
|
|
def infer(self, inputs):
|
|
return self.runtime.infer(inputs)
|
|
|
|
def plan(self, state):
|
|
return self.runtime.plan(state)
|