-
Notifications
You must be signed in to change notification settings - Fork 412
/
Copy pathcheck_focus.py
57 lines (38 loc) · 1.47 KB
/
check_focus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from __future__ import annotations
import os
from argparse import Namespace
from uuid import uuid4
import rerun as rr
README = """
# Focus checks
## Preparation
TODO(ab): automate this with blueprints
TODO(ab): add lots of stuff via blueprint to make the tree more crowded and check scrolling
- Reset the blueprint
- Clone the 3D space view such as to have 2 of them.
## Checks
- Collapse all in the blueprint tree.
- Double-click on the box in the first space view, check corresponding space view expands.
- Collapse all in the blueprint tree.
- Double-click on the leaf "boxes3d" entity in the streams view, check both space views expand.
"""
def log_readme() -> None:
rr.log("readme", rr.TextDocument(README, media_type=rr.MediaType.MARKDOWN), timeless=True)
def log_some_space_views() -> None:
rr.set_time_sequence("frame_nr", 0)
rr.log(
"/objects/boxes/boxes3d",
rr.Boxes3D(centers=[[0, 0, 0], [1, 1.5, 1.15], [3, 2, 1]], half_sizes=[0.5, 1, 0.5] * 3),
)
def run(args: Namespace) -> None:
# TODO(cmc): I have no idea why this works without specifying a `recording_id`, but
# I'm not gonna rely on it anyway.
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
log_readme()
log_some_space_views()
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description="Interactive release checklist")
rr.script_add_args(parser)
args = parser.parse_args()
run(args)