hpp-manipulation
9.3.0
Classes for manipulation planning.
Toggle main menu visibility
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
>
33
#include <hpp/manipulation/config.hh>
34
#include <hpp/manipulation/deprecated.hh>
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
75
class
HPP_MANIPULATION_DLLAPI
EndEffectorTrajectory
76
:
public
core::SteeringMethod
{
77
public
:
78
typedef
core::interval_t
interval_t
;
79
80
static
EndEffectorTrajectoryPtr_t
create
(
81
const
problem
) HPP_MANIPULATION_DEPRECATED {
82
EndEffectorTrajectoryPtr_t
ptr(
new
EndEffectorTrajectory
(
problem
));
83
ptr->init(ptr);
84
return
ptr;
85
}
86
116
static
PathPtr_t
makePiecewiseLinearTrajectory
(
matrixIn_t
points,
117
vectorIn_t
weights);
118
120
void
trajectoryConstraint
(
const
constraints::ImplicitPtr_t
& ic);
121
122
const
constraints::ImplicitPtr_t
&
trajectoryConstraint
() {
123
return
constraint_;
124
}
125
129
void
trajectory
(
const
PathPtr_t
& eeTraj,
bool
se3Output);
130
134
void
trajectory
(
const
DifferentiableFunctionPtr_t
& eeTraj,
135
const
interval_t
&
timeRange
);
136
137
const
DifferentiableFunctionPtr_t
&
trajectory
()
const
{
return
eeTraj_; }
138
139
const
interval_t
&
timeRange
()
const
{
return
timeRange_; }
140
141
core::SteeringMethodPtr_t
copy
()
const
{
142
EndEffectorTrajectoryPtr_t
ptr(
new
EndEffectorTrajectory
(*
this
));
143
ptr->init(ptr);
144
return
ptr;
145
}
146
151
PathPtr_t
projectedPath
(
vectorIn_t
times,
matrixIn_t
configs)
const
;
152
153
protected
:
154
EndEffectorTrajectory
(
const
problem
)
155
:
problem
) {}
156
157
EndEffectorTrajectory
(
const
EndEffectorTrajectory
& other)
158
:
SteeringMethod
(other),
159
eeTraj_(other.eeTraj_),
160
timeRange_(other.timeRange_),
161
constraint_(other.constraint_) {}
162
163
PathPtr_t
impl_compute
(
ConfigurationIn_t
q1,
ConfigurationIn_t
q2)
const
;
164
165
private
:
166
core::ConstraintSetPtr_t
getUpdatedConstraints()
const
;
167
168
DifferentiableFunctionPtr_t
eeTraj_;
169
interval_t
timeRange_;
170
constraints::ImplicitPtr_t
constraint_;
171
};
172
173
}
// namespace steeringMethod
174
}
// namespace manipulation
175
}
// namespace hpp
176
177
#endif
// HPP_MANIPULATION_STEERING_METHOD_END_EFFECTOR_TRAJECTORY_HH
hpp::core::SteeringMethod
hpp::core::SteeringMethod::SteeringMethod
SteeringMethod(const ProblemConstPtr_t &problem)
hpp::core::SteeringMethod::problem
ProblemConstPtr_t problem() const
hpp::manipulation::steeringMethod::EndEffectorTrajectory
Definition
end-effector-trajectory.hh:76
hpp::manipulation::steeringMethod::EndEffectorTrajectory::EndEffectorTrajectory
EndEffectorTrajectory(const core::ProblemConstPtr_t &problem)
Definition
end-effector-trajectory.hh:154
hpp::manipulation::steeringMethod::EndEffectorTrajectory::trajectoryConstraint
const constraints::ImplicitPtr_t & trajectoryConstraint()
Definition
end-effector-trajectory.hh:122
hpp::manipulation::steeringMethod::EndEffectorTrajectory::trajectory
const DifferentiableFunctionPtr_t & trajectory() const
Definition
end-effector-trajectory.hh:137
hpp::manipulation::steeringMethod::EndEffectorTrajectory::impl_compute
PathPtr_t impl_compute(ConfigurationIn_t q1, ConfigurationIn_t q2) const
hpp::manipulation::steeringMethod::EndEffectorTrajectory::projectedPath
PathPtr_t projectedPath(vectorIn_t times, matrixIn_t configs) const
hpp::manipulation::steeringMethod::EndEffectorTrajectory::interval_t
core::interval_t interval_t
Definition
end-effector-trajectory.hh:78
hpp::manipulation::steeringMethod::EndEffectorTrajectory::trajectoryConstraint
void trajectoryConstraint(const constraints::ImplicitPtr_t &ic)
Set the constraint whose right hand side will vary.
hpp::manipulation::steeringMethod::EndEffectorTrajectory::EndEffectorTrajectory
EndEffectorTrajectory(const EndEffectorTrajectory &other)
Definition
end-effector-trajectory.hh:157
hpp::manipulation::steeringMethod::EndEffectorTrajectory::create
static EndEffectorTrajectoryPtr_t create(const core::ProblemConstPtr_t &problem) HPP_MANIPULATION_DEPRECATED
Definition
end-effector-trajectory.hh:80
hpp::manipulation::steeringMethod::EndEffectorTrajectory::makePiecewiseLinearTrajectory
static PathPtr_t makePiecewiseLinearTrajectory(matrixIn_t points, vectorIn_t weights)
hpp::manipulation::steeringMethod::EndEffectorTrajectory::timeRange
const interval_t & timeRange() const
Definition
end-effector-trajectory.hh:139
hpp::manipulation::steeringMethod::EndEffectorTrajectory::trajectory
void trajectory(const PathPtr_t &eeTraj, bool se3Output)
hpp::manipulation::steeringMethod::EndEffectorTrajectory::trajectory
void trajectory(const DifferentiableFunctionPtr_t &eeTraj, const interval_t &timeRange)
hpp::manipulation::steeringMethod::EndEffectorTrajectory::copy
core::SteeringMethodPtr_t copy() const
Definition
end-effector-trajectory.hh:141
fwd.hh
hpp::constraints::ImplicitPtr_t
shared_ptr< Implicit > ImplicitPtr_t
hpp::core
hpp::core::SteeringMethodPtr_t
shared_ptr< SteeringMethod > SteeringMethodPtr_t
hpp::core::interval_t
std::pair< value_type, value_type > interval_t
hpp::core::ProblemConstPtr_t
shared_ptr< const Problem > ProblemConstPtr_t
hpp::core::ConstraintSetPtr_t
shared_ptr< ConstraintSet > ConstraintSetPtr_t
hpp::core::PathPtr_t
shared_ptr< Path > PathPtr_t
hpp::manipulation::steeringMethod
Definition
fwd.hh:113
hpp::manipulation::steeringMethod::EndEffectorTrajectoryPtr_t
shared_ptr< EndEffectorTrajectory > EndEffectorTrajectoryPtr_t
Definition
fwd.hh:115
hpp::manipulation::steeringMethod::HPP_PREDEF_CLASS
HPP_PREDEF_CLASS(EndEffectorTrajectory)
hpp::manipulation
Definition
connected-component.hh:39
hpp::manipulation::DifferentiableFunctionPtr_t
core::DifferentiableFunctionPtr_t DifferentiableFunctionPtr_t
Definition
fwd.hh:139
hpp::manipulation::matrixIn_t
core::matrixIn_t matrixIn_t
Definition
fwd.hh:147
hpp::manipulation::ConfigurationIn_t
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition
fwd.hh:49
hpp::manipulation::vectorIn_t
core::vectorIn_t vectorIn_t
Definition
fwd.hh:93
hpp
steering-method.hh
include
hpp
manipulation
steering-method
end-effector-trajectory.hh
Generated by
1.17.0