AGX Dynamics  2.35.0.1
agx::GenericConstraintData Class Reference

Constraint data used with GenericElementaryConstraint containing data such as; constraint violation, constraint velocity and bounds. More...

#include <GenericConstraintData.h>

Public Types

using BoundsVector = agx::VectorPOD< agx::RangeReal >
 

Public Member Functions

 GenericConstraintData (agx::UInt numRows)
 Construct given number of rows in the elementary constraint. More...
 
const BoundsVector & getBounds () const
 
agx::Bool getIsImpacting () const
 
const agx::RealVector & getVelocity () const
 
const RealVector & getViolation () const
 
void reset ()
 Resets all values to default. More...
 
void setBound (agx::UInt row, agx::RangeReal range)
 Assign bound for given row in the elementary constraint. More...
 
void setIsImpacting (agx::Bool isImpacting)
 Assign impacting state of the elementary constraint. More...
 
void setVelocity (agx::UInt row, agx::Real velocity)
 Assign velocity for given row in the elementary constraint. More...
 
void setViolation (agx::UInt row, agx::Real violation)
 Assign violation for given row in the elementary constraint. More...
 

Detailed Description

Constraint data used with GenericElementaryConstraint containing data such as; constraint violation, constraint velocity and bounds.

Definition at line 29 of file GenericConstraintData.h.

Member Typedef Documentation

◆ BoundsVector

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ getBounds()

const BoundsVector& agx::GenericConstraintData::getBounds ( ) const
Returns
the bounds

◆ getIsImpacting()

agx::Bool agx::GenericConstraintData::getIsImpacting ( ) const
Returns
true if the elementary constraint is impacting, otherwise false

◆ getVelocity()

const agx::RealVector& agx::GenericConstraintData::getVelocity ( ) const
Returns
the velocities

◆ getViolation()

const RealVector& agx::GenericConstraintData::getViolation ( ) const
Returns
the violations

◆ reset()

void agx::GenericConstraintData::reset ( )

Resets all values to default.

◆ setBound()

void agx::GenericConstraintData::setBound ( agx::UInt  row,
agx::RangeReal  range 
)

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()

void agx::GenericConstraintData::setVelocity ( agx::UInt  row,
agx::Real  velocity 
)

Assign velocity for given row in the elementary constraint.

Parameters
row- elementary constraint row
velocity- elementary constraint velocity

◆ setViolation()

void agx::GenericConstraintData::setViolation ( agx::UInt  row,
agx::Real  violation 
)

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: