Skip to content

Commit 203f5af

Browse files
committed
quit using frame
1 parent 911d8ea commit 203f5af

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

GEMstack/onboard/visualization/sr_viz/threeD/src/utils/buildTimeline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export function buildTimeline(entries: LogEntry[]): TimelineData {
2121
yaw: pose.yaw ?? 0,
2222
pitch: pose.pitch ?? 0,
2323
roll: pose.roll ?? 0,
24-
metadata: entry.key === "vehicle" ? { ...entry.data } : undefined,
24+
metadata: entry.type === "VehicleState" ? { ...entry.data } : undefined,
2525
};
2626

27-
if (entry.key === "vehicle") {
27+
if (entry.type === "VehicleState") {
2828
vehicle.push(frame);
2929
} else if (entry.type === "PedestrianState") {
3030
const key = entry.key.trim();

GEMstack/onboard/visualization/sr_viz/threeD/src/utils/parseLogFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function parseLogFile(file: File): Promise<LogEntry[]> {
1717
key === 'vehicle' &&
1818
'type' in value &&
1919
'data' in value &&
20-
(value as any).data?.pose?.frame === 2
20+
(value as any).type === "VehicleState"
2121
) {
2222
entries.push({
2323
key,
@@ -35,7 +35,7 @@ export async function parseLogFile(file: File): Promise<LogEntry[]> {
3535
typeof agentValue === 'object' &&
3636
agentValue !== null &&
3737
'data' in agentValue &&
38-
(agentValue as any).data?.pose?.frame === 0
38+
(agentValue as any).type === 'AgentState'
3939
) {
4040
const inferredType = getTypeFromKey(agentId);
4141
entries.push({

0 commit comments

Comments
 (0)