3 #include <qp_solver_collection/QpSolverCollection.h>
18 sva::MotionVecd
wrenchWeight = sva::MotionVecd(Eigen::Vector3d(1.0, 1.0, 1.0), Eigen::Vector3d(1.0, 1.0, 1.0));
29 void load(
const mc_rtc::Configuration & mcRtcConfig);
33 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
40 const mc_rtc::Configuration & mcRtcConfig = {});
47 sva::ForceVecd
run(
const sva::ForceVecd & desiredTotalWrench,
48 const Eigen::Vector3d & momentOrigin = Eigen::Vector3d::Zero());
63 const std::vector<std::string> & category,
81 std::shared_ptr<QpSolverCollection::QpSolver>
qpSolver_;
QpSolverCollection::QpCoeff qpCoeff_
QP coefficients.
sva::ForceVecd resultTotalWrench_
Result total wrench.
sva::ForceVecd desiredTotalWrench_
Desired total wrench.
Configuration config_
Configuration.
sva::ForceVecd run(const sva::ForceVecd &desiredTotalWrench, const Eigen::Vector3d &momentOrigin=Eigen::Vector3d::Zero())
Run wrench distribution calculation.
std::shared_ptr< QpSolverCollection::QpSolver > qpSolver_
QP solver.
std::vector< std::shared_ptr< Contact > > contactList_
List of contact constraint.
Eigen::VectorXd resultWrenchRatio_
Result wrench ratio.
const Configuration & config() const noexcept
Const accessor to the configuration.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW WrenchDistribution(const std::vector< std::shared_ptr< Contact >> &contactList, const mc_rtc::Configuration &mcRtcConfig={})
Constructor.
void addToGUI(mc_rtc::gui::StateBuilder &gui, const std::vector< std::string > &category, double forceScale=constants::defaultForceScale, double fricPyramidScale=constants::defaultFricPyramidScale)
Add markers to GUI.
constexpr double defaultForceScale
Default scale of force markers.
constexpr double defaultFricPyramidScale
Default scale of friction pyramid markers.
sva::MotionVecd wrenchWeight
Wrench distribution weight.
double regularWeight
Weight of QP regularization.
void load(const mc_rtc::Configuration &mcRtcConfig)
Load mc_rtc configuration.
std::pair< double, double > ridgeForceMinMax
Min/max ridge force.