MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _emit_drift_diagnostics

Function _emit_drift_diagnostics

Scripts/codegen/_codegen_checks.py:919–930  ·  view source on GitHub ↗

Run every drift-coverage check. Each helper surfaces one class of drift. All diagnostics route through the module-level ``_DIAGS_BUFFER.pending`` collector and flush once at the end of ``collect_all_writes``.

(schema: Dict[str, Any], rules: Dict[str, Any],
                            mjspec: Optional[Dict[str, Any]])

Source from the content-addressed store, hash-verified

917 f"mapping: {missing[:5]}{'...' if len(missing) > 5 else ''}. Add to "
918 f"ue_member_from_mj or exclude_mj_members.",
919 source="enum_drift",
920 )
921
922
923def _emit_drift_diagnostics(schema: Dict[str, Any], rules: Dict[str, Any],
924 mjspec: Optional[Dict[str, Any]]) -> None:
925 """Run every drift-coverage check. Each helper surfaces one class
926 of drift. All diagnostics route through the module-level
927 ``_DIAGS_BUFFER.pending`` collector and flush once at the end of
928 ``collect_all_writes``."""
929 _check_top_level_elements_coverage(schema, rules)
930 _check_actuator_subtypes_coverage(schema, rules)
931 _check_sensor_subtypes_coverage(schema, rules)
932 _check_setto_param_coverage(schema, rules, mjspec)
933 _check_mjs_struct_field_drift(schema, rules, mjspec)

Callers 1

_phase_diagnosticsFunction · 0.90

Tested by

no test coverage detected