TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
Loading...
Searching...
No Matches
trajopt::Path< Drivetrain, Solution > Struct Template Reference

#include <trajopt/path/path.hpp>

Public Attributes

std::vector< Waypoint > waypoints
 Waypoints along the path.
Drivetrain drivetrain
 Drivetrain of the robot.
std::vector< std::function< void(const Solution &solution, int64_t handle)> > callbacks

Detailed Description

template<typename Drivetrain, typename Solution>
struct trajopt::Path< Drivetrain, Solution >

A path.

Template Parameters
DrivetrainThe drivetrain type (e.g., swerve, differential).
SolutionThe solution type (e.g., swerve, differential).

Member Data Documentation

◆ callbacks

template<typename Drivetrain, typename Solution>
std::vector<std::function<void(const Solution& solution, int64_t handle)> > trajopt::Path< Drivetrain, Solution >::callbacks

A vector of callbacks to be called with the intermediate solution and a user-specified handle at every iteration of the solver.


The documentation for this struct was generated from the following file: