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

Function get_param

TextOpTracker/scripts/deploy_mujoco.py:142–151  ·  view source on GitHub ↗
(joint_name, param_dict)

Source from the content-addressed store, hash-verified

140
141
142def get_param(joint_name, param_dict):
143 for pattern, value in param_dict.items():
144 if pattern.startswith(".*"):
145 if joint_name.startswith("left") or joint_name.startswith("right"):
146 if joint_name.endswith(pattern[3:]):
147 return value
148 else:
149 if joint_name == pattern:
150 return value
151 raise ValueError(f"No value found for joint: {joint_name}")
152
153
154def get_action_scale(joint_name):

Callers 1

deploy_mujoco.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected