GCC Code Coverage Report


Directory: ./
File: include/tsid/trajectories/trajectory-euclidian.hpp
Date: 2024-08-26 20:29:39
Exec Total Coverage
Lines: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
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
21 #include <tsid/trajectories/trajectory-base.hpp>
22
23 namespace tsid {
24 namespace trajectories {
25
26 class TrajectoryEuclidianConstant : public TrajectoryBase {
27 public:
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29
30 typedef math::Vector Vector;
31 typedef math::ConstRefVector ConstRefVector;
32
33 TrajectoryEuclidianConstant(const std::string& name);
34
35 TrajectoryEuclidianConstant(const std::string& name, ConstRefVector ref);
36
37 14 virtual ~TrajectoryEuclidianConstant() {}
38
39 unsigned int size() const;
40
41 void setReference(ConstRefVector ref);
42
43 const TrajectorySample& operator()(double time);
44
45 const TrajectorySample& computeNext();
46
47 void getLastSample(TrajectorySample& sample) const;
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__
59