19 #ifndef HPP_CORE_PATH_VECTOR_HH 20 # define HPP_CORE_PATH_VECTOR_HH 22 # include <hpp/pinocchio/device.hh> 71 return createCopy (weak_.lock ());
79 return createCopy (weak_.lock (), constraints);
91 return paths_.size ();
100 PathPtr_t pathAtRank (std::size_t rank)
const;
126 return paths_.front ()->initial ();
132 return paths_.back()->end ();
141 virtual std::ostream&
print (std::ostream &os)
const 143 os <<
"PathVector:" << std::endl;
145 for (Paths_t::const_iterator itPath = paths_.begin ();
146 itPath != paths_.end (); ++itPath) {
147 os << (**itPath) << std::endl;
152 PathVector (std::size_t outputSize, std::size_t outputDerivativeSize) :
153 parent_t (std::make_pair (0, 0), outputSize, outputDerivativeSize),
162 for (Paths_t::const_iterator it = path.paths_.begin ();
163 it != path.paths_.end (); it++) {
164 paths_.push_back ((*it)->copy ());
171 parent_t (path, constraints), paths_ ()
174 for (Paths_t::const_iterator it = path.paths_.begin ();
175 it != path.paths_.end (); it++) {
176 paths_.push_back ((*it)->copy ());
182 parent_t::init (
self);
195 PathVectorWkPtr_t weak_;
200 #endif // HPP_CORE_PATH_VECTOR_HH boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
PathVector(const PathVector &path)
Copy constructor.
Definition: path-vector.hh:158
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original, const ConstraintSetPtr_t &constraints)
Create instance and return shared pointer.
Definition: path-vector.hh:59
virtual PathPtr_t copy(const ConstraintSetPtr_t &constraints) const
Definition: path-vector.hh:77
boost::shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:158
virtual std::ostream & print(std::ostream &os) const
Print path in a stream.
Definition: path-vector.hh:141
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:195
PathVector(const PathVector &path, const ConstraintSetPtr_t &constraints)
Copy constructor with constraints.
Definition: path-vector.hh:169
std::size_t numberPaths() const
Get the number of sub paths.
Definition: path-vector.hh:89
virtual ~PathVector()
Destructor.
Definition: path-vector.hh:83
virtual Configuration_t initial() const
Get the initial configuration.
Definition: path-vector.hh:124
assert(d.lhs()._blocks()==d.rhs()._blocks())
virtual PathPtr_t copy() const
Return a shared pointer to a copy of this.
Definition: path-vector.hh:69
const interval_t & timeRange() const
Get interval of definition.
Definition: path.hh:209
pinocchio::value_type value_type
Definition: fwd.hh:157
Concatenation of several paths.
Definition: path-vector.hh:32
virtual std::ostream & print(std::ostream &os) const
static PathVectorPtr_t createCopy(const PathVectorPtr_t &original)
Create instance and return shared pointer.
Definition: path-vector.hh:50
boost::shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:176
constraints::Implicit NumericalConstraint HPP_CORE_DEPRECATED
Definition: fwd.hh:347
virtual Configuration_t end() const
Get the final configuration.
Definition: path-vector.hh:130
PathVector(std::size_t outputSize, std::size_t outputDerivativeSize)
Constructor.
Definition: path-vector.hh:152
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:203
void init(PathVectorPtr_t self)
Definition: path-vector.hh:180
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