trajectories/trajectory-euclidian.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 //
4 // This file is part of tsid
5 // tsid is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_trajectory_euclidian_hpp__
19 #define __invdyn_trajectory_euclidian_hpp__
20 
22 
23 namespace tsid {
24 namespace trajectories {
25 
27  public:
28  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29 
32 
33  TrajectoryEuclidianConstant(const std::string& name);
34 
35  TrajectoryEuclidianConstant(const std::string& name, ConstRefVector ref);
36 
38 
39  unsigned int size() const;
40 
41  void setReference(ConstRefVector ref);
42 
43  const TrajectorySample& operator()(double time);
44 
46 
48 
49  bool has_trajectory_ended() const;
50 
51  protected:
52  Vector m_ref;
53 };
54 
55 } // namespace trajectories
56 } // namespace tsid
57 
58 #endif // ifndef __invdyn_trajectory_euclidian_hpp__
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
const Eigen::Ref< const Vector > ConstRefVector
Definition: math/fwd.hpp:48
Eigen::TensorRef< Tensor > ref(Eigen::TensorRef< Tensor > tensor)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
virtual const TrajectorySample & getLastSample() const


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sun Jul 2 2023 02:21:51