File size: 3,154 Bytes
d2aea71
 
 
 
 
 
 
 
 
 
 
 
 
 
550aee8
d2aea71
 
 
 
 
 
550aee8
d2aea71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// assets/js/failures.js

window.FAILURES = [
    // Added so your playback rules work when browsing these labels
    {
        name: "Time",
        family: "Meta",
        definition: "Timing annotation; clip plays from the beginning of the video until the end frame.",
        onset: "Video start",
        offset: "Annotated end frame"
    },
    {
        name: "Success",
        family: "Meta",
        definition: "Successful trial.",
        onset: "Video start",
        offset: "Video end"
    },
    {
        name: "Failure",
        family: "Meta",
        definition: "Failed trial.",
        onset: "Video start",
        offset: "Video end"
    },

    // Existing failures
    {
        name: "Safety Conflict",
        family: "Safety",
        definition: "Physical contact between participant and robot.",
        onset: "Start of contact.",
        offset: "End of contact."
    },
    {
        name: "Safety Avoidance",
        family: "Safety",
        definition: "Participant avoids physical contact with robot.",
        onset: "First frame when human backs their hand when robot is near.",
        offset: "End of video (per playback rule)."
    },
    {
        name: "Passive Wait",
        family: "Efficiency",
        definition:
            "Task deviates from optimal performance OR the human waits until the robot is finished with its task before starting their task.",
        onset: "Start frame of waiting/sub-optimal performance.",
        offset: "End frame when the human proceeds."
    },
    {
        name: "Redundant Retrieval",
        family: "Safety/Efficiency",
        definition: "Duplicate action by both agents for the same item.",
        onset: "Second agent initiates duplicate action.",
        offset: "End of video (per playback rule)."
    },
    {
        name: "Task Model Uncertainty",
        family: "Cognition",
        definition:
            "Human does not know or forget what to do next due to less task knowledge (exclude deferring because they expect the robot to do it).",
        onset: "First uncertainty cue.",
        offset: "End of video (per playback rule)."
    },
    {
        name: "Capability Miscalibration",
        family: "Cognition",
        definition:
            "Human waited because they expected the robot to do it (not because they were unsure what to do).",
        onset: "Start frame of waiting due to expectation.",
        offset: "End frame when the human proceeds."
    },
    {
        name: "Missed Grab",
        family: "Manipulation",
        definition: "Robot or human missed the bottle and has to go back and retrieve it.",
        onset: "10 frames before annotated start (per playback rule).",
        offset: "50 frames after annotated end (clamped to end of video)."
    },
    {
        name: "Slippage",
        family: "Manipulation",
        definition: "Bottle slips from grasp when moving.",
        onset: "10 frames before annotated start (per playback rule).",
        offset: "50 frames after annotated end (clamped to end of video)."
    }
];

window.FAILURE_MAP = Object.fromEntries(window.FAILURES.map(f => [f.name, f]));