- Preparing search index...
- The search index is not available
Chess Bots
Function getRobotStateAtTime
- getRobotStateAtTime(layer: {
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; controlPoint2: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { ...; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }) | ({ type: "turn"; id: string; radians: number; durationMs: number; }))[];
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; };
}, timestampMs: number): RobotState
-
Parameters
-
layer: {
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; controlPoint2: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { ...; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }) | ({ type: "turn"; id: string; radians: number; durationMs: number; }))[];
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; };
}
-
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; controlPoint2: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { ...; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }) | ({ type: "turn"; id: string; radians: number; durationMs: number; }))[]
-
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; }
-
timestampMs: number
Calculates the robot's position and heading at a specific timestamp within its timeline layer.
Returns
The robot's state (position and heading) at the given time.