problem
Problem struct or object for the selected solver namespace.
a = copp.solver.topp2_ra.solve(problem, options)
solves PROBLEM with default Options. A is returned as a column vector with length PROBLEM.s_len. Each entry stores \(a(k) = (ds/dt)^2\) at one station in PROBLEM.idx_s_interval.
forwards explicit TOPP2-RA numerical options.
The native solver borrows PROBLEM.robot during this call only. The Robot must still be valid when solve() is invoked.
problemProblem struct or object for the selected solver namespace.
optionsSolver options struct or object for the selected solver namespace. Default: copp.solver.topp2_ra.Options()
aSecond-order node profile. Element a(k) stores the squared path speed \((ds/dt)^2\) at station s(k).
ExampleCommon.setup_path(); ctx = ExampleCommon.second_order_context(); problem = copp.solver.topp2_ra.Problem(ctx.robot, idx_s_interval=ctx.idx_s_interval, a_boundary=ctx.a_boundary); options = copp.solver.topp2_ra.Options(); a_profile = copp.solver.topp2_ra.solve(problem, options); [t_final, ~, s_t] = ExampleCommon.postprocess_topp2(ctx, a_profile);