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

Function get_joint_default_pos

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

Source from the content-addressed store, hash-verified

178
179
180def get_joint_default_pos(joint_name):
181 for pattern, pos in joint_pos_config.items():
182 if pattern.startswith(".*"):
183 if joint_name.startswith("left") or joint_name.startswith("right"):
184 if joint_name.endswith(pattern[3:]):
185 return pos
186 else:
187 if joint_name == pattern:
188 return pos
189 return 0.0 # 默认值为0
190
191
192isaaclab_to_mujoco_reindex = [isaaclab_joint_names.index(name) for name in mujoco_joint_names]

Callers 1

deploy_mujoco.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected