Repository navigation
Expand file tree
/
Copy pathscript.js
More file actions
1096 lines (992 loc) · 58.8 KB
/
Copy pathscript.js
File metadata and controls
1096 lines (992 loc) · 58.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Brian Liu (刘嘉乾) Personal Portfolio Interactive Controller
// Bilingual Content, Canvas Animation, Project Modals & Real-time Simulators
const TRANSLATIONS = {
zh: {
nav_about: "关于我",
nav_projects: "项目矩阵",
nav_sim: "交互仿真沙盒",
nav_skills: "技能体系",
nav_experience: "工程与经历",
nav_contact: "联系与投递",
hero_badge: "具身智能 · 机器人算法 · 机电控制全栈工程师",
hero_title_prefix: "你好,我是",
hero_title_name: "刘嘉乾 (Brian)",
hero_tagline: "连接「端侧具身智能」与「高保真机电控制」的跨领域工程师",
hero_desc: "马来西亚理工大学 (UTM) 机电一体化及自动化硕士 (Top 3,GPA 3.92/4) · 雅思 7.0 (听力 8.5/口语 7.0)。深耕强化学习 (MASAC/MAPPO/H1 Locomotion)、直驱柔顺人机交互外骨骼、自主移动机器人 (AMR) 与端侧多模态感知。兼具德国/波兰高端设备本土化落地与新能源车规级机电系统研发交付实战经验。",
hero_btn_projects: "浏览核心项目",
hero_btn_resume: "下载中英文简历",
hero_btn_contact: "与我取得联系",
stat_education: "QS#153 UTM 自动化硕士",
stat_education_sub: "专业排名第 3 · GPA 3.92/4",
stat_english: "雅思 7.0 (纯正口语)",
stat_english_sub: "跨国技术 GTM 与黑盒拆解",
stat_projects: "5+ 具身与机器人项目",
stat_projects_sub: "覆盖 RL、外骨骼、AMR、VLM",
stat_experience: "3+ 年软硬件系统实战",
stat_experience_sub: "德企技术营销 · 车规级系统集成",
// About
about_title: "关于我 / Background & Philosophy",
about_subtitle: "融合软硬件边界,打造真正落地的高鲁棒性机器人系统",
about_p1: "我是一名机器人与具身智能全栈工程师,擅长解决算法与真实物理机电系统的耦合痛点。从多机器狗强化学习协同避障 (CTDE/MASAC/MAPPO) 到双足人形机器人 H1 域随机化运动控制,我始终坚持「仿真与实物紧密闭环」的研究范式。",
about_p2: "在硬件与控制端,我独立研发了单传感器直驱上肢助力外骨骼原型机,通过机构重力解耦与硬件级电导线性化,配合纯比例阻抗控制实现超低延迟的「人机合一」柔顺跟随;在移动机器人端,全栈打通了从 ESP32 轮式里程计高频 PID 闭环到 ROS/SLAM 激光与视觉融合自主导航。",
about_p3: "同时,我拥有扎实的跨国商业化工程视野。曾任职于德国 Brockhaus Measurement 负责全自动测量系统在华落地交付,并深入德国与波兰原厂完成海外黑盒技术的本土化重构;在 InvisPower 深度主导新能源汽车无线充电自动对位与升降机构系统集成,平衡机电精度与 BOM 成本。",
about_edu_title: "教育背景",
about_edu_master: "马来西亚理工大学 (UTM) · 全日制工学硕士",
about_edu_master_major: "机电一体化及自动控制 (QS 工科前 100)",
about_edu_master_desc: "导师: IEEE 会员 Dr. Kumeresan Danapalasingam | GPA: 3.92 / 4.0 (专业排名前 3)",
about_edu_bachelor: "北京信息科技大学 (BISTU) · 全日制统招工学学士",
about_edu_bachelor_major: "电气工程及其自动化",
about_edu_bachelor_desc: "绩点: 4.18 / 5.0 (专业排名第 18)",
// Projects Filter
filter_all: "全部项目 (8)",
filter_embodied: "具身智能 & 强化学习",
filter_wearable: "穿戴机器人 & 人机协作",
filter_amr: "移动底盘 & 嵌入式机电",
filter_edge: "端侧多模态 & 视觉",
filter_industry: "工业落地与量产经验",
// Sim Sandbox
sim_title: "交互仿真与控制沙盒",
sim_subtitle: "直接在浏览器中体验核心算法收敛过程与底层机电控制响应",
sim_tab_marl: "多智能体 RL 训练收敛动态 (MASAC)",
sim_tab_exo: "直驱外骨骼阻抗响应与线性度仿真",
sim_tab_amr: "差速底盘双环 PID 速度阶跃响应",
// Skills
skills_title: "核心技术栈与工程能力",
skills_subtitle: "覆盖算法、仿真、嵌入式、硬件与全球化工程沟通的全栈工具箱",
// Experience
exp_title: "工作履历与产业化实践",
exp_subtitle: "将前沿技术落地为严谨可靠的工业级产品与商业解决方案",
// Contact
contact_title: "保持联系 / 开启合作",
contact_subtitle: "期待加入前沿具身智能实验室、人形/四足机器人独角兽或高精机电系统团队",
contact_copy_email: "复制邮箱",
contact_copy_wechat: "复制微信",
contact_copied: "已复制到剪贴板!"
},
en: {
nav_about: "About",
nav_projects: "Projects",
nav_sim: "Interactive Sandbox",
nav_skills: "Skills",
nav_experience: "Experience",
nav_contact: "Contact",
hero_badge: "Embodied AI · Robotics Algorithms · Mechatronics & Control Full-Stack",
hero_title_prefix: "Hi, I am",
hero_title_name: "Brian Liu (刘嘉乾)",
hero_tagline: "Bridging Edge Embodied AI and High-Fidelity Mechatronic Control Systems",
hero_desc: "M.Eng in Mechatronics & Automatic Control from Universiti Teknologi Malaysia (UTM, Ranked Top 3, GPA 3.92/4) · IELTS 7.0 (Listening 8.5 / Speaking 7.0). Specialized in Deep Reinforcement Learning (MASAC/MAPPO/H1 Locomotion), Direct-Drive compliant wearable exoskeletons, AMRs, and Edge Multimodal Vision. Experienced in German/Polish industrial black-box reverse engineering and automotive-grade mechatronic delivery.",
hero_btn_projects: "Explore Projects",
hero_btn_resume: "Download Resume",
hero_btn_contact: "Get in Touch",
stat_education: "QS#153 UTM M.Eng Mechatronics",
stat_education_sub: "Rank 3/100+ · GPA 3.92/4.0",
stat_english: "IELTS 7.0 (Fluent Speaker)",
stat_english_sub: "Cross-border GTM & Teardowns",
stat_projects: "5+ Core Robotics Projects",
stat_projects_sub: "Covering RL, Exos, AMR & VLM",
stat_experience: "3+ Yrs Hardware & System Exp",
stat_experience_sub: "German Metrology & Automotive",
// About
about_title: "About Me / Background & Philosophy",
about_subtitle: "Fusing software intelligence with hardware physics for robust real-world robotic systems",
about_p1: "I am a Robotics and Embodied AI engineer focused on breaking the barrier between high-level learning algorithms and low-level physical dynamics. From multi-quadruped cooperative reinforcement learning (CTDE / MASAC / MAPPO) to Unitree H1 humanoid locomotion under domain randomization, I advocate a rigorous closed-loop paradigm between high-fidelity simulation and physical deployment.",
about_p2: "On the hardware & control front, I independently architected and prototyped a single-sensor direct-drive upper-limb exoskeleton. By structurally decoupling gravity loads and applying hardware conductance linearization with proportional compliance control, the system achieved near-zero latency human-following without gear backlash. In mobile robotics, I built full-stack solutions from ESP32 high-frequency dual-loop PID wheel odometry to ROS/SLAM autonomous navigation.",
about_p3: "Complementing my research, I bring solid cross-border commercialization experience. At Brockhaus Measurement (Germany), I spearheaded high-precision automated magnetic metrology delivery in China and reverse-engineered black-box control logic in German/Polish headquarters. At InvisPower, I engineered EV wireless charging alignment & lift systems, rigorously balancing motor accuracy with automotive BOM targets.",
about_edu_title: "Education",
about_edu_master: "Universiti Teknologi Malaysia (UTM) · Full-Time M.Eng",
about_edu_master_major: "Mechatronics and Automatic Control (QS Engineering Top 100)",
about_edu_master_desc: "Advisor: Dr. Kumeresan Danapalasingam (IEEE Member) | GPA: 3.92 / 4.0 (Top 3 in Program)",
about_edu_bachelor: "Beijing Information Science and Technology University · Full-Time B.Eng",
about_edu_bachelor_major: "Electrical Engineering and Automation",
about_edu_bachelor_desc: "GPA: 4.18 / 5.0 (Rank 18 in Cohort)",
// Projects Filter
filter_all: "All Projects (8)",
filter_embodied: "Embodied AI & RL",
filter_wearable: "Wearables & Exoskeletons",
filter_amr: "Mobile AMR & Embedded",
filter_edge: "Edge Multimodal & Vision",
filter_industry: "Industrial & GTM",
// Sim Sandbox
sim_title: "Interactive Simulation & Control Sandbox",
sim_subtitle: "Directly experience algorithmic convergence and low-level mechatronic dynamics in your browser",
sim_tab_marl: "Multi-Agent RL Convergence (MASAC)",
sim_tab_exo: "Direct-Drive Exoskeleton P-Control",
sim_tab_amr: "Differential AMR Dual-Loop PID Step",
// Skills
skills_title: "Technical Stack & Capabilities",
skills_subtitle: "Comprehensive toolchain spanning machine learning, physics engines, embedded firmware & cross-cultural communication",
// Experience
exp_title: "Professional & Industrial Track Record",
exp_subtitle: "Translating sophisticated research into robust, high-reliability commercial products",
// Contact
contact_title: "Get in Touch / Opportunities",
contact_subtitle: "Eager to contribute to leading Embodied AI labs, humanoid robotics pioneers, and precision mechatronics teams",
contact_copy_email: "Copy Email",
contact_copy_wechat: "Copy WeChat",
contact_copied: "Copied to clipboard!"
}
};
// Complete Project Portfolio Data
const PROJECTS_DATA = [
{
id: "marl-quadruped",
category: "embodied",
date: "2026.07",
title_zh: "多机器狗协同避障与集群导航系统 (MASAC / MAPPO)",
title_en: "Multi-Agent Quadruped Swarm Navigation & Obstacle Avoidance (MASAC / MAPPO)",
badge: "Master's Thesis Project",
metrics: [
{ label_zh: "平均回报提升", label_en: "Mean Return", val: "-648 ➔ +242 (峰值 2891)" },
{ label_zh: "Critic Loss 降幅", label_en: "Critic Loss", val: "0.32 ➔ 0.01 (彻底收敛)" },
{ label_zh: "观测维度", label_en: "Obs Space", val: "9-Dim (5路激光+目标+线角速)" }
],
tags: ["Python", "PyTorch", "ROS2", "MuJoCo", "CTDE", "MASAC", "MAPPO", "TensorBoard"],
img: "assets/marl_reward.png",
summary_zh: "基于集中式训练-分布式执行 (CTDE) 框架,在 MuJoCo 物理引擎中搭建多四足机器狗协同导航环境;设计前进驱动、转向惩罚、距离塑形与碰撞终止等多维复合奖励函数,累计完成 5 轮 3500+ 回合训练调优。彻底攻克早期训练发散与经验池内存溢出难题。",
summary_en: "Implemented Centralized Training with Decentralized Execution (CTDE) framework for multi-quadruped cooperative navigation in MuJoCo. Engineered multi-term shaped reward (progress shaping, collision penalty, orientation alignment). Overcame early training divergence and GPU memory bottlenecks across 5 rounds and 3500+ episodes.",
deepdive: {
motivation_zh: "在多智能体密集动态场景下,由于非平稳性 (Non-stationarity) 与部分可观测性 (POMDP),传统单智能体强化学习极易发散且机器狗之间容易发生不可预期的自碰与死锁。",
motivation_en: "In dense dynamic multi-agent environments, non-stationarity and partial observability (POMDP) cause traditional single-agent RL to diverge, leading to high collision rates and navigation deadlock.",
architecture_zh: "架构采用集中式 Critic 评估联合状态动作对,分散式 Actor 依据个体 9 维局部观测独立输出连续线速度与角速度指令。环境与算法解耦为 ROS2 独立通信节点。",
architecture_en: "Architecture uses a centralized Critic evaluating joint state-action pairs while decentralized Actors infer continuous linear/angular velocities from local 9D observations (5-beam LiDAR + target vector + linear/angular velocity).",
key_solutions_zh: [
"**碰撞即终止机制 (Collision Termination)**: 消除智能体卡死在障碍物中持续累积无意义惩罚,大幅净化梯度。",
"**奖励裁剪策略 (Reward Clipping [-100, 200])**: 稳定 TD-Error,防止 Critic 估值极端震荡。",
"**经验池动态缩容与断点续训**: 解决 16GB 显存溢出问题,保障千万步级别的长期探索稳定性。",
"**收敛跃迁**: 最终轮平均回报由 -648 飙升至 +242,Critic Loss 从 0.32 迅速下降并稳定在 0.01。"
],
key_solutions_en: [
"**Immediate Collision Termination**: Eradicated continuous negative penalties when stuck, radically purifying gradient signals.",
"**Reward Clipping ([-100, 200])**: Stabilized Bellman TD-errors and avoided gradient explosions in the Critic network.",
"**Dynamic Buffer Resizing & Checkpointing**: Solved 16GB VRAM memory exhaustion, enabling seamless multi-day training runs.",
"**Breakthrough Convergence**: Mean return skyrocketed from -648 to +242 (peak 2891), while Critic loss dropped from 0.32 to 0.01."
],
diagrams: ["assets/marl_reward.png", "assets/marl_heading.png", "assets/marl_repulsion.png"]
}
},
{
id: "h1-locomotion",
category: "embodied",
date: "2026.05 - 2026.06",
title_zh: "宇树 Unitree H1 双足人形机器人多摩擦力域随机化运控",
title_en: "Unitree H1 Humanoid Bipedal Locomotion with Multi-Friction Domain Randomization",
badge: "Sim2Real / Embodied AI",
metrics: [
{ label_zh: "动力学引擎", label_en: "Engine", val: "MuJoCo 3.1+ / RSL-RL" },
{ label_zh: "域随机化", label_en: "Domain Rand", val: "地面摩擦/机身质心/外力推搡" },
{ label_zh: "端侧部署", label_en: "Deployment", val: "ONNX Runtime 实时推断" }
],
tags: ["Gymnasium", "MuJoCo", "PyTorch", "RSL-RL", "ONNX", "Sim2Real", "Bipedal"],
img: "assets/marl_heading.png",
summary_zh: "针对宇树 Unitree H1 全尺寸双足人形机器人,搭建高保真 MuJoCo 3.1+ 动力学仿真环境。利用 RSL-RL 库结合 PPO 算法,针对冰面、泥泞、瓷砖等极大多样化地面摩擦因数实施严苛的域随机化训练,训练具有极高抗扰动能力的人形机器人动态行走 Policy 并导出 ONNX 模型。",
summary_en: "Constructed high-fidelity MuJoCo 3.1+ bipedal dynamics for the Unitree H1 full-sized humanoid. Trained robust locomotion policies using PPO with aggressive domain randomization across friction coefficients, external push disturbances, and body mass variations, followed by zero-overhead ONNX export for edge hardware.",
deepdive: {
motivation_zh: "人形机器人从高保真仿真迁移至实体时,极易因地面摩擦力突变、关节死区摩擦以及质心微小漂移导致步态失稳倾倒,必须在算法源头注入足够的鲁棒性。",
motivation_en: "Sim-to-real transfer for full-sized humanoids frequently fails due to surface friction uncertainties, motor latency, and payload shifts. Domain randomization at training time is vital to bridge the reality gap.",
architecture_zh: "观测包含机身姿态四元数、角速度、关节角度/角速度历史时序以及目标行走线速度指令。动作空间映射为 19 个主动关节的期望位置偏移量,底层由高频 PD 产生力矩。",
architecture_en: "Observations comprise IMU orientation quaternions, angular velocities, joint kinematics history, and target velocity commands. Actions represent target joint position offsets executed by high-rate PD controllers.",
key_solutions_zh: [
"**多摩擦力域随机化**: 在训练过程中对地面接触刚度与静动摩擦因数实施 [0.2, 1.2] 动态随机扰动。",
"**抗推搡冲击测试**: 在步态周期中随机施加 [0, 80N] 脉冲水平外力,大幅强化侧向与前后步态恢复力。",
"**低开销 ONNX 导出**: 剔除训练依赖项,实现轻量化跨平台推理,支持端侧无缝加载运行。"
],
key_solutions_en: [
"**Multi-Friction Domain Randomization**: Dynamic randomization of surface friction coefficients between [0.2, 1.2] throughout training.",
"**Impulse Push Disturbance Rejection**: Injected random lateral and longitudinal force impulses (up to 80N) to train self-stabilizing reactive stepping.",
"**Lightweight ONNX Pipeline**: Clean export of trained policy networks for low-latency inference on embedded robotics compute."
],
diagrams: []
}
},
{
id: "exoskeleton-directdrive",
category: "wearable",
date: "2024.02 - 2026.02",
title_zh: "单传感器直驱上肢助力外骨骼比例顺应控制系统 (UTM 硕士毕设)",
title_en: "Single-Sensor Direct-Drive Upper-Limb Assistive Exoskeleton (UTM Capstone)",
badge: "UTM Master's Capstone",
metrics: [
{ label_zh: "传动形式", label_en: "Actuation", val: "直驱 (DD) 零背隙高透传" },
{ label_zh: "传感架构", label_en: "Sensing", val: "MD30-60 电导硬件线性化" },
{ label_zh: "机构创新", label_en: "Mechanism", val: "重力负载机构解耦设计" }
],
tags: ["ESP32", "Direct-Drive", "FSR", "OpenSim", "P-Compliance", "Hardware Decoupling"],
img: "assets/exo_blueprint.png",
summary_zh: "针对传统穿戴式机器人减速箱背隙大、人机干涉严重以及多传感器成本高昂的痛点,创新性提出「机构重力解耦 + 硬件级薄膜压力传感器电导线性化」方案。采用纯比例有差阻抗控制,将系统稳态误差定义为人体主动意图,在 ESP32 上实现高响应、零迟滞的顺应性助力。",
summary_en: "Addressed severe human-robot interference and gearbox backlash by innovating a structural gravity-decoupling mechanism combined with hardware-level conductance linearization for thin-film FSRs. Employed proportional compliant control to turn steady-state error into active human intent proxy on ESP32.",
deepdive: {
motivation_zh: "工业搬运与上肢重物持握中,传统减速电机具有齿轮背隙与静摩擦死区,严重破坏力反馈透明度;且传感器若直接受重物重力压迫,会导致系统无法区分「人体想动」还是「重物下压」。",
motivation_en: "In manual material handling, geared actuators introduce friction deadzones and backlash that destroy haptic transparency. Moreover, if the sensor bears the payload gravity, the controller cannot discern intentional human motion from passive gravity load.",
architecture_zh: "核心由 XD-3420 24V 直驱有刷电机、解耦支架、MD30-60 薄膜压力电阻及反相比例放大电导线性转换板组成。MCU (ESP32) ADC 采样后执行滑动均值滤波、死区过滤与饱和限幅,输出高频 PWM 驱动桥式电路。",
architecture_en: "Consists of an XD-3420 24V direct-drive brushed DC motor, decoupled mounting frame, MD30-60 force sensor, and an op-amp conductance-to-voltage linearization circuit sampled by ESP32 ADC.",
key_solutions_zh: [
"**直驱拓扑保障控制保真度**: 舍弃减速箱,以电机直连负载,彻底消除传动死区与非线性摩擦,换取最高的人机物理透明度。",
"**机构重力解耦**: 负载重力由外骨骼刚性金属连杆直接传导至支撑基座,传感器接触面仅承受人手主动施加的作用力。",
"**电导级硬件线性化**: 利用反相运放电路将 FSR 的非线性阻抗转换为与压力成正比的线性电压信号 (R² > 0.96)。",
"**OpenSim 肌骨建模验证**: 建立上臂及下臂动力学模型,证实助力介入显著降低了肱二头肌在重物托举下的肌电激活水平。"
],
key_solutions_en: [
"**Direct-Drive Fidelity**: Directly coupled motor to load to eradicate backlash and static friction, maximizing interaction transparency.",
"**Structural Gravity Decoupling**: Diverted gravitational payload through the structural exoskeleton arm rather than the human skin sensor interface.",
"**Conductance Linearization**: Leveraged inverting op-amp circuitry to transform non-linear FSR resistance into a linear voltage signal (R² > 0.96).",
"**OpenSim Biomechanical Proof**: Verified significant reduction in biceps brachii activation and fatigue during isometric and dynamic lifting."
],
diagrams: ["assets/exo_blueprint.png", "assets/exo_cad.png", "assets/signal_filtering.png"]
}
},
{
id: "amr-navigation",
category: "amr",
date: "2024.02 - 2025.06",
title_zh: "室内自主移动机器人 (AMR) 全栈导航与双闭环底盘控制",
title_en: "Indoor Autonomous Mobile Robot (AMR) Full-Stack Navigation & Motion Control",
badge: "Full-Stack Robotics",
metrics: [
{ label_zh: "建图与导航", label_en: "SLAM", val: "Gmapping + 2D Costmap" },
{ label_zh: "控制频率", label_en: "Control Loop", val: "高频轮式里程计 PID 闭环" },
{ label_zh: "软硬件全栈", label_en: "System Stack", val: "ESP32 + ROS + Python GUI" }
],
tags: ["ROS", "Gmapping", "SLAM", "ESP32", "PID", "Odometry", "L298N", "Costmap"],
img: "assets/amr_gui.png",
summary_zh: "针对室内复杂多变环境下的自主避障与精准循迹需求,主导搭建两轮差速自主移动底盘。完成基于 ESP32 的双电机驱动、光电编码器测速与底层双闭环 PID 算法开发;上层部署 2D 激光雷达与深度相机融合,通过 Gmapping SLAM 实现厘米级高精栅格建图与代价地图局部避障。",
summary_en: "Built a complete two-wheel differential autonomous mobile robot platform. Developed dual-motor PID closed-loop velocity control and high-frequency optical encoder odometry on ESP32; deployed 2D LiDAR + Depth Camera sensor fusion on upper ROS stack with Gmapping SLAM and costmap path planning.",
deepdive: {
motivation_zh: "低成本移动机器人在动态室内环境中极易因为轮子打滑、编码器脉冲抖动产生里程计累计漂移,导致上层 SLAM 建图重影以及局部路径规划器频繁急刹。",
motivation_en: "Low-cost mobile robots suffer from wheel slippage and raw encoder jitter, leading to severe odometry drift, blurred SLAM maps, and jerky motion during dynamic path re-planning.",
architecture_zh: "下位机 ESP32 通过硬件中断捕获左右轮编码器脉冲,运行数字滤波与双环速度增量式 PID,解算发布真实里程计数据;上位机通过串口/ROS 通信节点分发 cmd_vel 速度矢量与全局路径点。",
architecture_en: "Lower-level ESP32 captures encoder pulses via hardware interrupts, runs digital filtering and dual-loop incremental PID, and broadcasts precise odometry; host machine distributes cmd_vel twist commands via ROS.",
key_solutions_zh: [
"**编码器高频实时解算**: 编写中断安全代码,消除脉冲丢失与溢出,提供平滑平顺的底层物理执行能力。",
"**全链路代价地图配置**: 精细调优 Global & Local Costmap 膨胀半径与线/角加速度极限,杜绝转弯甩尾碰撞。",
"**专属 Python GUI 遥控监控平台**: 实时回传左右轮编码器转速、目标设定值与误差曲线,可视化闭环调参效果。"
],
key_solutions_en: [
"**High-Precision Odometry Computation**: Interrupt-safe firmware logic to eliminate jitter and pulse loss for smooth dead-reckoning.",
"**Costmap Parameter Tuning**: Fine-tuned obstacle inflation radii and acceleration envelopes to eliminate cornering swing collisions.",
"**Custom Python Telemetry GUI**: Real-time plotting of wheel velocity setpoints, encoder feedback, and tracking errors."
],
diagrams: ["assets/amr_gui.png"]
}
},
{
id: "edge-yolo-vlm",
category: "edge",
date: "2026.06",
title_zh: "端侧 YOLOv8 + VLM 多模态视频理解与实时告警系统 (PoC)",
title_en: "Edge-Device YOLOv8 + VLM Multimodal Video Understanding PoC System",
badge: "Edge AI / Vision",
metrics: [
{ label_zh: "分层架构", label_en: "Architecture", val: "高频初筛 + 低频语义推理" },
{ label_zh: "目标平台", label_en: "Target Hardware", val: "Jetson Orin / RK3588" },
{ label_zh: "模型组合", label_en: "Models", val: "YOLOv8 + LLaVA 1.5" }
],
tags: ["Python", "YOLOv8", "LLaVA", "RTSP", "Edge AI", "OpenCV", "Jetson"],
img: "assets/signal_filtering.png",
summary_zh: "针对安防与具身场景中多模态大模型 (VLM) 算力开销大、无法逐帧全频运行的瓶颈,设计「YOLO 高频实时初筛 + VLM 低频语义推理」的分层协同架构。支持任意 RTSP 摄像头拉流、智能动态抽帧、场景异常语义理解与多模态问答告警。",
summary_en: "Solved compute and latency bottlenecks of Large Multimodal Models (VLM) on edge devices by architecting a hierarchical pipeline: high-frequency YOLOv8 object screening coupled with low-frequency LLaVA semantic scene reasoning over RTSP streams.",
deepdive: {
motivation_zh: "直接在端侧嵌入式盒子 (Jetson/RK3588) 上连续运行 7B/13B 视觉语言大模型处理 30FPS 视频会导致延迟高达数秒且功耗严重超标,无法满足实时预警需求。",
motivation_en: "Running 7B/13B Vision-Language Models directly on 30 FPS video streams on edge compute causes multi-second latencies and thermal throttling. A smart tiered trigger is required.",
architecture_zh: "系统包含 RTSP 异步多线程解码模块、YOLOv8 目标/行为轻量初筛引擎、事件驱动帧缓存池以及本地量化 LLaVA 推理服务,形成「常态轻量检测 ➔ 关键事件触发大模型深层推理」闭环。",
architecture_en: "Features an async RTSP streaming decoder, a lightweight YOLOv8 trigger engine, an event-driven frame ring buffer, and a quantized LLaVA inference server for contextual visual QA.",
key_solutions_zh: [
"**事件触发式大模型推理**: 只有当 YOLO 捕捉到指定异常行为或越界目标时,才提取前后关联关键帧送入 VLM 进行因果推理。",
"**多模态自然语言告警**: VLM 输出富语义事件摘要与决策建议,替代冷冰冰的单一分类标签。",
"**支持本地离线化运行**: 保护数据隐私,无惧网络中断,适合机器人巡检与边缘工控设备。"
],
key_solutions_en: [
"**Event-Driven VLM Activation**: VLM is activated only upon specific triggers identified by high-frequency YOLO passes.",
"**Rich Semantic Natural Language Alerts**: Yields comprehensive situational summaries and suggestions rather than simplistic bounding boxes.",
"**Full Offline Edge Execution**: Complete local inference guaranteeing data privacy and operational continuity without cloud reliance."
],
diagrams: []
}
},
{
id: "nist-ergonomics",
category: "wearable",
date: "2025.10 - 2026.01",
title_zh: "NIST Load Positioning 外骨骼人因工程与生理负荷对比研究",
title_en: "NIST Ergonomics Load Positioning Benchmark & Biomechanical Evaluation",
badge: "Human Factors & Data",
metrics: [
{ label_zh: "受试样本", label_en: "Cohort", val: "6 名受试者多路数据" },
{ label_zh: "测量指标", label_en: "Signals", val: "心率/疲劳度/操作时长/定位误差" },
{ label_zh: "分析工具", label_en: "Toolchain", val: "Python / Pandas / SciPy" }
],
tags: ["Ergonomics", "Biometrics", "Python", "Data Analysis", "Wearables", "NIST"],
img: "assets/signal_filtering.png",
summary_zh: "基于美国国家标准与技术研究院 (NIST) Load Positioning 负载定位标准测试范式,对 6 名受试者在穿戴与未穿戴外骨骼状态下的多模态动作视频、心率生理数据与任务完成效率进行深度统计学对比分析,评估外骨骼对人体肌肉疲劳的缓解效能。",
summary_en: "Conducted rigorous biomechanical evaluation following the NIST Load Positioning standardized test paradigm across 6 human subjects. Quantified physiological load, heart rate progression, and positioning accuracy to prove ergonomic efficacy of exoskeleton support.",
deepdive: {
motivation_zh: "外骨骼产品在实验室测出的力矩输出往往不能直接等同于人体真实舒适度与抗疲劳收益,必须通过标准化人因工程基准进行严密定量验证。",
motivation_en: "Actuator torque metrics alone cannot reflect real human comfort and fatigue relief. Standardized human factors benchmarks are essential for objective evaluation.",
architecture_zh: "构建端到端数据清洗与时序对齐分析管线,处理佩戴外骨骼前后受试者在标准负荷下的心率变异性 (HRV)、心率峰值攀升速率与肌肉疲劳拐点。",
architecture_en: "Constructed an automated data cleaning and time-synchronization pipeline to analyze heart rate variability, peak heart rate incline, and muscle fatigue thresholds.",
key_solutions_zh: [
"**多传感器时序同步对齐**: 消除视频动作帧与可穿戴生理采集仪之间的时间漂移。",
"**显著性分析与疲劳抑制验证**: 统计证实佩戴助力外骨骼后受试者长时间持重下的心率增长速率显著减缓,有效推迟疲劳发生。",
"**为外骨骼控制律提供真实人因反馈依据**。"
],
key_solutions_en: [
"**Multi-Modal Time Synchronization**: Realigned video action sequences with physiological telemetry to eliminate timing drifts.",
"**Ergonomic Verification**: Demonstrated statistically significant reduction in heart rate slope and muscle fatigue during sustained loading.",
"**Data-Driven Feedback for Control Tuning**: Informed assistance torque profiling based on direct human physiological limits."
],
diagrams: []
}
},
{
id: "brockhaus-engineering",
category: "industry",
date: "2023.02 - 2024.03",
title_zh: "德国 Brockhaus 高端全自动磁性测量系统落地交付与底层黑盒拆解",
title_en: "German Brockhaus Precision Automated Metrology GTM & Teardown",
badge: "Industry Experience",
metrics: [
{ label_zh: "原厂驻研", label_en: "HQ Teardown", val: "德国、波兰原厂深度底层拆解" },
{ label_zh: "本土化重构", label_en: "GTM Docs", val: "黑盒逻辑重构为标准化工程指南" },
{ label_zh: "现场交付", label_en: "Customer Success", val: "保障国内高端汽车/产线极致标定" }
],
tags: ["Brockhaus", "Precision Metrology", "Motion Control", "GTM", "Teardown", "Germany/Poland"],
img: "assets/amr_gui.png",
summary_zh: "负责德国布鲁克豪斯 (Brockhaus) 全自动测量系统在华的落地交付与技术赋能。亲赴德国与波兰原厂主导高端设备的底层逻辑拆解,成功将德方海外黑盒技术重构为国内客户可读、可落地的标准化工程指南;针对高端驱动与传感系统的复杂故障提供精准标定与顾问式支持。",
summary_en: "Spearheaded on-site deployment and technical enablement of German Brockhaus automated magnetic metrology systems in China. Stationed at German and Polish headquarters to reverse-engineer proprietary black-box motion and sensor control logic into standardized engineering handbooks.",
deepdive: {
motivation_zh: "欧洲高端工业精密测量设备往往采用封闭式通讯与黑盒驱动逻辑,进入中国产线后常出现通讯握手延迟、传感器参数漂移以及客户技术人员无法排障等痛点。",
motivation_en: "European precision metrology instruments utilize closed-source firmware and black-box protocols, creating severe friction when integrated into fast-paced Chinese manufacturing lines.",
architecture_zh: "担任跨国技术沟通枢纽,拆解多轴精密伺服驱动时序、微弱磁信号模拟前端调理与总线通讯协议,建立本土化故障诊断矩阵与标定基准。",
architecture_en: "Served as cross-border technical bridge, dissecting multi-axis servo timing, low-noise analog signal conditioning, and fieldbus protocols to build localized troubleshooting manuals.",
key_solutions_zh: [
"**原厂底层逻辑重构**: 赴德国 Lüdenscheid 及波兰基地,深入拆解核心固件通讯时序,将黑盒逻辑翻译转化为国内工程团队易懂的 SOP 指南。",
"**缩短交付周期 40%**: 形成标准化的现场校准与故障排查清单,显著降低技术准入门槛。",
"**跨文化双语无缝沟通**: 纯正英语口语表达,直接与海外首席科学家及德国工程师高效攻克疑难杂症。"
],
key_solutions_en: [
"**Teardown of Black-Box Logic**: Directly engaged with core German engineering teams in Lüdenscheid to translate complex firmware logic into actionable SOPs.",
"**Reduced Commissioning Cycles by 40%**: Established standardized parameter tuning and diagnostic checklists for factory deployment.",
"**Seamless Cross-Cultural Technical Liaison**: Fluent bilingual dialogue facilitating rapid resolution of critical industrial escalations."
],
diagrams: []
}
},
{
id: "invispower-ev-charging",
category: "industry",
date: "2021.02 - 2023.02",
title_zh: "新能源汽车大功率无线充电自动寻迹对位与升降机构系统集成",
title_en: "Automotive High-Power Wireless EV Charging Automated Alignment & Lift System",
badge: "Industry Experience",
metrics: [
{ label_zh: "核心功能", label_en: "Core System", val: "地面端与车载端毫米级贴合" },
{ label_zh: "系统优化", label_en: "Cost & Performance", val: "平衡电机精度与车规级 BOM 成本" },
{ label_zh: "跨部门联调", label_en: "Integration", val: "整车交互协议全链路闭环验证" }
],
tags: ["InvisPower", "EV Wireless Power", "System Integration", "Actuator Tuning", "Automotive BOM"],
img: "assets/amr_gui.png",
summary_zh: "针对新能源汽车无线充电「无感化补能」场景,深度参与地面发射端与车尾接收端物理贴合系统的技术论证与系统级联调。协助产品经理平衡驱动电机精度与车规 BOM 成本,完成整套机电动作闭环验证与整车交互通讯协议落地。",
summary_en: "Engineered automated vehicle-ground alignment and lift-docking mechanisms for high-power EV wireless charging at InvisPower. Balanced actuator precision against automotive BOM constraints and validated end-to-end mechatronic execution with vehicle CAN-bus protocols.",
deepdive: {
motivation_zh: "无线充电传输效率与收发线圈间的气隙距离呈非线性衰减。为达成极高传输效率,必须通过自动化机械机构在车辆停妥后实现发射端线圈的精确对位与垂直贴合,同时兼顾车底恶劣工况与严格的成本限制。",
motivation_en: "Wireless power transfer efficiency degrades exponentially with coil gap. High-efficiency charging requires automated lifting and alignment mechanisms that endure harsh automotive underbody environments under strict BOM budgets.",
architecture_zh: "包含多自由度电动升降推杆、防夹与异物检测传感器、限位反馈回路以及车载控制器通讯交互流程。",
architecture_en: "Encompassed multi-axis linear electric actuators, anti-pinch sensor feedback loops, dynamic current monitoring, and vehicle-side telematics integration.",
key_solutions_zh: [
"**机构动作闭环时序优化**: 消除升降机构震颤与机械卡滞,确保在倾斜地面与复杂胎压工况下的对位贴合可靠性。",
"**BOM 成本控制**: 在满足车规级严苛耐久测试的前提下,协助评估筛选最优性价比电机与驱动选型方案。",
"**跨部门机电软硬件大联调**: 协调整车交互逻辑与下位机保护阈值,保障高压大功率传输安全。"
],
key_solutions_en: [
"**Actuation Smoothness & Timing**: Mitigated jitter and mechanical jamming under diverse tire pressures and ground slopes.",
"**Automotive BOM Optimization**: Partnered with product management to select robust yet cost-effective motors meeting rigorous automotive qualification.",
"**Cross-Functional Joint Commissioning**: Synchronized low-level hardware safeguards with high-level CAN commands for fail-safe high-voltage operation."
],
diagrams: []
}
}
];
// Current State
let currentLang = 'zh';
let currentFilter = 'all';
let activeSimTab = 'marl';
let marlChart = null;
let amrAnimationId = null;
// Initialize when DOM ready
document.addEventListener('DOMContentLoaded', () => {
initParticleCanvas();
renderProjectCards();
initLanguageToggle();
initProjectFilters();
initModalListeners();
initSimSandbox();
initContactCopy();
initSmoothScroll();
});
// Interactive Neural Particle Canvas
function initParticleCanvas() {
const canvas = document.getElementById('hero-canvas');
if (!canvas) return;
const ctx = canvas.getContext('2d');
let width, height;
let particles = [];
const particleCount = 55;
const connectionDistance = 140;
let mouse = { x: null, y: null };
function resize() {
width = canvas.width = window.innerWidth;
height = canvas.height = canvas.parentElement.offsetHeight;
}
window.addEventListener('resize', resize);
resize();
window.addEventListener('mousemove', (e) => {
const rect = canvas.getBoundingClientRect();
mouse.x = e.clientX - rect.left;
mouse.y = e.clientY - rect.top;
});
window.addEventListener('mouseleave', () => {
mouse.x = null;
mouse.y = null;
});
class Particle {
constructor() {
this.x = Math.random() * width;
this.y = Math.random() * height;
this.vx = (Math.random() - 0.5) * 0.8;
this.vy = (Math.random() - 0.5) * 0.8;
this.radius = Math.random() * 2 + 1;
this.baseColor = Math.random() > 0.4 ? 'rgba(56, 189, 248, ' : 'rgba(129, 140, 248, ';
}
update() {
this.x += this.vx;
this.y += this.vy;
if (this.x < 0 || this.x > width) this.vx *= -1;
if (this.y < 0 || this.y > height) this.vy *= -1;
// Mouse gentle interaction
if (mouse.x !== null) {
const dx = mouse.x - this.x;
const dy = mouse.y - this.y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 120) {
this.x -= (dx / dist) * 1.5;
this.y -= (dy / dist) * 1.5;
}
}
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fillStyle = this.baseColor + '0.7)';
ctx.fill();
}
}
for (let i = 0; i < particleCount; i++) {
particles.push(new Particle());
}
function animate() {
ctx.clearRect(0, 0, width, height);
// Draw connections
for (let i = 0; i < particles.length; i++) {
for (let j = i + 1; j < particles.length; j++) {
const dx = particles[i].x - particles[j].x;
const dy = particles[i].y - particles[j].y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < connectionDistance) {
const alpha = (1 - dist / connectionDistance) * 0.25;
ctx.beginPath();
ctx.moveTo(particles[i].x, particles[i].y);
ctx.lineTo(particles[j].x, particles[j].y);
ctx.strokeStyle = `rgba(56, 189, 248, ${alpha})`;
ctx.lineWidth = 1;
ctx.stroke();
}
}
}
// Update & draw particles
particles.forEach(p => {
p.update();
p.draw();
});
requestAnimationFrame(animate);
}
animate();
}
// Render Project Cards with bilingual support & category filtering
function renderProjectCards() {
const container = document.getElementById('projects-grid');
if (!container) return;
const filtered = currentFilter === 'all'
? PROJECTS_DATA
: PROJECTS_DATA.filter(p => p.category === currentFilter);
container.innerHTML = filtered.map(p => {
const title = currentLang === 'zh' ? p.title_zh : p.title_en;
const summary = currentLang === 'zh' ? p.summary_zh : p.summary_en;
const metricsHtml = p.metrics.map(m => {
const lbl = currentLang === 'zh' ? m.label_zh : m.label_en;
return `
<div class="bg-slate-900/60 border border-slate-800 rounded-lg p-2.5">
<div class="text-xs text-slate-400 font-mono">${lbl}</div>
<div class="text-sm font-semibold text-cyan-400 font-mono mt-0.5">${m.val}</div>
</div>
`;
}).join('');
const tagsHtml = p.tags.map(t => `<span class="tech-tag">${t}</span>`).join('');
return `
<div class="glass-panel p-6 flex flex-col justify-between group hover:border-cyan-500/40 relative overflow-hidden transition-all duration-300">
<!-- Top glow subtle accent -->
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-cyan-500 via-indigo-500 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
<div>
<div class="flex items-center justify-between gap-2 mb-3">
<span class="metric-badge-blue text-xs font-mono px-2.5 py-0.5 rounded-full">${p.date}</span>
<span class="text-xs text-purple-400 font-mono bg-purple-950/40 border border-purple-800/40 px-2.5 py-0.5 rounded-full">${p.badge}</span>
</div>
<h3 class="text-xl font-bold text-slate-100 group-hover:text-cyan-300 transition-colors mb-3 leading-snug">
${title}
</h3>
<p class="text-sm text-slate-300 leading-relaxed mb-4">
${summary}
</p>
<!-- Key Metrics -->
<div class="grid grid-cols-1 sm:grid-cols-3 gap-2 mb-4">
${metricsHtml}
</div>
</div>
<div>
<!-- Tags -->
<div class="flex flex-wrap gap-1.5 mb-5">
${tagsHtml}
</div>
<!-- Deep-dive button -->
<button onclick="openProjectModal('${p.id}')"
class="w-full py-2.5 px-4 rounded-xl font-medium text-sm text-cyan-300 bg-cyan-950/40 border border-cyan-800/50 hover:bg-cyan-500 hover:text-slate-950 transition-all duration-200 flex items-center justify-center gap-2 group/btn">
<span>${currentLang === 'zh' ? '查看技术深度拆解 & 系统拓扑' : 'View Technical Deep Dive & Schematics'}</span>
<svg class="w-4 h-4 transform group-hover/btn:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/>
</svg>
</button>
</div>
</div>
`;
}).join('');
}
// Project Category Filter Handler
function initProjectFilters() {
const filterBtns = document.querySelectorAll('.filter-btn');
filterBtns.forEach(btn => {
btn.addEventListener('click', () => {
filterBtns.forEach(b => b.classList.remove('active'));
btn.classList.add('active');
currentFilter = btn.dataset.filter;
renderProjectCards();
});
});
}
// Language Switcher
function initLanguageToggle() {
const toggleBtn = document.getElementById('lang-toggle-btn');
if (!toggleBtn) return;
toggleBtn.addEventListener('click', () => {
currentLang = currentLang === 'zh' ? 'en' : 'zh';
toggleBtn.textContent = currentLang === 'zh' ? 'English' : '简体中文';
updateLanguageTexts();
renderProjectCards();
updateSimSandboxTexts();
});
}
function updateLanguageTexts() {
const t = TRANSLATIONS[currentLang];
document.querySelectorAll('[data-i18n]').forEach(el => {
const key = el.dataset.i18n;
if (t[key]) {
el.textContent = t[key];
}
});
}
// Modal deep dive system
function openProjectModal(projectId) {
const project = PROJECTS_DATA.find(p => p.id === projectId);
if (!project) return;
const modal = document.getElementById('project-modal');
const modalContent = document.getElementById('modal-body');
if (!modal || !modalContent) return;
const title = currentLang === 'zh' ? project.title_zh : project.title_en;
const deep = project.deepdive;
const isZh = currentLang === 'zh';
const solutionsList = isZh
? deep.key_solutions_zh.map(s => `<li class="mb-2 leading-relaxed text-slate-300 text-sm">${s.replace(/\*\*(.*?)\*\*/g, '<strong class="text-cyan-300">$1</strong>')}</li>`).join('')
: deep.key_solutions_en.map(s => `<li class="mb-2 leading-relaxed text-slate-300 text-sm">${s.replace(/\*\*(.*?)\*\*/g, '<strong class="text-cyan-300">$1</strong>')}</li>`).join('');
let imagesHtml = '';
if (deep.diagrams && deep.diagrams.length > 0) {
imagesHtml = `
<div class="mt-6">
<h4 class="text-sm font-semibold uppercase tracking-wider text-cyan-400 font-mono mb-3">
${isZh ? '项目工程图纸与实物数据' : 'Engineering Schematics & Experimental Plots'}
</h4>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
${deep.diagrams.map(src => `
<div class="rounded-xl border border-slate-700/60 overflow-hidden bg-slate-900/80">
<img src="${src}" alt="Engineering Diagram" class="w-full h-56 object-contain bg-slate-950 p-2" />
</div>
`).join('')}
</div>
</div>
`;
}
modalContent.innerHTML = `
<div class="flex items-center justify-between border-b border-slate-800 pb-4 mb-5">
<div>
<div class="flex items-center gap-2 mb-1.5">
<span class="metric-badge-blue text-xs font-mono">${project.date}</span>
<span class="text-xs text-purple-400 font-mono bg-purple-950/40 border border-purple-800/40 px-2 py-0.5 rounded-full">${project.badge}</span>
</div>
<h2 class="text-xl md:text-2xl font-bold text-slate-100">${title}</h2>
</div>
<button onclick="closeProjectModal()" class="text-slate-400 hover:text-white p-2 rounded-lg hover:bg-slate-800 transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
<div class="space-y-6 max-h-[70vh] overflow-y-auto pr-2">
<div>
<h4 class="text-sm font-semibold uppercase tracking-wider text-indigo-400 font-mono mb-2">
${isZh ? '问题背景与痛点 (Problem Statement)' : 'Problem Statement & Motivation'}
</h4>
<p class="text-slate-300 text-sm leading-relaxed bg-slate-900/50 p-3.5 rounded-xl border border-slate-800">
${isZh ? deep.motivation_zh : deep.motivation_en}
</p>
</div>
<div>
<h4 class="text-sm font-semibold uppercase tracking-wider text-cyan-400 font-mono mb-2">
${isZh ? '系统拓扑与算法架构 (Architecture & Pipeline)' : 'System Topology & Architecture'}
</h4>
<p class="text-slate-300 text-sm leading-relaxed bg-slate-900/50 p-3.5 rounded-xl border border-slate-800">
${isZh ? deep.architecture_zh : deep.architecture_en}
</p>
</div>
<div>
<h4 class="text-sm font-semibold uppercase tracking-wider text-emerald-400 font-mono mb-2">
${isZh ? '核心工程突破与关键解决方案' : 'Key Engineering Solutions & Breakthroughs'}
</h4>
<ul class="list-disc pl-5 space-y-1 bg-slate-900/50 p-4 rounded-xl border border-slate-800">
${solutionsList}
</ul>
</div>
${imagesHtml}
<div class="pt-2">
<div class="flex flex-wrap gap-2">
${project.tags.map(t => `<span class="tech-tag text-xs">${t}</span>`).join('')}
</div>
</div>
</div>
`;
modal.classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function closeProjectModal() {
const modal = document.getElementById('project-modal');
if (modal) {
modal.classList.add('hidden');
document.body.style.overflow = 'auto';
}
}
function initModalListeners() {
const modal = document.getElementById('project-modal');
if (modal) {
modal.addEventListener('click', (e) => {
if (e.target === modal) {
closeProjectModal();
}
});
}
window.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeProjectModal();
}
});
}
// Interactive Simulation Sandbox
function initSimSandbox() {
const tabs = document.querySelectorAll('.sim-tab-btn');
tabs.forEach(tab => {
tab.addEventListener('click', () => {
tabs.forEach(t => t.classList.remove('active'));
tab.classList.add('active');
activeSimTab = tab.dataset.sim;
document.querySelectorAll('.sim-view').forEach(v => v.classList.add('hidden'));
const activeView = document.getElementById(`sim-view-${activeSimTab}`);
if (activeView) activeView.classList.remove('hidden');
if (activeSimTab === 'marl') {
renderMarlChart(5); // default round 5
} else if (activeSimTab === 'amr') {
startAmrPidSim();
}
});
});
initMarlSimulator();
initExoSimulator();
initAmrSimulator();
}
function updateSimSandboxTexts() {
const isZh = currentLang === 'zh';
const roundDesc = document.getElementById('marl-round-desc');
if (roundDesc) {
const round = parseInt(document.getElementById('marl-round-slider')?.value || '5');
updateMarlDescription(round, isZh);
}
}
// 1. MARL Training Curve Simulator
function initMarlSimulator() {
const slider = document.getElementById('marl-round-slider');
if (!slider) return;
slider.addEventListener('input', (e) => {
const round = parseInt(e.target.value);
document.getElementById('marl-round-val').textContent = round;
renderMarlChart(round);
updateMarlDescription(round, currentLang === 'zh');
});
renderMarlChart(5);
}
function updateMarlDescription(round, isZh) {
const descEl = document.getElementById('marl-round-desc');
if (!descEl) return;
const descriptions = {
1: isZh ? "【第1轮】基线发散:未经裁剪的奖励导致 Actor 陷入死角,Critic Loss 震荡至 0.32+,平均回报恶化至 -648。" : "[Round 1] Baseline Divergence: Unclipped rewards caused Actor deadlocks; Critic loss oscillated at 0.32+, mean return plunged to -648.",
2: isZh ? "【第2轮】引入碰撞终止:消除死角持续负惩罚,梯度开始变纯净,回报提升至 -180。" : "[Round 2] Collision Termination: Eradicated prolonged negative penalties in traps; gradient cleaned up, return rose to -180.",
3: isZh ? "【第3轮】奖励裁剪 [-100, 200]:防止极端梯度爆炸,Critic 估值平稳,回报突破至 0 水平线。" : "[Round 3] Reward Clipping [-100, 200]: Suppressed extreme TD-error spikes, Critic estimates stabilized, return crossed 0.",
4: isZh ? "【第4轮】经验池缩容与重采样:克服 16GB 显存瓶颈,训练步数延长,回报攀升至 +120。" : "[Round 4] Buffer Resizing & Resampling: Overcame 16GB VRAM limit, extended training steps, return climbed to +120.",
5: isZh ? "【第5轮】全面收敛:多机器狗协同避障成功率 > 92%,平均回报跃迁至 +242 (峰值 2891),Critic Loss 降至 0.01!" : "[Round 5] Full Convergence: Multi-robot dog avoidance success > 92%, mean return surged to +242 (peak 2891), Critic Loss plummeted to 0.01!"
};
descEl.textContent = descriptions[round] || "";
}
function renderMarlChart(round) {
const canvas = document.getElementById('marl-chart');
if (!canvas) return;
const ctx = canvas.getContext('2d');
const w = canvas.width = canvas.parentElement.offsetWidth;
const h = canvas.height = 240;
ctx.clearRect(0, 0, w, h);
// Draw grid lines
ctx.strokeStyle = 'rgba(255, 255, 255, 0.06)';
ctx.lineWidth = 1;
for (let y = 30; y < h; y += 40) {
ctx.beginPath();
ctx.moveTo(40, y);
ctx.lineTo(w - 20, y);
ctx.stroke();
}
// Draw zero axis line
const zeroY = h * 0.65;
ctx.strokeStyle = 'rgba(255, 255, 255, 0.2)';
ctx.beginPath();
ctx.moveTo(40, zeroY);
ctx.lineTo(w - 20, zeroY);
ctx.stroke();
ctx.fillStyle = '#64748b';
ctx.font = '10px JetBrains Mono';
ctx.fillText('0 Return', 45, zeroY - 5);
// Generate synthetic trajectory based on round
const points = 60;
const stepX = (w - 70) / points;
let rewardData = [];
for (let i = 0; i <= points; i++) {
const t = i / points;
let base;
if (round === 1) {
base = -400 - Math.sin(t * 10) * 150 - t * 200;
} else if (round === 2) {
base = -450 + t * 250 + (Math.random() - 0.5) * 50;
} else if (round === 3) {
base = -300 + t * 320 + (Math.random() - 0.5) * 40;
} else if (round === 4) {
base = -200 + t * 350 + (Math.random() - 0.5) * 35;
} else {
// Round 5: dramatic jump to +242
base = -250 + Math.pow(t, 1.4) * 500 + (Math.random() - 0.5) * 30;
}
rewardData.push(base);
}
// Plot Curve
ctx.beginPath();
ctx.strokeStyle = '#38bdf8';
ctx.lineWidth = 2.5;
rewardData.forEach((val, idx) => {
// scale: val from -800 to +400 mapped to h-20 to 20
const py = zeroY - (val / 500) * (h * 0.45);
const px = 45 + idx * stepX;
if (idx === 0) ctx.moveTo(px, py);
else ctx.lineTo(px, py);
});
ctx.stroke();
// Glow fill under line
ctx.lineTo(45 + points * stepX, zeroY);
ctx.lineTo(45, zeroY);
ctx.fillStyle = 'rgba(56, 189, 248, 0.08)';
ctx.fill();
// Draw final metric label
const finalVal = Math.round(rewardData[points]);
ctx.fillStyle = finalVal >= 0 ? '#34d399' : '#f87171';
ctx.font = 'bold 12px JetBrains Mono';
ctx.fillText(`Final Reward: ${finalVal > 0 ? '+' : ''}${finalVal}`, w - 180, 30);
}
// 2. Exoskeleton Direct-Drive P-Control Simulator
function initExoSimulator() {
const forceSlider = document.getElementById('exo-force-slider');
if (!forceSlider) return;
forceSlider.addEventListener('input', (e) => {
const force = parseFloat(e.target.value); // 0N - 30N
updateExoSimulation(force);
});
updateExoSimulation(10);
}
function updateExoSimulation(force) {
// Model: FSR Conductance G = k * F (linearized)
// Voltage V = min(3.3, G * Rf) = min(3.3, 0.1 * force)
// Assist Torque = Kp * max(0, force - Deadband) with Saturation
const deadband = 2.0; // 2N deadband
const effectiveForce = Math.max(0, force - deadband);
const voltage = Math.min(3.3, (force * 0.11)).toFixed(2);
const pwmDuty = Math.min(100, Math.round((effectiveForce / 25) * 100));
const torque = Math.min(0.32, (effectiveForce * 0.014)).toFixed(3); // XD-3420 direct drive rated max ~0.3N.m
document.getElementById('exo-force-val').textContent = force.toFixed(1) + ' N';
document.getElementById('exo-voltage-val').textContent = voltage + ' V';
document.getElementById('exo-pwm-val').textContent = pwmDuty + ' %';
document.getElementById('exo-torque-val').textContent = torque + ' N·m';
// Update visual bar
const torqueBar = document.getElementById('exo-torque-bar');
if (torqueBar) {
const pct = Math.min(100, (parseFloat(torque) / 0.32) * 100);
torqueBar.style.width = pct + '%';
}
}
// 3. AMR Dual-Loop PID Step Tracker
function initAmrSimulator() {
const pSlider = document.getElementById('amr-kp-slider');
const spSlider = document.getElementById('amr-sp-slider');
if (!pSlider || !spSlider) return;
[pSlider, spSlider].forEach(s => {
s.addEventListener('input', () => {
document.getElementById('amr-kp-val').textContent = pSlider.value;
document.getElementById('amr-sp-val').textContent = spSlider.value + ' m/s';
});
});
startAmrPidSim();
}
function startAmrPidSim() {
if (amrAnimationId) cancelAnimationFrame(amrAnimationId);
const canvas = document.getElementById('amr-chart');
if (!canvas) return;
const ctx = canvas.getContext('2d');
const w = canvas.width = canvas.parentElement.offsetWidth;
const h = canvas.height = 240;
let currentV = 0;
let integral = 0;
let prevError = 0;
let history = [];
const maxHistory = 80;
function loop() {
const kp = parseFloat(document.getElementById('amr-kp-slider')?.value || '1.8');
const targetV = parseFloat(document.getElementById('amr-sp-slider')?.value || '0.8');
const ki = 0.05;
const kd = 0.12;
const error = targetV - currentV;
integral += error * 0.02;
const derivative = (error - prevError) / 0.02;
prevError = error;
const controlOutput = kp * error + ki * integral + kd * derivative;
// Motor transfer function lag
currentV += (controlOutput - currentV * 0.6) * 0.08 + (Math.random() - 0.5) * 0.015;
if (currentV < 0) currentV = 0;
history.push({ target: targetV, actual: currentV });
if (history.length > maxHistory) history.shift();
// Render Canvas
ctx.clearRect(0, 0, w, h);
// Draw Grid
ctx.strokeStyle = 'rgba(255, 255, 255, 0.06)';
ctx.lineWidth = 1;
for (let y = 30; y < h; y += 45) {
ctx.beginPath();