copp.solver.topp2_ra.solve

Solve a TOPP2-RA problem and return the node a(s) profile.

Syntax

a = copp.solver.topp2_ra.solve(problem, options)

Description

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.

Input Arguments

problem

Problem struct or object for the selected solver namespace.

options

Solver options struct or object for the selected solver namespace. Default: copp.solver.topp2_ra.Options()

Output Arguments

a

Second-order node profile. Element a(k) stores the squared path speed \((ds/dt)^2\) at station s(k).

Examples

MATLAB
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);

See Also

copp.solver.topp2_ra