|
force_control_collection
|
Wrench distribution. More...
#include <WrenchDistribution.h>

Classes | |
| struct | Configuration |
| Configuration. More... | |
Public Member Functions | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | WrenchDistribution (const std::vector< std::shared_ptr< Contact >> &contactList, const mc_rtc::Configuration &mcRtcConfig={}) |
| Constructor. More... | |
| sva::ForceVecd | run (const sva::ForceVecd &desiredTotalWrench, const Eigen::Vector3d &momentOrigin=Eigen::Vector3d::Zero()) |
| Run wrench distribution calculation. More... | |
| const Configuration & | config () const noexcept |
| Const accessor to the configuration. More... | |
| 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. More... | |
Public Attributes | |
| std::vector< std::shared_ptr< Contact > > | contactList_ |
| List of contact constraint. More... | |
| Eigen::VectorXd | resultWrenchRatio_ |
| Result wrench ratio. More... | |
| sva::ForceVecd | desiredTotalWrench_ = sva::ForceVecd::Zero() |
| Desired total wrench. More... | |
| sva::ForceVecd | resultTotalWrench_ = sva::ForceVecd::Zero() |
| Result total wrench. More... | |
| std::shared_ptr< QpSolverCollection::QpSolver > | qpSolver_ |
| QP solver. More... | |
| QpSolverCollection::QpCoeff | qpCoeff_ |
| QP coefficients. More... | |
Protected Attributes | |
| Configuration | config_ |
| Configuration. More... | |
Wrench distribution.
Definition at line 11 of file WrenchDistribution.h.
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW ForceColl::WrenchDistribution::WrenchDistribution | ( | const std::vector< std::shared_ptr< Contact >> & | contactList, |
| const mc_rtc::Configuration & | mcRtcConfig = {} |
||
| ) |
Constructor.
| contactList | list of contact constraint |
| mcRtcConfig | mc_rtc configuration |
| void ForceColl::WrenchDistribution::addToGUI | ( | mc_rtc::gui::StateBuilder & | gui, |
| const std::vector< std::string > & | category, | ||
| double | forceScale = constants::defaultForceScale, |
||
| double | fricPyramidScale = constants::defaultFricPyramidScale |
||
| ) |
Add markers to GUI.
| gui | GUI |
| category | category of GUI entries |
| forceScale | scale of force markers (set non-positive for no visualization) |
| fricPyramidScale | scale of friction pyramid markers (set non-positive for no visualization) |
|
inlinenoexcept |
Const accessor to the configuration.
Definition at line 51 of file WrenchDistribution.h.
| sva::ForceVecd ForceColl::WrenchDistribution::run | ( | const sva::ForceVecd & | desiredTotalWrench, |
| const Eigen::Vector3d & | momentOrigin = Eigen::Vector3d::Zero() |
||
| ) |
Run wrench distribution calculation.
| desiredTotalWrench | total wrench |
| momentOrigin | moment origin |
|
protected |
Definition at line 88 of file WrenchDistribution.h.
| std::vector<std::shared_ptr<Contact> > ForceColl::WrenchDistribution::contactList_ |
List of contact constraint.
Definition at line 69 of file WrenchDistribution.h.
| sva::ForceVecd ForceColl::WrenchDistribution::desiredTotalWrench_ = sva::ForceVecd::Zero() |
Desired total wrench.
Definition at line 75 of file WrenchDistribution.h.
| QpSolverCollection::QpCoeff ForceColl::WrenchDistribution::qpCoeff_ |
QP coefficients.
Definition at line 84 of file WrenchDistribution.h.
| std::shared_ptr<QpSolverCollection::QpSolver> ForceColl::WrenchDistribution::qpSolver_ |
QP solver.
Definition at line 81 of file WrenchDistribution.h.
| sva::ForceVecd ForceColl::WrenchDistribution::resultTotalWrench_ = sva::ForceVecd::Zero() |
Result total wrench.
Definition at line 78 of file WrenchDistribution.h.
| Eigen::VectorXd ForceColl::WrenchDistribution::resultWrenchRatio_ |
Result wrench ratio.
Definition at line 72 of file WrenchDistribution.h.