hpp-manipulation 6.0.0
Classes for manipulation planning.
Loading...
Searching...
No Matches
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
32#include <hpp/core/steering-method.hh>
35
36namespace hpp {
37namespace manipulation {
38namespace steeringMethod {
39HPP_PREDEF_CLASS(EndEffectorTrajectory);
40typedef shared_ptr<EndEffectorTrajectory> EndEffectorTrajectoryPtr_t;
41
42using core::PathPtr_t;
43
46
73 : public core::SteeringMethod {
74 public:
75 typedef core::interval_t interval_t;
76
78 const core::ProblemConstPtr_t& problem) {
80 ptr->init(ptr);
81 return ptr;
82 }
83
114 vectorIn_t weights);
115
117 void trajectoryConstraint(const constraints::ImplicitPtr_t& ic);
118
119 const constraints::ImplicitPtr_t& trajectoryConstraint() {
120 return constraint_;
121 }
122
126 void trajectory(const PathPtr_t& eeTraj, bool se3Output);
127
132 const interval_t& timeRange);
133
134 const DifferentiableFunctionPtr_t& trajectory() const { return eeTraj_; }
135
136 const interval_t& timeRange() const { return timeRange_; }
137
138 core::SteeringMethodPtr_t copy() const {
140 ptr->init(ptr);
141 return ptr;
142 }
143
148 PathPtr_t projectedPath(vectorIn_t times, matrixIn_t configs) const;
149
150 protected:
151 EndEffectorTrajectory(const core::ProblemConstPtr_t& problem)
152 : core::SteeringMethod(problem) {}
153
155 : core::SteeringMethod(other),
156 eeTraj_(other.eeTraj_),
157 timeRange_(other.timeRange_),
158 constraint_(other.constraint_) {}
159
161
162 private:
163 core::ConstraintSetPtr_t getUpdatedConstraints() const;
164
166 interval_t timeRange_;
167 constraints::ImplicitPtr_t constraint_;
168};
170} // namespace steeringMethod
171} // namespace manipulation
172} // namespace hpp
173
174#endif // HPP_MANIPULATION_STEERING_METHOD_END_EFFECTOR_TRAJECTORY_HH
Definition graph.hh:43
Definition end-effector-trajectory.hh:73
static EndEffectorTrajectoryPtr_t create(const core::ProblemConstPtr_t &problem)
Definition end-effector-trajectory.hh:77
EndEffectorTrajectory(const core::ProblemConstPtr_t &problem)
Definition end-effector-trajectory.hh:151
const constraints::ImplicitPtr_t & trajectoryConstraint()
Definition end-effector-trajectory.hh:119
const DifferentiableFunctionPtr_t & trajectory() const
Definition end-effector-trajectory.hh:134
PathPtr_t impl_compute(ConfigurationIn_t q1, ConfigurationIn_t q2) const
PathPtr_t projectedPath(vectorIn_t times, matrixIn_t configs) const
core::interval_t interval_t
Definition end-effector-trajectory.hh:75
void trajectoryConstraint(const constraints::ImplicitPtr_t &ic)
Set the constraint whose right hand side will vary.
EndEffectorTrajectory(const EndEffectorTrajectory &other)
Definition end-effector-trajectory.hh:154
static PathPtr_t makePiecewiseLinearTrajectory(matrixIn_t points, vectorIn_t weights)
const interval_t & timeRange() const
Definition end-effector-trajectory.hh:136
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:138
#define HPP_MANIPULATION_DLLAPI
Definition config.hh:88
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
Definition main.hh:1