MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / forced

Function forced

tools/robotwin_integration/native_render.py:95–108  ·  view source on GitHub ↗
(modeldir, model_id)

Source from the content-addressed store, hash-verified

93 return name
94
95 def forced(modeldir, model_id):
96 name = _name_of(modeldir)
97 q = queues.get(name)
98 if not q:
99 return orig(modeldir, model_id)
100 i = counters.get(name, 0)
101 if i >= len(q):
102 return orig(modeldir, model_id)
103 mid = q[i]
104 res = orig(modeldir, mid if mid is not None else model_id)
105 # One actor = collision-then-visual (same model_id); advance once, on visual.
106 if f"{_os.sep}visual{_os.sep}" in str(res):
107 counters[name] = i + 1
108 return res
109
110 cau.get_glb_or_obj_file = forced
111

Callers

nothing calls this directly

Calls 2

_name_ofFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected