• 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.

    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; };
      }

      The timeline layer for the robot.

      • 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

      The timestamp in milliseconds.

    Returns RobotState

Generated using TypeDoc