|
| | Path (Path &&) noexcept |
| Path & | operator= (Path &&) noexcept |
| | ~Path () |
| | Path (const Path &)=delete |
| Path & | operator= (const Path &)=delete |
| std::size_t | dim () const |
| | Return the path dimension.
|
| std::pair< double, double > | s_range () const |
| | Return the valid path-parameter interval (s_min, s_max).
|
| PathDerivatives | evaluate_q (Span< const double > s) const |
| | Evaluate position samples only.
|
| Expected< PathDerivatives > | evaluate_q (Span< const double > s, NoThrowTag) const |
| PathDerivatives | evaluate_up_to_2nd (Span< const double > s) const |
| | Evaluate position, first derivative, and second derivative.
|
| Expected< PathDerivatives > | evaluate_up_to_2nd (Span< const double > s, NoThrowTag) const |
| PathDerivatives | evaluate_up_to_3rd (Span< const double > s) const |
| | Evaluate position, first derivative, second derivative, and third derivative.
|
| Expected< PathDerivatives > | evaluate_up_to_3rd (Span< const double > s, NoThrowTag) const |
| std::optional< SmoothingReport > | smoothing_report () const |
| | Return fitting diagnostics of a path built by from_waypoints_fitting.
|
|
| static Path | from_waypoints (MatrixView waypoints, SplineConfig config={}) |
| | Build a spline path from waypoint positions.
|
| static Expected< Path > | from_waypoints (MatrixView waypoints, SplineConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints (MatrixView waypoints, NoThrowTag) |
| static Path | from_waypoints (std::initializer_list< std::initializer_list< double > > waypoints, SplineConfig config={}) |
| | Build a spline path from waypoint-list notation.
|
| static Expected< Path > | from_waypoints (std::initializer_list< std::initializer_list< double > > waypoints, SplineConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints (std::initializer_list< std::initializer_list< double > > waypoints, NoThrowTag) |
| static Path | from_waypoints_interpolating (MatrixView waypoints, SplineConfig config={}) |
| | Build a spline path that interpolates every waypoint.
|
| static Expected< Path > | from_waypoints_interpolating (MatrixView waypoints, SplineConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints_interpolating (MatrixView waypoints, NoThrowTag) |
| static Path | from_waypoints_interpolating (std::initializer_list< std::initializer_list< double > > waypoints, SplineConfig config={}) |
| | Build an interpolating spline path from waypoint-list notation.
|
| static Expected< Path > | from_waypoints_interpolating (std::initializer_list< std::initializer_list< double > > waypoints, SplineConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints_interpolating (std::initializer_list< std::initializer_list< double > > waypoints, NoThrowTag) |
| static Path | from_waypoints_fitting (MatrixView waypoints, SmoothingConfig config={}) |
| | Build a tolerance-bounded fitted path from waypoint positions.
|
| static Expected< Path > | from_waypoints_fitting (MatrixView waypoints, SmoothingConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints_fitting (MatrixView waypoints, NoThrowTag) |
| static Path | from_waypoints_fitting (std::initializer_list< std::initializer_list< double > > waypoints, SmoothingConfig config={}) |
| | Build a tolerance-bounded fitted path from waypoint-list notation.
|
| static Expected< Path > | from_waypoints_fitting (std::initializer_list< std::initializer_list< double > > waypoints, SmoothingConfig config, NoThrowTag) |
| static Expected< Path > | from_waypoints_fitting (std::initializer_list< std::initializer_list< double > > waypoints, NoThrowTag) |
| static Path | from_parametric (PathParametric parametric, double s_min, double s_max) |
| | Build a path from a scalar-parametric formula.
|
| static Expected< Path > | from_parametric (PathParametric parametric, double s_min, double s_max, NoThrowTag) |
| static Path | from_parametric (std::size_t dim, double s_min, double s_max, PathParametricWriter parametric) |
| | Build a path from a scalar-parametric formula that writes into a buffer.
|
| static Expected< Path > | from_parametric (std::size_t dim, double s_min, double s_max, PathParametricWriter parametric, NoThrowTag) |
| static Path | from_evaluator_2nd (std::size_t dim, double s_min, double s_max, PathEvaluator2nd evaluator) |
| | Build a path from a batch evaluator with explicit derivatives up to second order.
|
| static Expected< Path > | from_evaluator_2nd (std::size_t dim, double s_min, double s_max, PathEvaluator2nd evaluator, NoThrowTag) |
| static Path | from_evaluator_3rd (std::size_t dim, double s_min, double s_max, PathEvaluator3rd evaluator) |
| | Build a path from a batch evaluator with explicit derivatives up to third order.
|
| static Expected< Path > | from_evaluator_3rd (std::size_t dim, double s_min, double s_max, PathEvaluator3rd evaluator, NoThrowTag) |
Geometric path wrapper backed by Rust Path.
Path owns a Rust-side path handle through the cxx bridge. It is movable but not copyable. The C++ public API exposes RAII ownership and throws copp::Error on construction or evaluation failure.
Definition at line 425 of file path.hpp.
Build a spline path from waypoint positions.
Equivalent alias of from_waypoints_interpolating: the spline passes through every waypoint. Both names are supported.
waypoints is a (dim x n_points) matrix where each column is one waypoint. At least one dimension and two waypoint columns are required.
Column-major views can cross the bridge directly. Row-major views are accepted for convenience and copied once into column-major storage before calling Rust.
The input view only needs to remain valid during this call; the returned Path owns the constructed Rust path.
- Parameters
-
| waypoints | Borrowed waypoint matrix. |
| config | Spline order, parameter range, and out-of-range policy. |
- Returns
- Movable owning Path.
- Exceptions
-
| copp::Error | on invalid shape, invalid config, or Rust spline construction failure. |
{0.0, 0.0},
{0.5, 0.25},
{1.0, 1.0},
});
static Matrix from_columns(std::initializer_list< std::initializer_list< double > > columns)
Build a matrix from column-major initializer-list notation.
static Path from_waypoints(MatrixView waypoints, SplineConfig config={})
Build a spline path from waypoint positions.
Build a spline path that interpolates every waypoint.
The path passes through every waypoint column at its assigned parameter, up to floating-point roundoff. Choose it when each waypoint is a position or event that must be retained; use from_waypoints_fitting when the waypoints form a reference polyline that may be approximated within tolerances.
waypoints is a (dim x n_points) matrix where each column is one waypoint. At least one dimension and two waypoint columns are required. Row-major views are copied once into column-major storage; the view only needs to remain valid during this call.
- Warning
- Unstable API: the waypoint interpolation and fitting constructor families (all from_waypoints* overloads) may change names, signatures, configuration types, and method-selection interfaces in future releases as more algorithms are added.
- Parameters
-
| waypoints | Borrowed waypoint matrix. |
| config | Spline order, parameter range, boundary states, and out-of-range policy. |
- Returns
- Movable owning Path.
- Exceptions
-
| copp::Error | on invalid shape, invalid config, or Rust spline construction failure. |
{0.0, 0.0},
{0.5, 0.25},
{1.0, 1.0},
});
static Path from_waypoints_interpolating(MatrixView waypoints, SplineConfig config={})
Build a spline path that interpolates every waypoint.
Evaluate position, first derivative, second derivative, and third derivative.
Returns q, dq, ddq, and dddq, each with shape (dim, s.size()).
- Parameters
-
- Returns
- PathDerivatives with all derivative matrices populated.