Constraint data used with GenericElementaryConstraint containing data such as; constraint violation, constraint velocity and bounds.
More...
#include <GenericConstraintData.h>
Constraint data used with GenericElementaryConstraint containing data such as; constraint violation, constraint velocity and bounds.
Definition at line 29 of file GenericConstraintData.h.
◆ BoundsVector
◆ GenericConstraintData()
| agx::GenericConstraintData::GenericConstraintData |
( |
agx::UInt |
numRows | ) |
|
Construct given number of rows in the elementary constraint.
- Parameters
-
| numRows | - number of rows in the elementary constraint |
◆ getBounds()
| const BoundsVector& agx::GenericConstraintData::getBounds |
( |
| ) |
const |
◆ getIsImpacting()
| agx::Bool agx::GenericConstraintData::getIsImpacting |
( |
| ) |
const |
- Returns
- true if the elementary constraint is impacting, otherwise false
◆ getVelocity()
◆ getViolation()
| const RealVector& agx::GenericConstraintData::getViolation |
( |
| ) |
const |
◆ reset()
| void agx::GenericConstraintData::reset |
( |
| ) |
|
Resets all values to default.
◆ setBound()
Assign bound for given row in the elementary constraint.
- Note
- The bound given by the user has already been assigned when the GenericElementaryConstraint receives its callback.
- Parameters
-
| row | - elementary constraint row |
| range | - elementary constraint bound |
◆ setIsImpacting()
| void agx::GenericConstraintData::setIsImpacting |
( |
agx::Bool |
isImpacting | ) |
|
Assign impacting state of the elementary constraint.
Default: false.
- Parameters
-
| isImpacting | - true if the elementary constraint is impacting, otherwise false |
◆ setVelocity()
Assign velocity for given row in the elementary constraint.
- Parameters
-
| row | - elementary constraint row |
| velocity | - elementary constraint velocity |
◆ setViolation()
Assign violation for given row in the elementary constraint.
- Parameters
-
| row | - elementary constraint row |
| violation | - elementary constraint violation |
The documentation for this class was generated from the following file: