Compare commits
1 Commits
colonelpan
...
19bdf69830
| Author | SHA1 | Date | |
|---|---|---|---|
| 19bdf69830 |
20301
src/index.tsx
20301
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -33,30 +33,6 @@ query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
serializedShotPaths {
|
|
||||||
b64EncodedBuffer
|
|
||||||
}
|
|
||||||
cueObjectFeatures {
|
|
||||||
cueObjectDistance
|
|
||||||
cueObjectAngle
|
|
||||||
cueBallSpeed
|
|
||||||
shotDirection
|
|
||||||
spinType
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures {
|
|
||||||
make
|
|
||||||
targetPocketDistance
|
|
||||||
targetPocketAngle
|
|
||||||
targetPocketAngleDirection
|
|
||||||
marginOfErrorInDegrees
|
|
||||||
intendedPocketType
|
|
||||||
difficulty
|
|
||||||
}
|
|
||||||
pocketingIntentionInfo {
|
|
||||||
ballId
|
|
||||||
pocketId
|
|
||||||
pathMetadataIndex
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,3 +85,53 @@ query ComputePotAim(
|
|||||||
occludingBallIds
|
occludingBallIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment PositionShotCandidate on PositionShotCandidateGQL {
|
||||||
|
strike {
|
||||||
|
v0
|
||||||
|
phi
|
||||||
|
theta
|
||||||
|
a
|
||||||
|
b
|
||||||
|
}
|
||||||
|
cueFinalPosition
|
||||||
|
inTargetArea
|
||||||
|
distanceToTargetArea
|
||||||
|
robustness
|
||||||
|
potted
|
||||||
|
scratched
|
||||||
|
projection {
|
||||||
|
trajectories {
|
||||||
|
ballId
|
||||||
|
points {
|
||||||
|
time
|
||||||
|
position
|
||||||
|
}
|
||||||
|
}
|
||||||
|
events {
|
||||||
|
eventType
|
||||||
|
time
|
||||||
|
ballIds
|
||||||
|
position
|
||||||
|
}
|
||||||
|
finalState {
|
||||||
|
ballId
|
||||||
|
position
|
||||||
|
}
|
||||||
|
pottedBallIds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query SuggestPositionShot($suggestionInput: SuggestPositionShotInputGQL!) {
|
||||||
|
suggestPositionShot(suggestionInput: $suggestionInput) {
|
||||||
|
achievable
|
||||||
|
evaluatedCount
|
||||||
|
successfulCount
|
||||||
|
best {
|
||||||
|
...PositionShotCandidate
|
||||||
|
}
|
||||||
|
alternates {
|
||||||
|
...PositionShotCandidate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ type Query {
|
|||||||
targetBallId: Int!
|
targetBallId: Int!
|
||||||
pocket: PocketIdentifier!
|
pocket: PocketIdentifier!
|
||||||
): PotAimGQL!
|
): PotAimGQL!
|
||||||
|
suggestPositionShot(
|
||||||
|
suggestionInput: SuggestPositionShotInputGQL!
|
||||||
|
): PositionSuggestionGQL!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -1143,6 +1146,44 @@ type PotAimGQL {
|
|||||||
occludingBallIds: [Int!]!
|
occludingBallIds: [Int!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PositionSuggestionGQL {
|
||||||
|
achievable: Boolean!
|
||||||
|
best: PositionShotCandidateGQL
|
||||||
|
alternates: [PositionShotCandidateGQL!]!
|
||||||
|
evaluatedCount: Int!
|
||||||
|
successfulCount: Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
type PositionShotCandidateGQL {
|
||||||
|
strike: CueStrikeGQL!
|
||||||
|
cueFinalPosition: [Float!]!
|
||||||
|
inTargetArea: Boolean!
|
||||||
|
distanceToTargetArea: Float!
|
||||||
|
robustness: Int!
|
||||||
|
potted: Boolean!
|
||||||
|
scratched: Boolean!
|
||||||
|
projection: ShotProjectionGQL
|
||||||
|
}
|
||||||
|
|
||||||
|
type CueStrikeGQL {
|
||||||
|
v0: Float!
|
||||||
|
phi: Float!
|
||||||
|
theta: Float!
|
||||||
|
a: Float!
|
||||||
|
b: Float!
|
||||||
|
}
|
||||||
|
|
||||||
|
input SuggestPositionShotInputGQL {
|
||||||
|
cueBallId: Int!
|
||||||
|
targetBallId: Int!
|
||||||
|
pocket: PocketIdentifier!
|
||||||
|
targetArea: [[Float!]!]!
|
||||||
|
balls: [SimulationBallStateInputGQL!] = null
|
||||||
|
b64Image: String = null
|
||||||
|
useHomography: HomographyInputGQL = null
|
||||||
|
tableSize: Float = null
|
||||||
|
}
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
|
|||||||
Reference in New Issue
Block a user