|
opensurgsim
|
Solve the system Mixed Linear Complementarity Problem (Mlcp) More...
#include <SolveMlcp.h>
Public Member Functions | |
| SolveMlcp (bool doCopyState=false) | |
| Constructor. More... | |
| SURGSIM_CLASSNAME (SurgSim::Physics::SolveMlcp) | |
| virtual | ~SolveMlcp () |
| Destructor. | |
| void | setMaxIterations (size_t maxIterations) |
| Set the maximum number of iterations for the MLCP solver. More... | |
| size_t | getMaxIterations () const |
| Get the maximum number of iterations for the MLCP solver. More... | |
| void | setPrecision (double epsilon) |
| Set the precision of the MLCP solver. More... | |
| double | getPrecision () const |
| Get the precision of the MLCP solver. More... | |
| void | setContactTolerance (double epsilon) |
| Set the contact tolerance for the MLCP solver. More... | |
| double | getContactTolerance () const |
| Get the contact tolerance for the MLCP solver. More... | |
Public Member Functions inherited from SurgSim::Physics::Computation | |
| Computation (bool doCopyState) | |
| Constructor. More... | |
| virtual | ~Computation () |
| Destructor. | |
| std::shared_ptr< PhysicsManagerState > | update (double dt, const std::shared_ptr< PhysicsManagerState > &state) |
| Public Interface execute this objects computations, dt is the time from the last update call in seconds. More... | |
| void | setDoCopyState (bool val) |
| Sets up whether the computation will copy the state of PhysicsManagerState before executing. More... | |
| bool | isCopyingState () |
| Query if this object is copying the PhysicsManagerState. More... | |
| virtual std::string | getClassName () const =0 |
| The class name for this class. More... | |
| Framework::Timer & | getTimer () |
| Provides access to the update timer. More... | |
Protected Member Functions | |
| std::shared_ptr< PhysicsManagerState > | doUpdate (const double &dt, const std::shared_ptr< PhysicsManagerState > &state) override |
| Override doUpdate from superclass. More... | |
Solve the system Mixed Linear Complementarity Problem (Mlcp)
|
explicit |
Constructor.
| doCopyState | Specify if the ouput state is a copy or not of the input state in Computation::Update() |
|
overrideprotectedvirtual |
Override doUpdate from superclass.
| dt | The time step |
| state | The Physics manager state |
Implements SurgSim::Physics::Computation.
| double SurgSim::Physics::SolveMlcp::getContactTolerance | ( | ) | const |
Get the contact tolerance for the MLCP solver.
| size_t SurgSim::Physics::SolveMlcp::getMaxIterations | ( | ) | const |
Get the maximum number of iterations for the MLCP solver.
| double SurgSim::Physics::SolveMlcp::getPrecision | ( | ) | const |
Get the precision of the MLCP solver.
| void SurgSim::Physics::SolveMlcp::setContactTolerance | ( | double | epsilon | ) |
Set the contact tolerance for the MLCP solver.
| epsilon | The contact tolerance. |
| void SurgSim::Physics::SolveMlcp::setMaxIterations | ( | size_t | maxIterations | ) |
Set the maximum number of iterations for the MLCP solver.
| maxIterations | The maximum number of iterations. |
| void SurgSim::Physics::SolveMlcp::setPrecision | ( | double | epsilon | ) |
Set the precision of the MLCP solver.
| epsilon | The precision. |
1.8.12