MCPcopy Create free account
hub / github.com/MotrixLab/insactor / add_box

Function add_box

simulate/scene.py:6–7  ·  view source on GitHub ↗
(qp, box_qp)

Source from the content-addressed store, hash-verified

4import numpy as np
5
6def add_box(qp, box_qp):
7 return jp.tree_map(lambda x, y: np.concatenate([x,y], axis=-2), qp, box_qp)
8
9def remove_box(qp):
10 return jp.tree_map(lambda x: x[..., :19, :], qp), jp.tree_map(lambda x: x[..., 19:, :], qp)

Callers 1

add_scene_to_trajFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected