Skip to content

Spline module (BSplineSE3, InterpSplineSE3, SplineFit): documentation and test gaps #288

Open

Description

@petercorke

The spline classes are exported from spatialmath but are poorly documented and thinly tested.

Documentation

  • Add the classes to the Sphinx API docs (docs/source does not mention them)
  • Docstrings for SplineSE3, SplineFit and its error methods, and derivative
  • stochastic_downsample_interpolation: units of the epsilons, check_type, bc_type, normalize_time, that results are random and unseeded, and that local checks are not a global error bound
  • visualize: document all parameters
  • BSplineSE3: it is a non-rational B-spline (not NURBS), and it approximates the control poses rather than interpolating them
  • Convert the module's Google-style Args: docstrings to reST

Tests

  • TestSplineFit uses timestamps in [0, 1], so normalize_time is a no-op and mismatches between raw and normalized time cannot show up
  • Assert the Euclidean error as well as the angular error
  • The visualize tests are skipped in CI

To check

  • SplineFit error methods crash if called before a fit (self.spline is None)
  • InterpSplineSE3.derivative builds a Twist3 from the translation rate and the angular rate; is that the intended twist convention, and in which frame?

Related: the time-guard bug filed as #287.

Activity

  1. added
    documentation
    tech-debt
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationtech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions