250 ON_INITIALIZE_MERGE_NODES_TO_WHEELS = 1 << 0,
251 ON_INITIALIZE_TRANSFORM_NODES_TO_WHEELS = 1 << 1,
252 HINGE_RANGE_ENABLED = 1 << 2,
254 using Flags = agx::BitState<FlagsEnum, agx::UInt32>;
285 return m_hingeCompliance[ (
agx::UInt)std::max<int>( dof, 0 ) ];
290 return m_hingeDamping[ (
agx::UInt)std::max<int>( dof, 0 ) ];
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXVEHICLE_EXPORT
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Object containing properties of an agxVehicle::Track.
agx::Real getHingeDamping(agx::Hinge::DOF dof) const
void updateComplianceDamping(agx::Hinge &hinge) const
Writes compliance and damping to the given hinge instance.
void setMinStabilizingHingeNormalForce(agx::Real minNormalForce)
Minimum value of the normal force (the hinge force along the track) used in "internal" friction calcu...
void setHingeCompliance(agx::Real compliance)
Assign compliance (for all hinge degrees of freedom) used in the hinges between track nodes.
void setEnableOnInitializeTransformNodesToWheels(agx::Bool enable)
True to position/transform the track nodes to the surface of the wheels after the track has been init...
agx::BitState< FlagsEnum, agx::UInt32 > Flags
void setHingeComplianceRotational(agx::Real compliance)
Assign compliance for the rotational degrees of freedom in the hinges between track nodes.
void setNumNodesIncludedInAverageDirection(agx::UInt numIncludedNodes)
Average direction of non-merged nodes entering or exiting a wheel is used as reference direction to s...
void setNodesToWheelsMergeThreshold(agx::Real mergeThreshold)
Threshold when to merge a node to a wheel.
void setHingeDamping(agx::Real damping)
Assign damping (for all hinge degrees of freedom) used in the hinges between track nodes.
void setHingeComplianceTranslational(agx::Real compliance)
Assign compliance for the translational degrees of freedom in the hinges between track nodes.
void setTransformNodesToWheelsOverlap(agx::Real overlap)
When the nodes are transformed to the wheels, this is the final target overlap.
TrackProperties()
Default constructor - all flags and values are set do default.
agx::Real getMinStabilizingHingeNormalForce() const
agx::Real getHingeCompliance(agx::Hinge::DOF dof) const
void setHingeDampingTranslational(agx::Real damping)
Assign damping for the translational degrees of freedom in the hinges between track nodes.
void setHingeDampingRotational(agx::Real damping)
Assign damping for the rotational degrees of freedom in the hinges between track nodes.
void setHingeCompliance(agx::Real compliance, agx::Hinge::DOF dof)
Assign compliance for a given degree of freedom in the hinges between track nodes.
void setStabilizingHingeFrictionParameter(agx::Real frictionParameter)
Friction parameter of the internal friction in the node hinges.
void setNodesToWheelsSplitThreshold(agx::Real splitThreshold)
Threshold when to split a node from a wheel.
void resetToDefault()
Resets all flags and values to default.
void setHingeRangeRange(agx::Real lowerAngle, agx::Real upperAngle)
Assign range used if the hinge range between the nodes are enabled.
agx::Real getNodesToWheelsSplitThreshold() const
void setEnableOnInitializeMergeNodesToWheels(agx::Bool enable)
When the track has been initialized some nodes are in contact with the wheels.
agx::Real getTransformNodesToWheelsOverlap() const
agx::UInt getNumNodesIncludedInAverageDirection() const
agx::Real getStabilizingHingeFrictionParameter() const
agx::Bool getEnableOnInitializeMergeNodesToWheels() const
void setHingeDamping(agx::Real damping, agx::Hinge::DOF dof)
Assign damping for a given degree of freedom in the hinges between track nodes.
agx::Bool getEnableHingeRange() const
@ MIN_STABILIZING_NORMAL_FORCE
@ NODE_TO_WHEEL_SPLIT_THRESHOLD
@ STABILIZING_FRICTION_PARAMETER
@ NODE_TO_WHEEL_MERGE_THRESHOLD
@ NUM_NODES_IN_AVERAGE_DIRECTION
virtual ~TrackProperties()
Reference counted object - protected destructor.
agx::Real getNodesToWheelsMergeThreshold() const
agx::RangeReal getHingeRangeRange() const
agx::Bool getEnableOnInitializeTransformNodesToWheels() const
void setEnableHingeRange(agx::Bool enable)
True to enable the range in the hinges between the track nodes to define how the track may bend.
The hinge constraint between two rigid bodies or one rigid body and the world.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Base class providing referencing counted objects.
This namespace contains classes related to vehicles dynamics.
VectorPOD< Real > RealVector