Repository navigation
English
SplineTrajectory v1.0.0 is a header-only C++ library for trajectory construction, evaluation and optimization.
- Cubic, quintic and septic splines with dedicated numerical kernels, analytic energy gradients and adjoint propagation.
- Shared physical inputs and matching gradients for waypoints, durations and endpoint derivatives.
- Scalar and batch evaluation, reusable samplers, and output buffers that reuse matching storage.
- Custom integral, sample, coefficient, parameter and decision costs, with built-in energy and total-duration weights.
- Bezier / MINVO convex-hull conversion, subdivision, piece views and gradient propagation.
- Bilingual guides, runnable examples, benchmarks and searchable API documentation with individual interface entries.
Requires C++17 and Eigen ≥ 3.3. All 21 tests pass, including the README and API examples.
Quick start · API documentation · Examples · API migration guide
中文
SplineTrajectory v1.0.0 是用于轨迹构造、求值和优化的 C++ 纯头文件库。
- 支持三次、五次、七次样条,保留独立数值内核,提供解析能量梯度、分项计算和伴随传播。
- 构造与优化共用物理输入,途经点、时长和端点导数的梯度采用对应布局。
- 支持单点与批量求值、可复用采样器,以及同尺寸复用的输出缓冲。
- 支持自定义积分、采样、系数、参数和决策变量代价,并提供内置平滑与总时长权重。
- 支持 Bezier / MINVO 凸包转换、细分、分片视图和梯度传播。
- 提供双语指南、可运行示例、性能对比,以及逐条展示并支持搜索的 API 文档。
依赖 C++17 和 Eigen ≥ 3.3。全部 21 项测试通过,包括 README 和 API 文档示例。
快速开始 · 在线 API 文档 · 示例 · API 迁移指南
Downloads / 下载
- Full source / 完整源码: source, examples, tests and documentation / 源码、示例、测试和文档。
- Headers + API / 头文件与 API: three public headers and offline bilingual API documentation; open
docs/api/index.html/ 三个公开头文件和离线双语 API 文档,解压后打开docs/api/index.html。