19 #ifndef HPP_CORE_PATH_VECTOR_HH 20 # define HPP_CORE_PATH_VECTOR_HH 22 # include <hpp/pinocchio/device.hh> 83 return createCopy (weak_.lock ());
91 return createCopy (weak_.lock (), constraints);
103 return paths_.size ();
112 PathPtr_t pathAtRank (std::size_t rank)
const;
138 return paths_.front ()->initial ();
144 return paths_.back()->end ();
156 virtual std::ostream& print (std::ostream &os)
const;
158 PathVector (std::size_t outputSize, std::size_t outputDerivativeSize) :
159 parent_t (std::make_pair (0, 0), outputSize, outputDerivativeSize),
164 PathVector (std::size_t outputSize, std::size_t outputDerivativeSize,
166 parent_t (std::make_pair (0, 0), outputSize, outputDerivativeSize,
175 assert (timeRange() == path.
timeRange());
176 for (Paths_t::const_iterator it = path.paths_.begin ();
177 it != path.paths_.end (); it++) {
178 paths_.push_back ((*it)->copy ());
185 parent_t (path, constraints), paths_ ()
187 assert (timeRange() == path.
timeRange());
188 for (Paths_t::const_iterator it = path.paths_.begin ();
189 it != path.paths_.end (); it++) {
190 paths_.push_back ((*it)->copy ());
196 parent_t::init (
self);
209 PathVectorWkPtr_t weak_;
222 #endif // HPP_CORE_PATH_VECTOR_HH PathVector(const PathVector &path)
Copy constructor.
Definition: path-vector.hh:172
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original, const ConstraintSetPtr_t &constraints)
Create instance and return shared pointer.
Definition: path-vector.hh:71
shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:176
Definition: bi-rrt-planner.hh:24
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: path-vector.hh:89
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:158
pinocchio::ConfigurationOut_t ConfigurationOut_t
Definition: fwd.hh:98
pinocchio::size_type size_type
Definition: fwd.hh:156
Path parent_t
Definition: path-vector.hh:35
std::vector< PathPtr_t > Paths_t
Definition: fwd.hh:196
PathVector(const PathVector &path, const ConstraintSetPtr_t &constraints)
Copy constructor with constraints.
Definition: path-vector.hh:183
std::size_t numberPaths() const
Get the number of sub paths.
Definition: path-vector.hh:101
virtual ~PathVector()
Destructor.
Definition: path-vector.hh:95
virtual Configuration_t initial() const
Get the initial configuration.
Definition: path-vector.hh:136
static PathVectorPtr_t create(size_type outputSize, size_type outputDerivativeSize, const ConstraintSetPtr_t &constraint)
Create instance and return shared pointer.
Definition: path-vector.hh:50
virtual PathPtr_t copy() const
Return a shared pointer to a copy of this.
Definition: path-vector.hh:81
const interval_t & timeRange() const
Get interval of definition.
Definition: path.hh:208
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize, const ConstraintSetPtr_t &constraint)
Constructor.
Definition: path-vector.hh:164
#define HPP_CORE_DEPRECATED
Definition: deprecated.hh:32
shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
pinocchio::value_type value_type
Definition: fwd.hh:157
Concatenation of several paths.
Definition: path-vector.hh:32
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original)
Create instance and return shared pointer.
Definition: path-vector.hh:62
virtual Configuration_t end() const
Get the final configuration.
Definition: path-vector.hh:142
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize)
Constructor.
Definition: path-vector.hh:158
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:204
void init(PathVectorPtr_t self)
Definition: path-vector.hh:194
PathVector()
Definition: path-vector.hh:212
#define HPP_CORE_DLLAPI
Definition: config.hh:64
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
static PathVectorPtr_t create(size_type outputSize, size_type outputDerivativeSize)
Create instance and return shared pointer.
Definition: path-vector.hh:40
shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170