Files

13 lines
614 B
Python

"""Offline interactive inspection of the measured cup scene."""
from pathlib import Path
import sys
import view_real_assembly as v
ROOT=Path(__file__).resolve().parents[1]
v.SCENE=ROOT/'data/cup_sim_capture_20260928/preview_scene.xml';v.CAMERAS=('overview','reference','side','top','left_hand_close','d405_sim');v.INFO=ROOT/'scene/cup_workcell.json'
def existing(no_build=False):
if not v.SCENE.exists():raise FileNotFoundError(v.SCENE)
v.build_scene=existing
if __name__=='__main__':
if not any(a=='--pose' or a.startswith('--pose=') for a in sys.argv):sys.argv.extend(['--pose','snapshot'])
v.main()