Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/URLab-Sim/UnrealRoboticsLab
/ functions
Functions
1,985 in github.com/URLab-Sim/UnrealRoboticsLab
⨍
Functions
1,985
◇
Types & classes
564
↓ 1 callers
Function
_emit_export_line
(attr: str, prop_name: str, ue_type: str, mjs_fields: set | None = None,
Scripts/codegen/generate_ue_components.py:377
↓ 1 callers
Function
_emit_exports_block
Emit the ``ExportTo`` body — every write-back-to-mjs line. Order: canon exports, xml_enum exports, per-attr exports, data-packed exports, targ
Scripts/codegen/generate_ue_components.py:1322
↓ 1 callers
Function
_emit_import_line
(attr: str, prop_name: str, ue_type: str, vec3_convert: Optional[str] = None)
Scripts/codegen/generate_ue_components.py:333
↓ 1 callers
Function
_emit_imports_block
Emit the ``ImportFromXml`` body — every read-from-XML line. Order: common imports prefix (name/class), xml_enum imports, per-attr imports, can
Scripts/codegen/generate_ue_components.py:1227
↓ 1 callers
Function
_emit_passthrough_attr_line
Emit the per-type XML-attr formatter line(s) for a single attr. Returns a list of indented C++ lines (one for scalars, multiple for TArray loo
Scripts/codegen/generate_ue_components.py:1579
↓ 1 callers
Function
_emit_passthrough_canon_lines
Emit ``pos="x y z"`` / ``quat="w x y z"`` formatters for the canonicalisation-owned UPROPERTYs. Round-trips through the same UEToMjPosition /
Scripts/codegen/generate_ue_components.py:1519
↓ 1 callers
Function
_emit_passthrough_xml_enum_lines
Emit the per-attr if/else-if chain that picks the XML string for the chosen enum value.
Scripts/codegen/generate_ue_components.py:1555
↓ 1 callers
Function
_emit_per_attr_property_block
Emit per-attr UPROPERTY blocks (the bulk of the component's Details panel). Attrs handled by xml_enum_attrs are skipped — those use a hand-dec
Scripts/codegen/generate_ue_components.py:1124
↓ 1 callers
Function
_emit_synth_apply_methods_cpp
Emit the out-of-line ``ApplyToSpec`` and ``ApplyOverridesToModel`` bodies for a synthetic struct whose mirror writes go through mjSpec + mjMod
Scripts/codegen/generate_ue_components.py:3121
↓ 1 callers
Function
_emit_synth_extras_properties
Emit UPROPERTY blocks for the URLab-extra fields (non-mjxmacro additions like ``MemoryMB`` on MjOption). Returns prop_lines + extras_meta. Eac
Scripts/codegen/generate_ue_components.py:2911
↓ 1 callers
Function
_emit_synth_inline_apply_template
Emit the templated inline ``ApplyTo`` body for pure-mirror synthetic structs (mjStatistic etc.). The shape mirrors the out-of-line ApplyToSpec
Scripts/codegen/generate_ue_components.py:2961
↓ 1 callers
Function
_emit_synth_mirror_properties
Emit the UPROPERTY block for the mjxmacro mirror fields and return the parallel ``fields_meta`` list. ``fields_meta`` carries the per-field sh
Scripts/codegen/generate_ue_components.py:2842
↓ 1 callers
Function
_emit_target_collation_export
(prop_name: str, mjs_field: str)
Scripts/codegen/generate_ue_components.py:616
↓ 1 callers
Function
_emit_target_collation_import
Emit import for an mjs name-string field that the schema spells out across several xor attrs (e.g. mjsEquality.name1 is one of body1/joint1/ t
Scripts/codegen/generate_ue_components.py:594
↓ 1 callers
Function
_emit_unit_conversion_block
Emit a guarded loop / scalar block that applies per-element conversions to a UPROPERTY at import time. ``side`` is "import" or "export"; only
Scripts/codegen/generate_ue_components.py:544
↓ 1 callers
Function
_emit_unit_conversion_export
Emit the EXPORT side of a unit_conversion rule: build a temp value per-element, apply the conversion, then write to ``Element->mjs_field[i]``
Scripts/codegen/generate_ue_components.py:473
↓ 1 callers
Function
_emit_xml_enum_export
Emit the URLab-enum -> mjt* / mjsField mapping inside CODEGEN_EXPORT. Gated on ``bOverride_X`` when ``has_override_toggle`` is true (default).
Scripts/codegen/generate_ue_components.py:809
↓ 1 callers
Function
_emit_xml_enum_property_decls
Emit UPROPERTY decls for xml_enum_attrs entries that opt in via ``emit_property_decl: true``. URLab usually hand-declares the UE-side enum pro
Scripts/codegen/generate_ue_components.py:1175
↓ 1 callers
Function
_extract_mjcf_block
Pull out the body of ``std::vector<const char*> MJCF[nMJCF] = { ... };``.
Scripts/codegen/build_mjcf_schema_snapshot.py:56
↓ 1 callers
Function
_find_matching_brace
Return the index of the ``}`` matching the ``{`` at ``open_idx``. Tracks brace depth across string/char literals and line/block comments so a
Scripts/codegen/_codegen_inject.py:39
↓ 1 callers
Function
_hand_enums_from_snapshot
Pull URLab's hand-rolled ``EMj*`` enums out of the merged introspect snapshot when present. Snapshot path produces real ENUM_CONSTANT_DECL mem
Scripts/codegen/_codegen_checks.py:69
↓ 1 callers
Function
_header_hash
SHA-256 of the concatenated header content. Lets callers skip re-running the snapshot when nothing upstream changed.
Scripts/codegen/build_introspect_snapshot.py:51
↓ 1 callers
Function
_link_override_pairs
Link bOverride_X toggles to their guarded properties.
Scripts/parse_headers.py:673
↓ 1 callers
Function
_load
()
Scripts/codegen/tests/test_introspect_snapshot.py:23
↓ 1 callers
Function
_load_build_snapshot_module
()
Scripts/codegen/tests/test_libclang_hand_enum_scrape.py:40
↓ 1 callers
Function
_load_projected_mjspec
Load introspect + project into the legacy mjspec shape via the same helper the runtime uses. Mirrors the conftest fixture.
Scripts/codegen/tests/test_enum_scrape.py:22
↓ 1 callers
Function
_make_tag_pair
(tag: str)
Scripts/codegen/_codegen_inject.py:23
↓ 1 callers
Function
_normalised_path
Return the location's file as a forward-slash path relative to the plugin root, so the snapshot is byte-identical across developers (n
Scripts/codegen/build_introspect_snapshot.py:90
↓ 1 callers
Function
_parse_file
Main parse loop. Walks source sequentially, building up ParsedClass/ParsedEnum objects. Strategy: find UCLASS/USTRUCT/UENUM blocks, then scan
Scripts/parse_headers.py:313
↓ 1 callers
Function
_parse_floats
Whitespace-tolerant float list parser for inline mesh attributes.
Scripts/clean_meshes.py:111
↓ 1 callers
Function
_parse_struct_field_entry
Parse `X(type, name, count)` or `X(name, count)` or `X(name)` or `XVEC(...)`. mjxmacro flat-struct blocks have a few shapes: - `X(type, name,
Scripts/codegen/build_mjxmacro_snapshot.py:185
↓ 1 callers
Function
_parse_tree
Build a tree from the flat block list using ``"<"`` / ``">"`` markers.
Scripts/codegen/build_mjcf_schema_snapshot.py:100
↓ 1 callers
Function
_render_class
(cls: dict, class_map: dict)
Scripts/emit_docs.py:213
↓ 1 callers
Function
_render_enum
(enm: dict, class_map: dict)
Scripts/emit_docs.py:412
↓ 1 callers
Function
_resolve_clang_format
Locate clang-format: $CLANG_FORMAT, then PATH, then VS2022's LLVM.
Scripts/codegen/generate_ue_components.py:4004
↓ 1 callers
Function
_resolve_include_path
Convert ``Public/MuJoCo/Components/Actuators/MjMotorActuator.h`` to the include path ``MuJoCo/Components/Actuators/MjMotorActuator.h``.
Scripts/codegen/generate_ue_components.py:1810
↓ 1 callers
Function
_rewrite_asset_path
Rewrite an asset element's ``file=`` so it resolves from ``root_dir`` (the output _ue.xml location) after the declaring file has been spliced in.
Scripts/clean_meshes.py:135
↓ 1 callers
Function
_run
(label: str, cmd: list[str])
Scripts/codegen/regen_all.py:42
↓ 1 callers
Function
_scan_hand_enums
Walk ``public_root`` for every ``.h`` file declaring ``enum class EMj* : uint8 { ... }`` and return ``{enum_name: [members]}``. Members are st
Scripts/codegen/_codegen_checks.py:41
↓ 1 callers
Function
_scrape_hand_enums_via_libclang
Walk every .h under ``urlab_source_root`` looking for ``enum class EMj* : uint8`` blocks; hand each cleaned block to libclang for member + val
Scripts/codegen/build_introspect_snapshot.py:292
↓ 1 callers
Function
_setto_consumed_attrs
Return the set of schema attr names that an ``mjs_setTo*`` call consumes for the given subtype. These attrs are packed into the mjs spec via t
Scripts/codegen/generate_ue_components.py:1920
↓ 1 callers
Function
_shapes_compatible
True when ``ue_shape`` can legitimately back ``c_shape``. A ``TArray<X>`` (array) is shape-compatible with a fixed-size C array (vec) because
Scripts/codegen/_codegen_core.py:339
↓ 1 callers
Function
_strip_balanced_call
Return the index just past the matching ``)`` for a function-call opener at ``start``. Handles nested parens — naive ``[^)]*`` would bail on `
Scripts/codegen/build_introspect_snapshot.py:246
↓ 1 callers
Function
_strip_comments
(text: str)
Scripts/codegen/build_mjxmacro_snapshot.py:119
↓ 1 callers
Function
_strip_cpp_braces_in_strings
Remove characters that look like braces but live inside a string/char literal or comment. Used by ``_check_brace_balance`` so a diagnostic mes
Scripts/codegen/_codegen_inject.py:27
↓ 1 callers
Function
_strip_inline_bodies
Replaces all content inside { ... } with just {} to prevent capturing local vars.
Scripts/parse_headers.py:433
↓ 1 callers
Function
_strip_ue_macros_from_enum_block
Erase ``UMETA(...)`` and ``UENUM(...)`` function-like macros so a plain libclang pass can compile the enum block. Each macro turns into the em
Scripts/codegen/build_introspect_snapshot.py:271
↓ 1 callers
Function
_subclass_constructor_body
( category: str, subtype: Dict[str, Any], type_enum_name: Optional[str], )
Scripts/codegen/generate_ue_components.py:1904
↓ 1 callers
Function
_tag_pattern
(tag: str)
Scripts/codegen/_codegen_inject.py:97
↓ 1 callers
Function
_tokenise_blocks
Return a flat list of ``[strings...]`` for each ``{...}`` block in the MJCF body, in source order. Comments are stripped (``//`` line comments
Scripts/codegen/build_mjcf_schema_snapshot.py:82
↓ 1 callers
Function
_ue_type_known
(ue_type: str)
Scripts/codegen/_codegen_checks.py:237
↓ 1 callers
Function
_view_field_type_cpp
(c_type: str, field_name: str = "")
Scripts/codegen/generate_ue_components.py:2507
↓ 1 callers
Function
_walk
(node: Any)
Scripts/codegen/_codegen_checks.py:327
↓ 1 callers
Function
_walk
Visit every cursor in the translation unit. ``mujoco_include`` is the include root; we only capture decls whose file lives under it (so libc /
Scripts/codegen/build_introspect_snapshot.py:82
↓ 1 callers
Function
_write_api_index
Write docs/api/index.md — master class list, ordered by source folder structure.
Scripts/emit_docs.py:542
↓ 1 callers
Function
add_to_tree
(path_parts, items, current_node, full_path)
Scripts/emit_docs.py:604
↓ 1 callers
Function
apply_writes
Either apply, print diff, or check. Returns process exit code. Writes use ``newline="\\n"`` and a binary compare so a codegen run on Windows
Scripts/codegen/generate_ue_components.py:4053
↓ 1 callers
Method
begin
Source/URLab/Public/MuJoCo/Core/Spec/SpecIterator.h:111
↓ 1 callers
Function
clean_mesh
Clean up a mesh using trimesh.
Scripts/clean_meshes.py:49
↓ 1 callers
Function
diff_schemas
Diff two schema snapshots. Returns structured diff.
Scripts/diff_schema.py:47
↓ 1 callers
Function
emit_bind_h_injection
Read MjBind.h, fill each view struct's ``// --- CODEGEN_VIEW_<View>_FIELDS_START/END ---`` and ``// --- CODEGEN_VIEW_<View>_BIND_START/END ---
Scripts/codegen/generate_ue_components.py:2645
↓ 1 callers
Function
emit_fn
(cat_rules)
Scripts/codegen/generate_ue_components.py:3788
↓ 1 callers
Function
emit_multi_uclass
For categories whose layout is multi_uclass, emit: - the base class block (between PROPERTIES / IMPORT / EXPORT tags) - per-subtype UCLA
Scripts/codegen/generate_ue_components.py:2408
↓ 1 callers
Function
emit_schema_for_tests
Generate a C++ header that exposes schema attribute lists per category to URLab automation tests. Every category emits a ``CatProps()`` access
Scripts/codegen/generate_ue_components.py:2726
↓ 1 callers
Function
emit_xml_passthrough_body
Emit the body of a `BuildSchemaAttrsXml() const -> FString` method. For categories with ``xml_passthrough_emission: true`` in their codegen r
Scripts/codegen/generate_ue_components.py:1632
↓ 1 callers
Function
find_orphan_generated_files
Walk ``MuJoCo/Generated/`` under public + private roots and return any file the codegen no longer plans to emit. A category removed from rules
Scripts/codegen/generate_ue_components.py:4119
↓ 1 callers
Function
flatten_includes
Resolve every <include> into a single self-contained <mujoco> tree. gym-aloha (and many MJCF models) split a robot across <include> fragments
Scripts/clean_meshes.py:203
↓ 1 callers
Method
flush
Print collected diagnostics to stderr, advance ``fired_count`` by the number flushed, and clear the pending list.
Scripts/codegen/_codegen_core.py:54
↓ 1 callers
Method
from_call
(cls, attrs: Sequence[str], rules: Dict[str, Any], eleme
Scripts/codegen/generate_ue_components.py:189
↓ 1 callers
Function
get_inherited_members
(cls_name: str, memo=None)
Scripts/generate_docs.py:104
↓ 1 callers
Function
iter_canon_absorbed
Yield every attr absorbed by any canonicalisation in ``elem_canons``. Skips unknown canon keys silently — diagnostics for those live in the ru
Scripts/codegen/_codegen_core.py:190
↓ 1 callers
Function
kept_props_for_category
Return the ordered prop names the codegen will emit for one category. Order matches the canonical emission order: canon- owned properties firs
Scripts/codegen/generate_ue_components.py:2685
↓ 1 callers
Function
main
()
Scripts/clean_meshes.py:472
↓ 1 callers
Function
main
()
Scripts/generate_docs.py:207
↓ 1 callers
Function
main
()
Scripts/generate_subclasses.py:112
↓ 1 callers
Function
main
()
Scripts/diff_schema.py:144
↓ 1 callers
Function
main
()
Scripts/codegen/generate_ue_components.py:4144
↓ 1 callers
Function
main
(argv: Optional[List[str]] = None)
Scripts/codegen/build_mjcf_schema_snapshot.py:557
↓ 1 callers
Function
main
(argv: List[str] | None = None)
Scripts/codegen/build_introspect_snapshot.py:378
↓ 1 callers
Function
main
(argv: list[str] | None = None)
Scripts/codegen/regen_all.py:54
↓ 1 callers
Function
main
()
Scripts/codegen/build_mjxmacro_snapshot.py:331
↓ 1 callers
Function
materialize_inline_meshes
Rewrite ``<mesh vertex="..." face="...">`` (MuJoCo's inline-data form) to ``<mesh file="...">`` by emitting an OBJ next to the rest of the mes
Scripts/clean_meshes.py:220
↓ 1 callers
Function
parse_header
Parse a single .h file and return a ParsedFile dict.
Scripts/parse_headers.py:294
↓ 1 callers
Function
print_diff
Pretty-print the diff results.
Scripts/diff_schema.py:117
↓ 1 callers
Function
process_xml
Parse MJCF XML, convert meshes, resolve conflicts, write updated XML.
Scripts/clean_meshes.py:293
↓ 1 callers
Method
reset
(self)
Scripts/codegen/_codegen_core.py:71
↓ 1 callers
Function
resolve_inheritance
Post-process parsed data to push inherited properties and functions down into subclasses. This ensures API pages for classes like UMjJointVel
Scripts/generate_docs.py:90
↓ 1 callers
Function
step_emit
(data)
Scripts/generate_docs.py:147
↓ 1 callers
Function
step_parse
()
Scripts/generate_docs.py:69
↓ 1 callers
Function
step_update_nav
(nav_yaml: str)
Scripts/generate_docs.py:166
↓ 1 callers
Method
to_dict
(self)
Scripts/codegen/_vendored/ast_nodes.py:140
↓ 1 callers
Function
walk
(node: Any)
Scripts/codegen/_codegen_checks.py:520
↓ 1 callers
Function
write_tree
(node, depth)
Scripts/emit_docs.py:635
Method
AAMjManager
Source/URLab/Private/MuJoCo/Core/AMjManager.cpp:53
Method
AMjArticulation
Source/URLab/Private/MuJoCo/Core/MjArticulation.cpp:62
Method
AMjHeightfieldActor
Source/URLab/Private/MuJoCo/Components/QuickConvert/AMjHeightfieldActor.cpp:31
Method
AMjImpulseLauncher
Source/URLab/Private/MuJoCo/Components/Forces/MjImpulseLauncher.cpp:33
Method
AMjKeyframeCameraActor
Source/URLab/Private/Cinematics/MjKeyframeCameraActor.cpp:33
Method
AMjOrbitCameraActor
Source/URLab/Private/Cinematics/MjOrbitCameraActor.cpp:32
Method
AMjReplayManager
Source/URLab/Private/Replay/MjReplayManager.cpp:36
← previous
next →
501–600 of 1,985, ranked by callers