60 virtual
agx::RegularizationParameters::VariableType calculateComplianceAndDamping(
61 const
agx::Real timeStep,
agx::Real& compliance,
agx::Real& damping) override;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
A gear is a connector between two rotational units.
void setGearRatio(agx::Real ratio)
Set the gear ratio.
Gear(agx::Real ratio)
Create a gear with the given gear ratio.
agx::Real getGearRatio() const
Gear()
Create a gear with gear ratio 1.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
A Gear that uses a holonomic constraint instead of the default nonholonomic contstraint.
void rebind()
Will set both input and output angle to zero, to remove all potential energy.
virtual bool postUpdate(agx::Real timeStep) override
agx::Real getOutputAngle() const
The angle, including winding, of the output unit.
virtual bool removeNotification(agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
remove connector and constraint from simulation
virtual agx::Real calculateViolation() const override
calculate violation for constraint
agx::Real m_viscousDamping
agx::Real getViscousDamping() const
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint() override
Create a gear constraint.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
void setViscousDamping(agx::Real viscousDamping)
Set the fixed damping.
agx::Real getInputAngle() const
The angle, including winding, of the input unit.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate a compliance that will result in the wanted efficiency.
Defines a viscous coupling between two rotational dimensions.
agx::Real getViscousCompliance() const
void setViscousCompliance(agx::Real viscousCompliance)
Set the fixed compliance.
agx::Real m_viscousCompliance
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate a compliance that will result in the wanted efficiency.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
Constraint implementation for constraining a number of physical dimensions of the same type.
Defines a stiff gear constraint between two rotational dimensions.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Abstract base class for storing/restoring a line/drums with version control.
Utility class to hold custom implementations of constraints.
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::ref_ptr< HolonomicGear > HolonomicGearRef
agx::ref_ptr< Gear > GearRef
agx::ref_ptr< SlipGear > SlipGearRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.