tsid  1.8.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
trajectory-se3.hpp
Go to the documentation of this file.
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_se3_hpp__
19 #define __invdyn_trajectory_se3_hpp__
20 
22 
23 #include <pinocchio/spatial/se3.hpp>
24 
25 namespace tsid {
26 namespace trajectories {
27 
29  public:
30  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31 
33 
34  TrajectorySE3Constant(const std::string& name);
35 
36  TrajectorySE3Constant(const std::string& name, const SE3& M);
37 
38  unsigned int size() const override;
39 
40  void setReference(const SE3& M);
41 
42  const TrajectorySample& operator()(double time) override;
43 
44  const TrajectorySample& computeNext() override;
45 
46  void getLastSample(TrajectorySample& sample) const override;
47 
48  bool has_trajectory_ended() const override;
49 
50  protected:
52 };
53 
54 } // namespace trajectories
55 } // namespace tsid
56 
57 #endif // ifndef __invdyn_trajectory_se3_hpp__
Definition: trajectory-base.hpp:74
virtual const TrajectorySample & getLastSample() const
Definition: trajectory-base.hpp:88
Definition: trajectory-se3.hpp:28
const TrajectorySample & computeNext() override
Definition: trajectory-se3.cpp:55
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef pinocchio::SE3 SE3
Definition: trajectory-se3.hpp:32
bool has_trajectory_ended() const override
Definition: trajectory-se3.cpp:63
SE3 m_M
Definition: trajectory-se3.hpp:51
TrajectorySE3Constant(const std::string &name)
Definition: trajectory-se3.cpp:26
const TrajectorySample & operator()(double time) override
Definition: trajectory-se3.cpp:51
void setReference(const SE3 &M)
Definition: trajectory-se3.cpp:43
unsigned int size() const override
Definition: trajectory-se3.cpp:41
Definition: trajectory-base.hpp:33
pinocchio::SE3 SE3
Definition: trajectory-base.hpp:31
Definition: constraint-bound.hpp:25