hpp-manipulation  9.0.2
Classes for manipulation planning.
end-effector-trajectory.hh
Go to the documentation of this file.
1 // Copyright (c) 2019, LAAS-CNRS
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // 1. Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in the
14 // documentation and/or other materials provided with the distribution.
15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 // DAMAGE.
28 
29 #ifndef HPP_MANIPULATION_STEERING_METHOD_END_EFFECTOR_TRAJECTORY_HH
30 #define HPP_MANIPULATION_STEERING_METHOD_END_EFFECTOR_TRAJECTORY_HH
31 
35 #include <hpp/manipulation/fwd.hh>
36 
37 namespace hpp {
38 namespace manipulation {
39 namespace steeringMethod {
40 HPP_PREDEF_CLASS(EndEffectorTrajectory);
41 typedef shared_ptr<EndEffectorTrajectory> EndEffectorTrajectoryPtr_t;
42 
43 using core::PathPtr_t;
44 
47 
76  : public core::SteeringMethod {
77  public:
79 
83  ptr->init(ptr);
84  return ptr;
85  }
86 
117  vectorIn_t weights);
118 
121 
123  return constraint_;
124  }
125 
129  void trajectory(const PathPtr_t& eeTraj, bool se3Output);
130 
135  const interval_t& timeRange);
136 
137  const DifferentiableFunctionPtr_t& trajectory() const { return eeTraj_; }
138 
139  const interval_t& timeRange() const { return timeRange_; }
140 
143  ptr->init(ptr);
144  return ptr;
145  }
146 
152 
153  protected:
155  : core::SteeringMethod(problem) {}
156 
158  : core::SteeringMethod(other),
159  eeTraj_(other.eeTraj_),
160  timeRange_(other.timeRange_),
161  constraint_(other.constraint_) {}
162 
164 
165  private:
166  core::ConstraintSetPtr_t getUpdatedConstraints() const;
167 
169  interval_t timeRange_;
170  constraints::ImplicitPtr_t constraint_;
171 };
173 } // namespace steeringMethod
174 } // namespace manipulation
175 } // namespace hpp
176 
177 #endif // HPP_MANIPULATION_STEERING_METHOD_END_EFFECTOR_TRAJECTORY_HH
Definition: graph.hh:43
Definition: end-effector-trajectory.hh:76
EndEffectorTrajectory(const core::ProblemConstPtr_t &problem)
Definition: end-effector-trajectory.hh:154
PathPtr_t impl_compute(ConfigurationIn_t q1, ConfigurationIn_t q2) const
PathPtr_t projectedPath(vectorIn_t times, matrixIn_t configs) const
const DifferentiableFunctionPtr_t & trajectory() const
Definition: end-effector-trajectory.hh:137
core::interval_t interval_t
Definition: end-effector-trajectory.hh:78
void trajectoryConstraint(const constraints::ImplicitPtr_t &ic)
Set the constraint whose right hand side will vary.
const interval_t & timeRange() const
Definition: end-effector-trajectory.hh:139
EndEffectorTrajectory(const EndEffectorTrajectory &other)
Definition: end-effector-trajectory.hh:157
static EndEffectorTrajectoryPtr_t create(const core::ProblemConstPtr_t &problem) HPP_MANIPULATION_DEPRECATED
Definition: end-effector-trajectory.hh:80
static PathPtr_t makePiecewiseLinearTrajectory(matrixIn_t points, vectorIn_t weights)
const constraints::ImplicitPtr_t & trajectoryConstraint()
Definition: end-effector-trajectory.hh:122
void trajectory(const PathPtr_t &eeTraj, bool se3Output)
void trajectory(const DifferentiableFunctionPtr_t &eeTraj, const interval_t &timeRange)
core::SteeringMethodPtr_t copy() const
Definition: end-effector-trajectory.hh:141
#define HPP_MANIPULATION_DLLAPI
Definition: config.hh:88
#define HPP_MANIPULATION_DEPRECATED
Definition: deprecated.hh:37
ProblemConstPtr_t problem() const
shared_ptr< Implicit > ImplicitPtr_t
shared_ptr< SteeringMethod > SteeringMethodPtr_t
std::pair< value_type, value_type > interval_t
shared_ptr< const Problem > ProblemConstPtr_t
shared_ptr< ConstraintSet > ConstraintSetPtr_t
shared_ptr< Path > PathPtr_t
shared_ptr< EndEffectorTrajectory > EndEffectorTrajectoryPtr_t
Definition: fwd.hh:115
HPP_PREDEF_CLASS(EndEffectorTrajectory)
core::DifferentiableFunctionPtr_t DifferentiableFunctionPtr_t
Definition: fwd.hh:139
core::matrixIn_t matrixIn_t
Definition: fwd.hh:147
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:49
core::vectorIn_t vectorIn_t
Definition: fwd.hh:93