-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcozmo_anim.fbs
103 lines (87 loc) · 1.87 KB
/
cozmo_anim.fbs
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
92
93
94
95
96
97
98
99
100
101
102
namespace Anki.CozmoAnim;
table LiftHeight {
triggerTime_ms:uint;
durationTime_ms:uint;
height_mm:ubyte;
heightVariability_mm:ubyte = 0;
}
table ProceduralFace {
triggerTime_ms:uint;
faceAngle:float = 0.0;
faceCenterX:float = 0.0;
faceCenterY:float = 0.0;
faceScaleX:float = 1.0;
faceScaleY:float = 1.0;
leftEye:[float];
rightEye:[float];
}
table HeadAngle {
triggerTime_ms:uint;
durationTime_ms:uint;
angle_deg:byte;
angleVariability_deg:ubyte = 0;
}
table RobotAudio {
triggerTime_ms:uint;
audioEventId:[long] (required);
volume:float = 1.0;
probability:[float];
hasAlts:bool = true;
}
table BackpackLights {
triggerTime_ms:uint;
durationTime_ms:uint;
Left:[float];
Right:[float];
Front:[float];
Middle:[float];
Back:[float];
}
table FaceAnimation {
triggerTime_ms:uint;
animName:string (required);
}
table Event {
triggerTime_ms:uint;
event_id:string (required);
}
table BodyMotion {
triggerTime_ms:uint;
durationTime_ms:uint;
radius_mm:string (required);
speed:short;
}
table RecordHeading {
triggerTime_ms:uint;
}
table TurnToRecordedHeading {
triggerTime_ms:uint;
durationTime_ms:uint;
offset_deg:short = 0;
speed_degPerSec:short;
accel_degPerSec2:short = 1000;
decel_degPerSec2:short = 1000;
tolerance_deg:ushort = 2;
numHalfRevs:ushort = 0;
useShortestDir:bool = false;
}
table Keyframes {
LiftHeightKeyFrame:[LiftHeight];
ProceduralFaceKeyFrame:[ProceduralFace];
HeadAngleKeyFrame:[HeadAngle];
RobotAudioKeyFrame:[RobotAudio];
BackpackLightsKeyFrame:[BackpackLights];
FaceAnimationKeyFrame:[FaceAnimation];
EventKeyFrame:[Event];
BodyMotionKeyFrame:[BodyMotion];
RecordHeadingKeyFrame:[RecordHeading];
TurnToRecordedHeadingKeyFrame:[TurnToRecordedHeading];
}
table AnimClip {
Name:string;
keyframes:Keyframes;
}
table AnimClips {
clips:[AnimClip];
}
root_type AnimClips;