File tree Expand file tree Collapse file tree
GEMstack/onboard/visualization/sr_viz/threeD/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments