GCC Code Coverage Report


Directory: ./
File: src/tasks/task-motion.cpp
Date: 2024-08-26 20:29:39
Exec Total Coverage
Lines: 0 15 0.0%
Branches: 0 6 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 #include "tsid/tasks/task-motion.hpp"
19
20 namespace tsid {
21 namespace tasks {
22
23 typedef math::Vector Vector;
24 typedef trajectories::TrajectorySample TrajectorySample;
25
26 TaskMotion::TaskMotion(const std::string& name, RobotWrapper& robot)
27 : TaskBase(name, robot) {}
28
29 void TaskMotion::setMask(math::ConstRefVector mask) { m_mask = mask; }
30
31 bool TaskMotion::hasMask() { return m_mask.size() > 0; }
32
33 const Vector& TaskMotion::getMask() const { return m_mask; }
34
35 const TrajectorySample& TaskMotion::getReference() const {
36 return TrajectorySample_dummy;
37 }
38
39 const Vector& TaskMotion::getDesiredAcceleration() const { return m_dummy; }
40
41 Vector TaskMotion::getAcceleration(ConstRefVector) const { return m_dummy; }
42
43 const Vector& TaskMotion::position_error() const { return m_dummy; }
44 const Vector& TaskMotion::velocity_error() const { return m_dummy; }
45 const Vector& TaskMotion::position() const { return m_dummy; }
46 const Vector& TaskMotion::velocity() const { return m_dummy; }
47 const Vector& TaskMotion::position_ref() const { return m_dummy; }
48 const Vector& TaskMotion::velocity_ref() const { return m_dummy; }
49
50 } // namespace tasks
51 } // namespace tsid
52