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
tsid::trajectories::TrajectorySE3Constant::size
unsigned int size() const override
Definition: src/trajectories/trajectory-se3.cpp:41
tsid::trajectories::TrajectorySample::resize
void resize(unsigned int size)
Definition: trajectories/trajectory-base.hpp:58
tsid::trajectories::TrajectorySample::pos
EIGEN_MAKE_ALIGNED_OPERATOR_NEW TSID_DEPRECATED math::Vector pos
Definition: trajectories/trajectory-base.hpp:38
tsid::trajectories::TrajectorySE3Constant::has_trajectory_ended
bool has_trajectory_ended() const override
Definition: src/trajectories/trajectory-se3.cpp:63
tsid::trajectories::TrajectorySample
Definition: trajectories/trajectory-base.hpp:33
SE3
context::SE3 SE3
tsid::trajectories::TrajectoryBase::m_sample
TrajectorySample m_sample
Definition: trajectories/trajectory-base.hpp:96
ref
list ref
utils.hpp
TSID_DISABLE_WARNING_POP
#define TSID_DISABLE_WARNING_POP
Definition: macros.hpp:28
TSID_DISABLE_WARNING_DEPRECATED
#define TSID_DISABLE_WARNING_DEPRECATED
Definition: macros.hpp:29
TSID_DISABLE_WARNING_PUSH
#define TSID_DISABLE_WARNING_PUSH
Definition: macros.hpp:27
tsid::trajectories::TrajectoryBase
Definition: trajectories/trajectory-base.hpp:74
tsid::math
Definition: constraint-base.hpp:26
M
M
setup.name
name
Definition: setup.in.py:179
tsid::math::SE3ToVector
void SE3ToVector(const pinocchio::SE3 &M, RefVector vec)
Definition: src/math/utils.cpp:30
test_Tasks.sample
sample
Definition: test_Tasks.py:47
tsid::trajectories::TrajectorySE3Constant::computeNext
const TrajectorySample & computeNext() override
Definition: src/trajectories/trajectory-se3.cpp:55
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
tsid::trajectories::TrajectorySE3Constant::setReference
void setReference(const SE3 &M)
Definition: src/trajectories/trajectory-se3.cpp:43
tsid::trajectories::TrajectoryBase::getLastSample
virtual const TrajectorySample & getLastSample() const
Definition: trajectories/trajectory-base.hpp:88
trajectory-se3.hpp
tsid::trajectories::TrajectorySE3Constant::TrajectorySE3Constant
TrajectorySE3Constant(const std::string &name)
Definition: src/trajectories/trajectory-se3.cpp:26
tsid::trajectories::TrajectorySE3Constant::operator()
const TrajectorySample & operator()(double time) override
Definition: src/trajectories/trajectory-se3.cpp:51


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:17