1 #ifndef HPP_RBPRM_REACHABILITY_HH 2 #define HPP_RBPRM_REACHABILITY_HH 5 #include <hpp/centroidal-dynamics/centroidal_dynamics.hh> 8 #include <hpp/core/path.hh> 16 namespace reachability {
33 x(fcl::Vec3f::Zero()),
41 x(fcl::Vec3f::Zero()),
57 if (
path_->length() > 0) {
74 std::pair<MatrixXX, VectorX>
stackConstraints(
const std::pair<MatrixXX, VectorX>& Ab,
75 const std::pair<MatrixXX, VectorX>& Cd);
77 bool intersectionExist(
const std::pair<MatrixXX, VectorX>& Ab,
const fcl::Vec3f& c, fcl::Vec3f& c_out);
80 const fcl::Vec3f& int_point = fcl::Vec3f(0, 0, 0),
81 const fcl::Vec3f& acc = fcl::Vec3f(0, 0, 0));
84 bool&
success,
const fcl::Vec3f& acc);
102 const fcl::Vec3f& acc = fcl::Vec3f::Zero(),
bool useIntermediateState =
false);
105 std::vector<double> timings = std::vector<double>(),
int numPointsPerPhases = 0);
110 #endif // REACHABILITY_HH std::shared_ptr< RbPrmFullBody > RbPrmFullBodyPtr_t
Definition: kinematics_constraints.hh:12
Result isReachableDynamic(const RbPrmFullBodyPtr_t &fullbody, State &previous, State &next, bool tryQuasiStatic=true, std::vector< double > timings=std::vector< double >(), int numPointsPerPhases=0)
fcl::Vec3f xBreak_
Definition: reachability.hh:66
std::pair< MatrixXX, VectorX > constraints_
Definition: reachability.hh:68
Definition: algorithm.hh:27
core::PathPtr_t path_
Definition: reachability.hh:69
Definition: reachability.hh:25
VectorX timings_
Definition: reachability.hh:70
Definition: reachability.hh:22
Eigen::Matrix< pinocchio::value_type, Eigen::Dynamic, 1 > VectorX
Definition: rbprm-limb.hh:47
Result isReachable(const RbPrmFullBodyPtr_t &fullbody, State &previous, State &next, const fcl::Vec3f &acc=fcl::Vec3f::Zero(), bool useIntermediateState=false)
isReachable Compute the feasibility of the contact transition between the two state, with the quasiStatic formulation of 2-PAC (https://hal.archives-ouvertes.fr/hal-01609055)
Definition: reachability.hh:23
Definition: reachability.hh:24
std::pair< MatrixXX, VectorX > computeConstraintsForState(const RbPrmFullBodyPtr_t &fullbody, State &state, bool &success)
Definition: reachability.hh:21
HPP_PREDEF_CLASS(RbPrmFullBody)
Definition: reachability.hh:30
Definition: reachability.hh:20
fcl::Vec3f xCreate_
Definition: reachability.hh:67
Result(Status status)
Definition: reachability.hh:39
Definition: reachability.hh:26
Definition: reachability.hh:19
Status status
Definition: reachability.hh:64
fcl::Vec3f x
Definition: reachability.hh:65
std::pair< MatrixXX, VectorX > computeStabilityConstraints(const centroidal_dynamics::Equilibrium &contactPhase, const fcl::Vec3f &int_point=fcl::Vec3f(0, 0, 0), const fcl::Vec3f &acc=fcl::Vec3f(0, 0, 0))
bool pathExist()
Definition: reachability.hh:55
Result()
Definition: reachability.hh:31
std::pair< MatrixXX, VectorX > computeStabilityConstraintsForState(const RbPrmFullBodyPtr_t &fullbody, State &state, bool &success, const fcl::Vec3f &acc)
Definition: rbprm-state.hh:40
bool success()
Definition: reachability.hh:50
Definition: reachability.hh:27
std::pair< MatrixXX, VectorX > stackConstraints(const std::pair< MatrixXX, VectorX > &Ab, const std::pair< MatrixXX, VectorX > &Cd)
bool intersectionExist(const std::pair< MatrixXX, VectorX > &Ab, const fcl::Vec3f &c, fcl::Vec3f &c_out)
Status
Definition: reachability.hh:18
Result(Status status, fcl::Vec3f x)
Definition: reachability.hh:47
std::vector< core::PathPtr_t > pathPerPhases_
Definition: reachability.hh:71