AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxVehicle::TrackInternalMergeProperties Class Reference

Properties and thresholds for internal merging of nodes in agxVehicle::Track. More...

#include <TrackInternalMergeProperties.h>

Public Types

enum  ContactReduction { NONE , MINIMAL , MODERATE , AGGRESSIVE }
 Contact reduction of merged nodes in contact with other objects such as ground. More...
 

Public Member Functions

 TrackInternalMergeProperties ()
 Default constructor: merge enabled = false number of nodes per merge segment = 3 contact reduction = ContactReduction::MINIMAL lock to reach merge condition = true lock compliance = 1.0E-11 lock damping = 3 / 60 max angle merge condition = 1.0E-5 (radians)
 
ContactReduction getContactReduction () const
 
agx::UInt getContactReductionBinResolution () const
 
agx::Bool getEnableContactReduction () const
 
agx::Bool getEnableLockToReachMergeCondition () const
 
agx::Bool getEnableMerge () const
 
agx::Real getLockToReachMergeConditionCompliance () const
 
agx::Real getLockToReachMergeConditionDamping () const
 
agx::Real getMaxAngleMergeCondition () const
 
agx::UInt getNumNodesPerMergeSegment () const
 
void resetToDefault ()
 Resets all values to default (see default constructor).
 
void setContactReduction (ContactReduction contactReductionLevel)
 Set contact reduction level of merged nodes against other objects.
 
void setEnableLockToReachMergeCondition (agx::Bool enable)
 Enable/disable the usage of hinge lock to reach merge condition (angle close to zero).
 
void setEnableMerge (agx::Bool enable)
 Enable/disable merge of nodes to segments in the track.
 
void setLockToReachMergeConditionCompliance (agx::Real compliance)
 Assign compliance of the hinge lock used to reach merge condition.
 
void setLockToReachMergeConditionDamping (agx::Real damping)
 Assign damping of the hinge lock used to reach merge condition.
 
void setMaxAngleMergeCondition (agx::Real maxAngleToMerge)
 Assign maximum angle > 0 to trigger merge between nodes.
 
void setNumNodesPerMergeSegment (agx::UInt numNodesPerMergeSegment)
 Assign number of nodes in a row that may merge together.
 

Detailed Description

Properties and thresholds for internal merging of nodes in agxVehicle::Track.

Definition at line 28 of file TrackInternalMergeProperties.h.

Member Enumeration Documentation

◆ ContactReduction

Contact reduction of merged nodes in contact with other objects such as ground.

Enumerator
NONE 

Contact reduction disabled.

MINIMAL 

Contact reduction enabled with bin resolution = 3.

MODERATE 

Contact reduction enabled with bin resolution = 2.

AGGRESSIVE 

Contact reduction enabled with bin resolution = 1.

Definition at line 35 of file TrackInternalMergeProperties.h.

Constructor & Destructor Documentation

◆ TrackInternalMergeProperties()

agxVehicle::TrackInternalMergeProperties::TrackInternalMergeProperties ( )

Default constructor: merge enabled = false number of nodes per merge segment = 3 contact reduction = ContactReduction::MINIMAL lock to reach merge condition = true lock compliance = 1.0E-11 lock damping = 3 / 60 max angle merge condition = 1.0E-5 (radians)

Member Function Documentation

◆ getContactReduction()

ContactReduction agxVehicle::TrackInternalMergeProperties::getContactReduction ( ) const
Returns
contact reduction level

◆ getContactReductionBinResolution()

agx::UInt agxVehicle::TrackInternalMergeProperties::getContactReductionBinResolution ( ) const
Returns
bin resolution of contact reduction - agx::InvalidIndex if contact reduction is disabled

◆ getEnableContactReduction()

agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableContactReduction ( ) const
Returns
true if contact reduction is enabled (i.e., MINIMAL, MODERATE or AGGRESSIVE)

◆ getEnableLockToReachMergeCondition()

agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableLockToReachMergeCondition ( ) const
Returns
true if lock to reach merge condition is enabled, otherwise false

◆ getEnableMerge()

agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableMerge ( ) const
Returns
true if merge functionality is enabled, otherwise false

◆ getLockToReachMergeConditionCompliance()

agx::Real agxVehicle::TrackInternalMergeProperties::getLockToReachMergeConditionCompliance ( ) const
Returns
hinge lock compliance

◆ getLockToReachMergeConditionDamping()

agx::Real agxVehicle::TrackInternalMergeProperties::getLockToReachMergeConditionDamping ( ) const
Returns
hinge lock damping

◆ getMaxAngleMergeCondition()

agx::Real agxVehicle::TrackInternalMergeProperties::getMaxAngleMergeCondition ( ) const
Returns
maximum angle > 0 that triggers merge between two nodes

◆ getNumNodesPerMergeSegment()

agx::UInt agxVehicle::TrackInternalMergeProperties::getNumNodesPerMergeSegment ( ) const
Returns
number of nodes in a row that may merge together

◆ resetToDefault()

void agxVehicle::TrackInternalMergeProperties::resetToDefault ( )

Resets all values to default (see default constructor).

◆ setContactReduction()

void agxVehicle::TrackInternalMergeProperties::setContactReduction ( ContactReduction  contactReductionLevel)

Set contact reduction level of merged nodes against other objects.

Parameters
contactReductionLevel- contact reduction level

◆ setEnableLockToReachMergeCondition()

void agxVehicle::TrackInternalMergeProperties::setEnableLockToReachMergeCondition ( agx::Bool  enable)

Enable/disable the usage of hinge lock to reach merge condition (angle close to zero).

Parameters
enable- true to enable, false to disable

◆ setEnableMerge()

void agxVehicle::TrackInternalMergeProperties::setEnableMerge ( agx::Bool  enable)

Enable/disable merge of nodes to segments in the track.

Parameters
enable- true to enable, false to disable

◆ setLockToReachMergeConditionCompliance()

void agxVehicle::TrackInternalMergeProperties::setLockToReachMergeConditionCompliance ( agx::Real  compliance)

Assign compliance of the hinge lock used to reach merge condition.

Parameters
compliance- hinge lock compliance

◆ setLockToReachMergeConditionDamping()

void agxVehicle::TrackInternalMergeProperties::setLockToReachMergeConditionDamping ( agx::Real  damping)

Assign damping of the hinge lock used to reach merge condition.

Parameters
damping- hinge lock damping

◆ setMaxAngleMergeCondition()

void agxVehicle::TrackInternalMergeProperties::setMaxAngleMergeCondition ( agx::Real  maxAngleToMerge)

Assign maximum angle > 0 to trigger merge between nodes.

I.e., when the angle between two nodes < maxAngleToMerge the nodes will merge.

Parameters
maxAngleToMerge- maximum angle > 0 to trigger merge between two nodes

◆ setNumNodesPerMergeSegment()

void agxVehicle::TrackInternalMergeProperties::setNumNodesPerMergeSegment ( agx::UInt  numNodesPerMergeSegment)

Assign number of nodes in a row that may merge together.

Parameters
numNodesPerMergeSegment- number of nodes in a row that may merge together

The documentation for this class was generated from the following file: