hpp-core
4.12.0
Implement basic classes for canonical path planning for kinematic chains.
|
Go to the documentation of this file.
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);
208 virtual void impl_velocityBound (
vectorOut_t bound,
214 PathVectorWkPtr_t weak_;
227 #endif // HPP_CORE_PATH_VECTOR_HH
void init(PathVectorPtr_t self)
Definition: path-vector.hh:194
pinocchio::size_type size_type
Definition: fwd.hh:156
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:158
Concatenation of several paths.
Definition: path-vector.hh:32
const interval_t & timeRange() const
Get interval of definition.
Definition: path.hh:208
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: path-vector.hh:89
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:204
#define HPP_CORE_DEPRECATED
Definition: deprecated.hh:32
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize)
Constructor.
Definition: path-vector.hh:158
std::size_t numberPaths() const
Get the number of sub paths.
Definition: path-vector.hh:101
shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
pinocchio::ConfigurationOut_t ConfigurationOut_t
Definition: fwd.hh:98
shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:176
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original, const ConstraintSetPtr_t &constraints)
Create instance and return shared pointer.
Definition: path-vector.hh:71
Definition: bi-rrt-planner.hh:24
PathVector(const PathVector &path)
Copy constructor.
Definition: path-vector.hh:172
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
std::vector< PathPtr_t > Paths_t
Definition: fwd.hh:196
static PathVectorPtr_t create(size_type outputSize, size_type outputDerivativeSize)
Create instance and return shared pointer.
Definition: path-vector.hh:40
PathVector(const PathVector &path, const ConstraintSetPtr_t &constraints)
Copy constructor with constraints.
Definition: path-vector.hh:183
shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize, const ConstraintSetPtr_t &constraint)
Constructor.
Definition: path-vector.hh:164
Path parent_t
Definition: path-vector.hh:35
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 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
pinocchio::value_type value_type
Definition: fwd.hh:157
#define HPP_CORE_DLLAPI
Definition: config.hh:64
PathVector()
Definition: path-vector.hh:217