WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
transcription_method.hpp
Go to the documentation of this file.
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
5#include <stdint.h>
6
7namespace slp {
8
9/**
10 * Enum describing an OCP transcription method.
11 */
12enum class TranscriptionMethod : uint8_t {
13 /// Each state is a decision variable constrained to the integrated dynamics
14 /// of the previous state.
16 /// The trajectory is modeled as a series of cubic polynomials where the
17 /// centerpoint slope is constrained.
19 /// States depend explicitly as a function of all previous states and all
20 /// previous inputs.
22};
23
24} // namespace slp
Definition expression_graph.hpp:11
TranscriptionMethod
Enum describing an OCP transcription method.
Definition transcription_method.hpp:12
@ DIRECT_COLLOCATION
The trajectory is modeled as a series of cubic polynomials where the centerpoint slope is constrained...
@ SINGLE_SHOOTING
States depend explicitly as a function of all previous states and all previous inputs.
@ DIRECT_TRANSCRIPTION
Each state is a decision variable constrained to the integrated dynamics of the previous state.