MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / get_action_scale

Function get_action_scale

TextOpTracker/scripts/deploy_mujoco.py:154–164  ·  view source on GitHub ↗
(joint_name)

Source from the content-addressed store, hash-verified

152
153
154def get_action_scale(joint_name):
155 for pattern, scale in scale_dict.items():
156 # 用 left/right 替换 .*
157 if pattern.startswith(".*"):
158 if joint_name.startswith("left") or joint_name.startswith("right"):
159 if joint_name.endswith(pattern[3:]):
160 return scale
161 else:
162 if joint_name == pattern:
163 return scale
164 raise ValueError(f"No scale found for joint: {joint_name}")
165
166
167# 根据 isaaclab joint_pos 配置设置默认关节位置

Callers 1

deploy_mujoco.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected