This commit is contained in:
wty-yy
2025-11-27 16:04:14 +08:00
parent 14ce318bdd
commit fc7e184741
48 changed files with 759751 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
from .base_gauge import BaseGauge
from .base_gauge_config import BaseGaugeConfig
from .flat.flat_gauge import FlatGauge
from .flat.flat_gauge_config import FlatGaugeConfig

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
'''
@File : base_gauge.py
@Time : 2025/11/27 15:55:19
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Base Gauge for Robogauge
'''
from robogauge.tasks.robots.base_robot_config import RobotConfig
from robogauge.tasks.gauge.base_gauge_config import BaseGaugeConfig
class BaseGauge:
def __init__(self, cfg: BaseGaugeConfig):
self.cfg = cfg
def is_reset(self) -> bool:
return False
def is_done(self) -> bool:
return False
def get_goal(self) -> dict:
goal = {}
return goal
def update_metrics(self, sim_info: dict):
...

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
'''
@File : base_gauge_config.py
@Time : 2025/11/27 15:55:11
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Base Gauge Configuration
'''
from robogauge.utils.config import Config
class BaseGaugeConfig(Config):
gauge_class = 'BaseGauge'
class assets:
terrain_xml = '{ROBOGAUGE_ROOT_DIR}/resources/terrains/flat.xml'
terrain_spawn_xy = [0, 0] # x y [m]
class metrics:
dof_limits = True
class commands:
stance = True
max_lin_vel = True
diagonal_lin_vel = True

View File

@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
'''
@File : flat_gauge.py
@Time : 2025/11/27 16:03:11
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Flat Gauge Implementation
'''
from robogauge.tasks.gauge.base_gauge import BaseGauge
class FlatGauge(BaseGauge):
...

View File

@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
'''
@File : flat_gauge_config.py
@Time : 2025/11/27 16:03:02
@Author : wty-yy
@Version : 1.0
@Blog : https://wty-yy.github.io/
@Desc : Flat Gauge Configuration
'''
from robogauge.tasks.gauge.base_gauge_config import BaseGaugeConfig
class FlatGaugeConfig(BaseGaugeConfig):
...