23 #define MAXIMUM_DISTANCE_BETWEEN_NODE_AND_GEOMETRY 0.05
74 inline void setMinimumDistanceBetweenNodes(
agx::Real minDistanceBetweenNodes);
80 agx::Real getMinimumDistanceBetweenNodes()
const;
89 inline void setStopNodeReferenceDistance(
agx::Real stopNodeReferenceDistance);
95 agx::Real getStopNodeReferenceDistance()
const;
102 void setStopNodeLumpMinDistanceFraction(
agx::Real stopNodeLumpMinDistanceFraction);
108 agx::Real getStopNodeLumpMinDistanceFraction()
const;
116 void setScaleConstant(
agx::Real scaleConstant);
130 void setRadiusMultiplier(
agx::Real radiusMultiplier);
132 agx::Real getNonScaledRadiusMultiplier()
const;
144 void setMaximumContactMovementOneTimestep(
agx::Real maxMovement);
146 agx::Real getMaximumContactMovementOneTimestep()
const;
178 agx::
Real getWireContactPrecision() const;
179 agx::
Real getContactNodeEdgeDefaultLength() const;
180 agx::
Bool getSolverUseExtraLength() const;
181 agx::
Bool getSolverMoveNodesBeforeMainSolver() const;
186 void setWireContactPrecision(
agx::
Real precision);
188 void setContactNodeEdgeDefaultLength(
agx::
Real length);
189 void setSolverUseExtraLength(
agx::
Bool useExtraLength);
190 void setSolverMoveNodesBeforeMainSolver(
agx::
Bool moveNodesBeforeSolver);
216 agx::
Real m_minimumDistanceBetweenNodes;
217 agx::
Real m_stopNodeReferenceDistance;
218 agx::
Real m_stopNodeLumpMinDistanceFraction;
222 agx::
Real m_maximumContactMovementOneTimestep;
223 agx::
Real m_splitTensionMultiplier;
224 agx::
Real m_wireContactPrecision;
225 agx::
Real m_wireContactDynamicsSolverDampingScale;
226 agx::
Real m_contactNodeEdgeDefaultLength;
228 agx::
Bool m_moveNodesBeforeSolver;
234 return m_winchPrismaticCompliance;
239 return m_winchPrismaticCompliance;
245 m_minimumDistanceBetweenNodes = minDistanceBetweenNodes;
251 return m_minimumDistanceBetweenNodes;
257 m_stopNodeReferenceDistance = stopNodeReferenceDistance;
262 return m_stopNodeReferenceDistance;
268 m_stopNodeLumpMinDistanceFraction = stopNodeLumpMinDistanceFraction;
274 return m_stopNodeLumpMinDistanceFraction;
282 m_scaleConstant = scaleConstant;
288 return m_scaleConstant;
295 m_radiusMultiplier = radiusMultiplier;
300 return m_radiusMultiplier;
307 agx::Real radiusInMultiplier = wireRadius * m_radiusMultiplier;
311 return (wireRadius + extra) / wireRadius;
316 maxMovement = std::abs(maxMovement);
317 m_maximumContactMovementOneTimestep = maxMovement;
322 return m_maximumContactMovementOneTimestep;
327 return m_maximumContactMovementOneTimestep * 2 + wireRadius * 4;
#define MAXIMUM_DISTANCE_BETWEEN_NODE_AND_GEOMETRY
#define AGXPHYSICS_EXPORT
Class to hold specific parameters for the wire - this makes the wires highly configurable.
agx::Real getStopNodeReferenceDistance() const
agx::Real getSensorRadius(agx::Real wireRadius) const
void setMaximumContactMovementOneTimestep(agx::Real maxMovement)
This value should be related the size of objects the wire is interacting with, to avoid tunneling If ...
agx::Real getStopNodeLumpMinDistanceFraction() const
agx::Real getNonScaledRadiusMultiplier() const
agx::Real getMaximumContactMovementOneTimestep() const
void setWireContactDynamicsSolverDampingScale(agx::Real scale)
Set a scale for the damping of the dynamics solver for ShapeContactNodes This will scale the damping ...
void setMinimumDistanceBetweenNodes(agx::Real minDistanceBetweenNodes)
Set the minimum distance allowed between nodes.
WireParameterController()
void setStopNodeLumpMinDistanceFraction(agx::Real stopNodeLumpMinDistanceFraction)
Set the fraction of stop node reference distance that defines the range end of the prismatic constrai...
~WireParameterController()
agx::Real getRadiusMultiplier(agx::Real wireRadius) const
agx::Real getSplitTensionMultiplier() const
agx::Real getScaleConstant() const
void setRadiusMultiplier(agx::Real radiusMultiplier)
Set the wire sphere geometry radius multiplier.
void resetToDefault()
Reset all parameters to default.
void setScaleConstant(agx::Real scaleConstant)
The scale constant controls the insert/remove of lumped nodes in a wire.
void setSplitTensionMultiplier(agx::Real multiplier)
Set a multiplier for tension scaling when deciding if a constraint could be replaced with a force.
agx::Real getMinimumDistanceBetweenNodes() const
void setStopNodeReferenceDistance(agx::Real stopNodeReferenceDistance)
Set the distance between the lump node and the stop node for winches.
agx::Real getWireContactDynamicsSolverDampingScale() const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
Implements a Wire model with adaptive resolution.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
T1 clamp(T1 v, T2 minimum, T3 maximum)
AGXPHYSICS_EXPORT agx::Bool equalsZero(const agx::AddedMassInteraction::Matrix6x6 &matrix, agx::Real eps=agx::RealEpsilon)
Structure with compliance parameters for the prismatic constraint used by winches.
agx::Vec3 rotational
Compliance.
agx::Real lock
Compliance.
agx::Vec2 spatial_d
Damping.
agx::Vec3 rotational_d
Damping.
agx::Vec2 spatial
Compliance.
agx::Real range
Compliance.
agx::Real range_d
Damping.
agx::Real motor
Compliance.
agx::Real motor_d
Damping.