Skip to content

Commit b4722be

Browse files
committed
fix: Update DataManager to use new fields for task descriptions and robot type
1 parent 696697c commit b4722be

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/js/modules/data-manager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export class DataManager {
100100
// Thumbnails are provided directly from assets/thumbnails directory
101101
// No automatic thumbnail generation - thumbnails must exist in assets/thumbnails/${path}.jpg
102102
thumbnail_url: `${this.config.paths.assetsRoot}/thumbnails/${path}.jpg`,
103-
description: raw.task_descriptions || '',
103+
// 使用新字段 tasks(从 meta/tasks.jsonl 读取的精确任务描述)
104+
// 而非旧的 task_descriptions(YAML中可能包含错误)
105+
description: raw.tasks || '',
104106
scenes: raw.scene_type || [],
105107
actions: raw.atomic_actions || [],
106108
objects: (raw.objects || []).map(obj => ({
@@ -114,7 +116,9 @@ export class DataManager {
114116
].filter(level => level !== null && level !== undefined),
115117
raw: obj
116118
})),
117-
robot: raw.device_model,
119+
// 使用新字段 robot_type(从 meta/info.json 读取)
120+
// 而非旧的 device_model(YAML中的字段)
121+
robot: raw.robot_type,
118122
endEffector: raw.end_effector_type,
119123
platformHeight: raw.operation_platform_height,
120124
raw: raw,

0 commit comments

Comments
 (0)