This commit is contained in:
wty-yy
2025-12-18 23:14:18 +08:00
parent 1e1a04b4c0
commit 939dc69b7e
25 changed files with 411 additions and 50 deletions

View File

@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
'''
@File : base_metric.py
@Time : 2025/12/18 20:18:45
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Base Metric Implementation
'''
from robogauge.utils.logger import logger
from robogauge.tasks.robots import RobotConfig
from robogauge.tasks.simulator.sim_data import SimData
@@ -9,6 +18,9 @@ class BaseMetric:
def __init__(self, robot_cfg: RobotConfig, **kwargs):
self.robot_cfg = robot_cfg
def reset(self):
pass
def __call__(self, sim_data: SimData, goal_data: GoalData) -> float:
value = 0.0