19 #ifndef HPP_RBPRM_TIMECONSTRAINT_PATH_HH
20 #define HPP_RBPRM_TIMECONSTRAINT_PATH_HH
22 #include <hpp/core/config.hh>
23 #include <hpp/core/fwd.hh>
24 #include <hpp/core/path.hh>
29 namespace interpolation {
52 core::ConfigurationIn_t init,
53 core::ConfigurationIn_t end,
54 core::value_type length,
55 const std::size_t pathDofRank,
71 core::ConfigurationIn_t init,
72 core::ConfigurationIn_t end,
73 core::value_type length,
74 core::ConstraintSetPtr_t constraints,
75 const std::size_t pathDofRank,
78 device, init, end, length, constraints, pathDofRank, tds);
101 const core::ConstraintSetPtr_t& constraints) {
113 virtual core::PathPtr_t
copy()
const {
return createCopy(weak_.lock()); }
120 const core::ConstraintSetPtr_t& constraints)
const {
121 return createCopy(weak_.lock(), constraints);
128 virtual core::PathPtr_t extract(
const core::interval_t& subInterval)
const;
135 assert(initial.size() == initial_.size());
136 pinocchio::value_type dof = initial_[pathDofRank_];
138 initial_[pathDofRank_] = dof;
146 assert(end.size() == end_.size());
147 pinocchio::value_type dof = end_[pathDofRank_];
149 end_[pathDofRank_] = dof;
153 core::DevicePtr_t device()
const;
156 core::Configuration_t
initial()
const {
return initial_; }
159 core::Configuration_t
end()
const {
return end_; }
161 virtual void checkPath()
const;
165 virtual std::ostream&
print(std::ostream& os)
const {
166 os <<
"TimeConstraintPath:" << std::endl;
167 os <<
"interval: [ " << timeRange().first <<
", " << timeRange().second
168 <<
" ]" << std::endl;
169 os <<
"initial configuration: " << initial_.transpose() << std::endl;
170 os <<
"final configuration: " << end_.transpose() << std::endl;
175 core::ConfigurationIn_t init, core::ConfigurationIn_t end,
176 core::value_type length,
const std::size_t pathDofRank,
181 core::ConfigurationIn_t init, core::ConfigurationIn_t end,
182 core::value_type length,
183 core::ConstraintSetPtr_t constraints,
191 const core::ConstraintSetPtr_t& constraints);
194 parent_t::init(
self);
199 parent_t::init(
self);
203 virtual bool impl_compute(core::ConfigurationOut_t result,
204 core::value_type param)
const;
207 void updateConstraints(core::ConfigurationOut_t configuration)
const;
210 core::DevicePtr_t device_;
211 core::Configuration_t initial_;
212 core::Configuration_t end_;
219 TimeConstraintPathWkPtr_t weak_;
224 #endif // HPP_RBPRM_TIMECONSTRAINT_PATH_HH