src/trajectories/trajectory-se3.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017-2021 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 #include "tsid/math/utils.hpp"
20 
21 using namespace tsid::math;
22 
23 namespace tsid {
24 namespace trajectories {
25 
26 TrajectorySE3Constant::TrajectorySE3Constant(const std::string& name)
27  : TrajectoryBase(name) {
28  m_sample.resize(12, 6);
29 }
30 
32  const SE3& M)
33  : TrajectoryBase(name) {
34  m_sample.resize(12, 6);
39 }
40 
41 unsigned int TrajectorySE3Constant::size() const { return 6; }
42 
44  m_sample.resize(12, 6);
49 }
50 
52  return m_sample;
53 }
54 
56  return m_sample;
57 }
58 
60  sample = m_sample;
61 }
62 
63 bool TrajectorySE3Constant::has_trajectory_ended() const { return true; }
64 
65 } // namespace trajectories
66 } // namespace tsid
void SE3ToVector(const pinocchio::SE3 &M, RefVector vec)
#define TSID_DISABLE_WARNING_POP
Definition: macros.hpp:26
#define TSID_DISABLE_WARNING_PUSH
Definition: macros.hpp:25
#define TSID_DISABLE_WARNING_DEPRECATED
Definition: macros.hpp:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW TSID_DEPRECATED math::Vector pos
virtual const TrajectorySample & getLastSample() const


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