AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) More...
 
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). More...
 
void setContactReduction (ContactReduction contactReductionLevel)
 Set contact reduction level of merged nodes against other objects. More...
 
void setEnableLockToReachMergeCondition (agx::Bool enable)
 Enable/disable the usage of hinge lock to reach merge condition (angle close to zero). More...
 
void setEnableMerge (agx::Bool enable)
 Enable/disable merge of nodes to segments in the track. More...
 
void setLockToReachMergeConditionCompliance (agx::Real compliance)
 Assign compliance of the hinge lock used to reach merge condition. More...
 
void setLockToReachMergeConditionDamping (agx::Real damping)
 Assign damping of the hinge lock used to reach merge condition. More...
 
void setMaxAngleMergeCondition (agx::Real maxAngleToMerge)
 Assign maximum angle > 0 to trigger merge between nodes. More...
 
void setNumNodesPerMergeSegment (agx::UInt numNodesPerMergeSegment)
 Assign number of nodes in a row that may merge together. More...
 

Detailed Description

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

Definition at line 28 of file TrackInternalMergeProperties.h.

Member Enumeration Documentation

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

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

ContactReduction agxVehicle::TrackInternalMergeProperties::getContactReduction ( ) const
Returns
contact reduction level
agx::UInt agxVehicle::TrackInternalMergeProperties::getContactReductionBinResolution ( ) const
Returns
bin resolution of contact reduction - agx::InvalidIndex if contact reduction is disabled
agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableContactReduction ( ) const
Returns
true if contact reduction is enabled (i.e., MINIMAL, MODERATE or AGGRESSIVE)
agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableLockToReachMergeCondition ( ) const
Returns
true if lock to reach merge condition is enabled, otherwise false
agx::Bool agxVehicle::TrackInternalMergeProperties::getEnableMerge ( ) const
Returns
true if merge functionality is enabled, otherwise false
agx::Real agxVehicle::TrackInternalMergeProperties::getLockToReachMergeConditionCompliance ( ) const
Returns
hinge lock compliance
agx::Real agxVehicle::TrackInternalMergeProperties::getLockToReachMergeConditionDamping ( ) const
Returns
hinge lock damping
agx::Real agxVehicle::TrackInternalMergeProperties::getMaxAngleMergeCondition ( ) const
Returns
maximum angle > 0 that triggers merge between two nodes
agx::UInt agxVehicle::TrackInternalMergeProperties::getNumNodesPerMergeSegment ( ) const
Returns
number of nodes in a row that may merge together
void agxVehicle::TrackInternalMergeProperties::resetToDefault ( )

Resets all values to default (see default constructor).

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

Set contact reduction level of merged nodes against other objects.

Parameters
contactReductionLevel- contact reduction level
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
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
void agxVehicle::TrackInternalMergeProperties::setLockToReachMergeConditionCompliance ( agx::Real  compliance)

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

Parameters
compliance- hinge lock compliance
void agxVehicle::TrackInternalMergeProperties::setLockToReachMergeConditionDamping ( agx::Real  damping)

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

Parameters
damping- hinge lock damping
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
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: