Skip to content

Feat: 迁移无 sensor 的 NumPy 基础 reward terms #1063

Description

@TATP-233

结果

迁移 pinned mjlab v1.6.0 中现有 UniLab facade 已能完整表达的无-sensor reward terms:is_aliveis_terminatedjoint_vel_l2action_rate_l2action_acc_l2flat_orientation_l2track_linear_velocitytrack_angular_velocitybody_angular_velocity_penalty

Scope

  • source-aligned Torch→NumPy term 与公开 exports。
  • typed context 补 action history 和 termination manager 只读 surface。
  • SceneEntityCfg joint/body selector、command name 与 RewardManager dt/weight 聚合 evidence。
  • 缺失 command/entity capability、非法 std、shape/NaN/Inf 直接报错。
  • 不迁移 torque/acceleration/power/limits:当前缺少对应正式 facade 或 backend evidence。
  • 不迁移 contact/terrain/raycast reward,不接 production task、event/reset、Hydra、runner 或 IPC。

验收

  • term 结构和数值除 import 与 Torch→NumPy 外保持 pinned source 语义。
  • 请求不存在 command 或缺失 entity view 时 fail-closed,不 assert/zero/fallback。
  • 热路径无 asset/XML/name 解析,无 Torch、IPC、runner 或 backend-private import。
  • focused tests 与 make test-all 通过。

普通行为 child;预计 3–5 个文件、≤650 行,1 PR;base 为 dev/issue-1042-manager-based-api

Umbrella: #1042
Depends on: #1061

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions