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

Function _scripted_actions

scripts/render_native_gallery.py:93–102  ·  view source on GitHub ↗

Deterministic reach-down -> close gripper -> lift (7-D EE-delta + gripper).

(n_down=6, n_close=3, n_lift=7)

Source from the content-addressed store, hash-verified

91
92
93def _scripted_actions(n_down=6, n_close=3, n_lift=7):
94 """Deterministic reach-down -> close gripper -> lift (7-D EE-delta + gripper)."""
95 acts = []
96 for _ in range(n_down):
97 acts.append(np.array([0, 0, -0.06, 0, 0, 0, 1.0], dtype=np.float32)) # descend, gripper open
98 for _ in range(n_close):
99 acts.append(np.array([0, 0, 0, 0, 0, 0, -1.0], dtype=np.float32)) # close gripper
100 for _ in range(n_lift):
101 acts.append(np.array([0, 0, 0.06, 0, 0, 0, -1.0], dtype=np.float32)) # lift, gripper closed
102 return acts
103
104
105def _build(task):

Callers 1

run_taskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected