This commit is contained in:
wty-yy
2025-12-01 00:08:01 +08:00
parent c58ac0ab89
commit a91ea5b62e
21 changed files with 299 additions and 60 deletions

View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
'''
@File : base_goals.py
@Time : 2025/11/30 21:52:59
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Base Goal Class
'''
from robogauge.tasks.simulator.sim_data import SimData
from robogauge.tasks.gauge.goal_data import GoalData
class BaseGoal:
count = 0
total = 0
def is_done(self) -> bool:
raise NotImplementedError
def is_reset(self, sim_data: SimData) -> bool:
raise NotImplementedError
def get_goal(self, sim_data: SimData) -> GoalData:
raise NotImplementedError