GCC Code Coverage Report


Directory: ./
File: include/tsid/tasks/task-motion.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, NYU, MPI Tübingen
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_task_motion_hpp__
19 #define __invdyn_task_motion_hpp__
20
21 #include "tsid/tasks/task-base.hpp"
22 #include "tsid/trajectories/trajectory-base.hpp"
23
24 namespace tsid {
25 namespace tasks {
26 class TaskMotion : public TaskBase {
27 public:
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29
30 typedef math::Vector Vector;
31 typedef trajectories::TrajectorySample TrajectorySample;
32
33 TaskMotion(const std::string& name, RobotWrapper& robot);
34
35 32 virtual ~TaskMotion() {}
36
37 virtual const TrajectorySample& getReference() const;
38
39 virtual const Vector& getDesiredAcceleration() const;
40
41 virtual Vector getAcceleration(ConstRefVector dv) const;
42
43 virtual const Vector& position_error() const;
44 virtual const Vector& velocity_error() const;
45 virtual const Vector& position() const;
46 virtual const Vector& velocity() const;
47 virtual const Vector& position_ref() const;
48 virtual const Vector& velocity_ref() const;
49
50 virtual void setMask(math::ConstRefVector mask);
51 virtual const Vector& getMask() const;
52 virtual bool hasMask();
53
54 protected:
55 Vector m_mask;
56 Vector m_dummy;
57 trajectories::TrajectorySample TrajectorySample_dummy;
58 };
59 } // namespace tasks
60 } // namespace tsid
61
62 #endif // ifndef __invdyn_task_motion_hpp__
63