hpp-core 9.0.2
Implement basic classes for canonical path planning for kinematic chains.
Loading...
Searching...
No Matches
trapezoidal-time-parameterization.hh
Go to the documentation of this file.
1// Copyright (c) 2026 CNRS
2// Author: Paul Sardin
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_CORE_PATH_OPTIMIZATION_TRAPEZOIDAL_TIME_PARAMETERIZATION_HH
30#define HPP_CORE_PATH_OPTIMIZATION_TRAPEZOIDAL_TIME_PARAMETERIZATION_HH
31
33
34namespace hpp {
35namespace core {
36namespace pathOptimization {
39
52 public:
55 const ProblemConstPtr_t& problem);
56
59
61 value_type maxVelocity() const { return maxVelocity_; }
63 void maxVelocity(const value_type& maxVelocity) {
64 maxVelocity_ = maxVelocity;
65 }
66
68 value_type maxAcceleration() const { return maxAcceleration_; }
70 void maxAcceleration(const value_type& maxAcceleration) {
71 maxAcceleration_ = maxAcceleration;
72 }
73
75 value_type minimumDuration() const { return minimumDuration_; }
77 void minimumDuration(const value_type& minimumDuration) {
78 minimumDuration_ = minimumDuration;
79 }
80
81 protected:
83
84 private:
85 value_type maxVelocity_;
86 value_type maxAcceleration_;
87 value_type minimumDuration_;
88}; // class TrapezoidalTimeParameterization
90} // namespace pathOptimization
91} // namespace core
92} // namespace hpp
93#endif // HPP_CORE_PATH_OPTIMIZATION_TRAPEZOIDAL_TIME_PARAMETERIZATION_HH
Definition path-optimizer.hh:44
Definition trapezoidal-time-parameterization.hh:51
virtual PathVectorPtr_t optimize(const PathVectorPtr_t &path)
Optimize path.
void maxVelocity(const value_type &maxVelocity)
Set maximum velocity for each output degree of freedom.
Definition trapezoidal-time-parameterization.hh:63
value_type maxVelocity() const
Maximum velocity for each output degree of freedom.
Definition trapezoidal-time-parameterization.hh:61
value_type minimumDuration() const
Minimum duration assigned to each non-empty subpath.
Definition trapezoidal-time-parameterization.hh:75
TrapezoidalTimeParameterization(const ProblemConstPtr_t &problem)
void maxAcceleration(const value_type &maxAcceleration)
Set maximum acceleration for each output degree of freedom.
Definition trapezoidal-time-parameterization.hh:70
void minimumDuration(const value_type &minimumDuration)
Set minimum duration assigned to each non-empty subpath.
Definition trapezoidal-time-parameterization.hh:77
value_type maxAcceleration() const
Maximum acceleration for each output degree of freedom.
Definition trapezoidal-time-parameterization.hh:68
static TrapezoidalTimeParameterizationPtr_t create(const ProblemConstPtr_t &problem)
Return shared pointer to new object.
#define HPP_CORE_DLLAPI
Definition config.hh:88
shared_ptr< TrapezoidalTimeParameterization > TrapezoidalTimeParameterizationPtr_t
Definition fwd.hh:308
pinocchio::value_type value_type
Definition fwd.hh:174
shared_ptr< PathVector > PathVectorPtr_t
Definition fwd.hh:193
shared_ptr< const Problem > ProblemConstPtr_t
Definition fwd.hh:197