- 3.0.2 core module.
TrajectoryBase.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4 **********************************************************************************************************************/
5 #ifndef CT_TRAJECTORYBASE_H_
6 #define CT_TRAJECTORYBASE_H_
7 
8 #include "../Time.h"
9 
10 namespace ct {
11 namespace core {
12 
14 
21 template <class T, typename SCALAR>
23 {
24 public:
25  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
26 
30  virtual ~TrajectoryBase(){};
31 
33  virtual T eval(const SCALAR& time) = 0;
34 };
35 
36 } /* namespace core */
37 } /* namespace ct */
38 
39 #endif // CT_TRAJECTORYBASE_H_
virtual ~TrajectoryBase()
destructor
Definition: TrajectoryBase.h:30
CppAD::AD< CppAD::cg::CG< double > > SCALAR
EIGEN_MAKE_ALIGNED_OPERATOR_NEW TrajectoryBase()
default constructor
Definition: TrajectoryBase.h:28
virtual T eval(const SCALAR &time)=0
evaluate the trajectory at a certain time
Basic interface class for a trajectory.
Definition: TrajectoryBase.h:22