30 #ifndef HPP_CORE_PATH_VECTOR_HH
31 #define HPP_CORE_PATH_VECTOR_HH
35 #include <hpp/pinocchio/device.hh>
63 new PathVector(outputSize, outputDerivativeSize, constraint);
93 return createCopy(weak_.lock(), constraints);
143 virtual std::ostream&
print(std::ostream& os)
const;
145 PathVector(std::size_t outputSize, std::size_t outputDerivativeSize)
146 :
parent_t(std::make_pair(0, 0), outputSize, outputDerivativeSize),
149 PathVector(std::size_t outputSize, std::size_t outputDerivativeSize,
151 :
parent_t(std::make_pair(0, 0), outputSize, outputDerivativeSize,
157 for (Paths_t::const_iterator it = path.paths_.begin();
158 it != path.paths_.end(); it++) {
159 paths_.push_back((*it)->copy());
165 :
parent_t(path, constraints), paths_() {
167 for (Paths_t::const_iterator it = path.paths_.begin();
168 it != path.paths_.end(); it++) {
169 paths_.push_back((*it)->copy());
174 parent_t::init(
self);
191 PathVectorWkPtr_t weak_;
Concatenation of several paths.
Definition: path-vector.hh:43
std::size_t numberPaths() const
Get the number of sub paths.
Definition: path-vector.hh:101
static PathVectorPtr_t create(size_type outputSize, size_type outputDerivativeSize, const ConstraintSetPtr_t &constraint)
Create instance and return shared pointer.
Definition: path-vector.hh:59
virtual void impl_velocityBound(vectorOut_t bound, const value_type ¶m0, const value_type ¶m1) const
Virtual implementation of velocity bound.
void concatenate(const PathVectorPtr_t &path)
PathVector(const PathVector &path, const ConstraintSetPtr_t &constraints)
Copy constructor with constraints.
Definition: path-vector.hh:164
virtual std::ostream & print(std::ostream &os) const
Print path in a stream.
PathPtr_t pathAtRank(std::size_t rank) const
virtual void impl_derivative(vectorOut_t result, const value_type &t, size_type order) const
Virtual implementation of derivative.
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize, const ConstraintSetPtr_t &constraint)
Constructor.
Definition: path-vector.hh:149
virtual bool impl_compute(ConfigurationOut_t result, value_type t) const
Function evaluation without applying constraints.
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original, const ConstraintSetPtr_t &constraints)
Create instance and return shared pointer.
Definition: path-vector.hh:78
virtual PathPtr_t copy() const
Return a shared pointer to a copy of this.
Definition: path-vector.hh:87
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: path-vector.hh:92
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize)
Constructor.
Definition: path-vector.hh:145
void init(PathVectorPtr_t self)
Definition: path-vector.hh:173
PathVector()
Definition: path-vector.hh:194
Path parent_t
Definition: path-vector.hh:45
virtual Configuration_t initial() const
Get the initial configuration.
Definition: path-vector.hh:129
void appendPath(const PathPtr_t &path)
Append a path at the end of the vector.
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original)
Create instance and return shared pointer.
Definition: path-vector.hh:70
PathVector(const PathVector &path)
Copy constructor.
Definition: path-vector.hh:155
virtual PathPtr_t impl_extract(const interval_t &subInterval) const
virtual Configuration_t end() const
Get the final configuration.
Definition: path-vector.hh:132
void flatten(PathVectorPtr_t flattenedPath) const
std::size_t rankAtParam(const value_type ¶m, value_type &localParam) const
virtual ~PathVector()
Destructor.
Definition: path-vector.hh:97
static PathVectorPtr_t create(size_type outputSize, size_type outputDerivativeSize)
Create instance and return shared pointer.
Definition: path-vector.hh:50
virtual PathPtr_t reverse() const
Reversion of a path.
const interval_t & timeRange() const
Get interval of definition.
Definition: path.hh:190
#define HPP_CORE_DLLAPI
Definition: config.hh:88
pinocchio::value_type value_type
Definition: fwd.hh:174
shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:193
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:222
pinocchio::ConfigurationOut_t ConfigurationOut_t
Definition: fwd.hh:109
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:175
pinocchio::size_type size_type
Definition: fwd.hh:173
std::vector< PathPtr_t > Paths_t
Definition: fwd.hh:214
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:107
shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:130
shared_ptr< Path > PathPtr_t
Definition: fwd.hh:187
Definition: bi-rrt-planner.hh:35