1 #ifndef ORG_EEROS_CONTROL_TRAJECTORYGENERATOR_HPP_
2 #define ORG_EEROS_CONTROL_TRAJECTORYGENERATOR_HPP_
9 template<
typename T,
int N = 1>
21 virtual std::array<T, N>
get(
double dt) = 0;
23 virtual bool push(std::array<T, N> start, std::array<T, N> end) = 0;
27 for(
auto&
i : e)
i = 0;
32 virtual bool push(std::array<T, N> end) {
36 virtual bool push(T start, T end) {
37 std::array<T, N> s, e;
38 for(
auto&
i : e)
i = 0;
for(
auto&
i : s)
i = 0;
39 s[0] = start; e[0] = end;
43 virtual void reset(std::array<T, N>
last) = 0;
Definition: TrajectoryGenerator.hpp:10
std::array< T, N > last
Definition: TrajectoryGenerator.hpp:46
virtual bool push(T end)
Definition: TrajectoryGenerator.hpp:25
TrajectoryGenerator()
Definition: TrajectoryGenerator.hpp:13
virtual void reset(std::array< T, N > last)=0
virtual bool push(std::array< T, N > start, std::array< T, N > end)=0
int i
Definition: RingBufferTest.cpp:12
virtual bool push(T start, T end)
Definition: TrajectoryGenerator.hpp:36
virtual bool finished()=0
virtual bool push(std::array< T, N > end)
Definition: TrajectoryGenerator.hpp:32