新增曲柄滑块批量仿真接口

This commit is contained in:
zhangshun
2026-06-16 11:17:25 +08:00
parent c9e76d0850
commit a66952e636
6 changed files with 310 additions and 73 deletions

View File

@@ -401,6 +401,23 @@ const suite = [
{ path: "res_data.validation_errors", lengthGte: 1 },
],
},
{
id: "fourbar_simulate",
type: "static",
requestFile: "tests/testdata/fourbar/crank_slider_simulate.json",
assertions: [
{ path: "success", equals: true },
{ path: "res_data.success", equals: true },
{ path: "res_data.frame_count", equals: 5 },
{ path: "res_data.frames", lengthEquals: 5 },
{ path: "res_data.frames.0.angleDeg", equals: 0 },
{ path: "res_data.frames.4.angleDeg", equals: 180 },
{ path: "res_data.frames.0.points.B.x", exists: true },
{ path: "res_data.frames.0.poses.TCP.tx", exists: true },
{ path: "res_data.trajectory", lengthEquals: 5 },
{ path: "res_data.slider_trajectory", lengthEquals: 5 },
],
},
{
id: "quadruped_points_from_motor_angles",
type: "static",