Добавлены 3д объекты в виртуальный мир (молотки 5шт)
This commit is contained in:
@@ -17,6 +17,7 @@ from iiwa_genesis.config import ROOT
|
||||
def test_cpu_rgbd_scene(tmp_path, mode, names):
|
||||
cfg = yaml.safe_load((ROOT / "configs/scene.yaml").read_text())
|
||||
cfg["scene"]["mode"] = mode
|
||||
cfg["tools"] = {"allowed": ["hammer1"], "seed": 17}
|
||||
cfg["output"]["directory"] = str(tmp_path / "frames")
|
||||
path = tmp_path / "scene.yaml"
|
||||
path.write_text(yaml.safe_dump(cfg))
|
||||
@@ -26,6 +27,7 @@ def test_cpu_rgbd_scene(tmp_path, mode, names):
|
||||
"--headless", "--backend", "cpu", "--steps", "4", "--save-frames"],
|
||||
env=env, capture_output=True, text=True, timeout=600)
|
||||
assert result.returncode == 0, result.stdout + result.stderr
|
||||
assert result.stdout.count("Table tool: hammer1;") == 1
|
||||
captures = list((tmp_path / "frames").glob("*/*.npz"))
|
||||
assert len(captures) == len(names)
|
||||
for name in names:
|
||||
|
||||
Reference in New Issue
Block a user