Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Google deepmind Mujoco USD Tokens

From Leeroopedia
Revision as of 12:47, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Google_deepmind_Mujoco_USD_Tokens.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains USD, Token Registry
Last Updated 2026-02-15 04:00 GMT

Overview

Defines the complete set of TfToken constants used by the MjcPhysics USD schema library for attribute names, enum values, and prim type identifiers.

Description

tokens.cpp constructs the MjcPhysicsTokensType singleton which initializes all token strings used throughout the MjcPhysics USD schema. Each token is created as TfToken::Immortal to avoid destruction-order issues. The tokens cover a comprehensive range of MuJoCo concepts including actuator parameters (mjc:act, mjc:ctrlLimited, mjc:biasType), compiler settings (mjc:compiler:fuseStatic, mjc:compiler:angle), joint properties (mjc:damping, mjc:armature), integrator types (euler, implicit, implicitfast), solver types (cg, dense, elliptic), and contact parameters (mjc:condim).

Usage

Included by all MjcPhysics schema files (actuator, jointAPI, sceneAPI, tendon) and by the MuJoCo-to-USD conversion code to ensure consistent token usage across the entire USD export/import pipeline. The global MjcPhysicsTokens pointer provides access to all tokens.

Code Reference

Source Location

Key Functions

MjcPhysicsTokensType::MjcPhysicsTokensType();
// Initializes tokens: affine, auto_, cg, convex, degree, dense, elliptic, euler, exact, ...
// mjc:act, mjc:actDim, mjc:actEarly, mjc:actLimited, mjc:armature, mjc:biasType, ...
// mjc:compiler:angle, mjc:compiler:autoLimits, mjc:compiler:fuseStatic, ...
// mjc:damping, mjc:dynPrm, mjc:condim, mjc:ctrl, mjc:ctrlLimited, ...

Import

#include <mujoco/experimental/usd/mjcPhysics/tokens.h>

I/O Contract

Inputs

Name Type Required Description
(none) Tokens are statically initialized at startup

Outputs

Name Type Description
MjcPhysicsTokens MjcPhysicsTokensType* Global singleton providing all MjcPhysics TfToken constants

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment