TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
Loading...
Searching...
No Matches
path.hpp
1
// Copyright (c) TrajoptLib contributors
2
3
#pragma once
4
5
#include <stdint.h>
6
7
#include <functional>
8
#include <vector>
9
10
#include "trajopt/constraint/constraint.hpp"
11
#include "trajopt/util/symbol_exports.hpp"
12
13
namespace
trajopt {
14
16
struct
TRAJOPT_DLLEXPORT
Waypoint
{
18
std::vector<Constraint>
waypoint_constraints
;
19
21
std::vector<Constraint>
segment_constraints
;
22
};
23
28
template
<
typename
Drivetrain,
typename
Solution>
29
struct
TRAJOPT_DLLEXPORT
Path
{
31
std::vector<Waypoint>
waypoints
;
32
34
Drivetrain
drivetrain
;
35
38
std::vector<std::function<void(
const
Solution& solution, int64_t handle)>>
39
callbacks
;
40
};
41
42
}
// namespace trajopt
trajopt::Path
Definition
path.hpp:29
trajopt::Path< DifferentialDrivetrain, DifferentialSolution >::drivetrain
DifferentialDrivetrain drivetrain
Definition
path.hpp:34
trajopt::Path< DifferentialDrivetrain, DifferentialSolution >::waypoints
std::vector< Waypoint > waypoints
Definition
path.hpp:31
trajopt::Path< DifferentialDrivetrain, DifferentialSolution >::callbacks
std::vector< std::function< void(const DifferentialSolution &solution, int64_t handle)> > callbacks
Definition
path.hpp:39
trajopt::Waypoint
A path waypoint.
Definition
path.hpp:16
trajopt::Waypoint::waypoint_constraints
std::vector< Constraint > waypoint_constraints
Instantaneous constraints at the waypoint.
Definition
path.hpp:18
trajopt::Waypoint::segment_constraints
std::vector< Constraint > segment_constraints
Continuous constraints along the segment.
Definition
path.hpp:21
include
trajopt
path
path.hpp
Generated on
for TrajoptLib by
1.15.0