hpp-constraints
4.9.0
Definition of basic geometric constraints for motion planning
|
Go to the documentation of this file.
18 template <
typename Derived>
20 (
const Eigen::ArrayBase<Derived>& array)
23 for (
size_type i = 0; i < array.derived().size(); ++i)
24 if (array.derived()[i]) res.push_back (
segment_t(i, 1));
30 #include <hpp/pinocchio/util.hh>
std::pair< size_type, size_type > segment_t
Definition: fwd.hh:68
static segments_t fromLogicalExpression(const Eigen::ArrayBase< Derived > &array)
Definition: matrix-view.hh:20
static std::ostream & run(std::ostream &os, const constraints::segments_t &segs)
Definition: matrix-view.hh:35
static void run(std::ostream &os, const BlockIndexType &bi)
Definition: matrix-view.hh:298
std::vector< segment_t > segments_t
Definition: fwd.hh:69
Definition: active-set-differentiable-function.hh:24
hpp::constraints::size_type size_type
Index of vector or matrix.
Definition: matrix-view.hh:39
std::vector< segment_t > segments_t
vector of segments
Definition: matrix-view.hh:43