![]() | pinocchio 4.1.0 A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives |
Struct describing the solution of the PGS constraint solver after calling the solve method. Also contains the warmstart of the solution to the constraint problem. More...
#include <pinocchio/algorithm/solvers/pgs-solver.hpp>


Public Types | |
| typedef ConstraintSolverResultBase< Self > | Base |
| typedef Eigen::Ref< const VectorXs > | RefConstVectorXs |
| typedef _Scalar | Scalar |
| typedef PGSSolverResultTpl | Self |
| typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > | VectorXs |
| typedef internal::EigenStorageTpl< VectorXs > | VectorXsStorage |
Public Member Functions | |
| PGSSolverResultTpl () | |
| Default constructor. | |
| PGSSolverResultTpl (const PGSSolverResultTpl &other) | |
| Copy constructor. | |
| void | clearConstraintImpulseGuessImpl () |
| void | clearConstraintVelocityGuessImpl () |
| int | constraintSizeImpl () const |
| PGSSolverResultTpl & | operator= (const PGSSolverResultTpl &other) |
| Assignment operator. | |
| void | resetImpl () |
| void | resize (std::size_t problem_size_) |
| Resize the primal/dual vectors of the solution. | |
| template<typename VectorLike> | |
| void | retrieveConstraintImpulsesImpl (const Eigen::MatrixBase< VectorLike > &constraint_impulses_) const |
| template<typename VectorLike> | |
| void | retrieveConstraintVelocitiesImpl (const Eigen::MatrixBase< VectorLike > &constraint_velocities_) const |
| template<typename VectorLike> | |
| void | retrieveDualSolution (const Eigen::MatrixBase< VectorLike > &dual_solution_) const |
| Retrieve dual solution. | |
| template<typename VectorLike> | |
| void | retrievePrimalSolution (const Eigen::MatrixBase< VectorLike > &primal_solution_) const |
| Retrieve primal solution. | |
| template<typename VectorLike> | |
| void | setConstraintImpulseGuessImpl (const Eigen::MatrixBase< VectorLike > &impulse_guess_in) |
| template<typename VectorLike> | |
| void | setConstraintVelocityGuessImpl (const Eigen::MatrixBase< VectorLike > &) |
Public Attributes | |
| std::optional< RefConstVectorXs > | impulse_guess |
| Optional guess for the primal variable (impulses). | |
| VectorXsStorage::RefMapType | m_impulse_guess = m_impulse_guess_storage.map() |
| VectorXsStorage | m_impulse_guess_storage |
| Storage for the optional impulse guess. | |
| std::size_t | problem_size |
| Size of primal/dual variables. | |
| VectorXsStorage::RefMapType | x = x_storage.map() |
| VectorXsStorage | x_storage |
| Primal solution. | |
| VectorXsStorage::RefMapType | y = y_storage.map() |
| VectorXsStorage | y_storage |
| Dual solution. | |
Static Public Attributes | |
| static constexpr int | Options = _Options |
Struct describing the solution of the PGS constraint solver after calling the solve method. Also contains the warmstart of the solution to the constraint problem.
Definition at line 232 of file pgs-solver.hpp.
| typedef ConstraintSolverResultBase<Self> Base |
Definition at line 237 of file pgs-solver.hpp.
| typedef Eigen::Ref<const VectorXs> RefConstVectorXs |
Definition at line 240 of file pgs-solver.hpp.
| typedef _Scalar Scalar |
Definition at line 234 of file pgs-solver.hpp.
| typedef PGSSolverResultTpl Self |
Definition at line 236 of file pgs-solver.hpp.
| typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1, Options> VectorXs |
Definition at line 239 of file pgs-solver.hpp.
| typedef internal::EigenStorageTpl<VectorXs> VectorXsStorage |
Definition at line 241 of file pgs-solver.hpp.
| inline |
Default constructor.
Definition at line 248 of file pgs-solver.hpp.
| inline |
Copy constructor.
Definition at line 256 of file pgs-solver.hpp.
| inline |
Definition at line 336 of file pgs-solver.hpp.
| inline |
Definition at line 348 of file pgs-solver.hpp.
| inline |
Definition at line 288 of file pgs-solver.hpp.
| inline |
Assignment operator.
Definition at line 262 of file pgs-solver.hpp.
| inline |
Definition at line 293 of file pgs-solver.hpp.
| inline |
Resize the primal/dual vectors of the solution.
Definition at line 303 of file pgs-solver.hpp.
| inline |
Definition at line 355 of file pgs-solver.hpp.
| inline |
At the optimum we have y = Gx + g. WARNING: the PGS solver does not take into account desaxce terms for now. It only solves the CCP (not the NCP).
Definition at line 365 of file pgs-solver.hpp.
| inline |
Retrieve dual solution.
Definition at line 322 of file pgs-solver.hpp.
| inline |
Retrieve primal solution.
Definition at line 314 of file pgs-solver.hpp.
| inline |
Definition at line 329 of file pgs-solver.hpp.
| inline |
Definition at line 343 of file pgs-solver.hpp.
| std::optional<RefConstVectorXs> impulse_guess |
Optional guess for the primal variable (impulses).
Definition at line 394 of file pgs-solver.hpp.
| VectorXsStorage::RefMapType m_impulse_guess = m_impulse_guess_storage.map() |
Definition at line 411 of file pgs-solver.hpp.
| VectorXsStorage m_impulse_guess_storage |
Storage for the optional impulse guess.
Definition at line 410 of file pgs-solver.hpp.
| staticconstexpr |
Definition at line 235 of file pgs-solver.hpp.
| std::size_t problem_size |
Size of primal/dual variables.
Definition at line 388 of file pgs-solver.hpp.
| VectorXsStorage::RefMapType x = x_storage.map() |
Definition at line 403 of file pgs-solver.hpp.
| VectorXsStorage x_storage |
Primal solution.
Definition at line 402 of file pgs-solver.hpp.
| VectorXsStorage::RefMapType y = y_storage.map() |
Definition at line 407 of file pgs-solver.hpp.
| VectorXsStorage y_storage |
Dual solution.
Definition at line 406 of file pgs-solver.hpp.