|
AGX Dynamics
2.35.0.1
|
Oriented box friction model that uses the same normal force magnitude for all contact points associated to this friction model. More...
#include <OrientedFrictionModels.h>
Inheritance diagram for agx::ConstantNormalForceOrientedBoxFrictionModel:Public Member Functions | |
| ConstantNormalForceOrientedBoxFrictionModel (agx::Real normalForceMagnitude, const agx::Frame *refFrame, const agx::Vec3 &primaryDirection, agx::FrictionModel::SolveType solveType=agx::FrictionModel::SPLIT, agx::Bool scaleWithDepth=false) | |
| Construct given normal force magnitude, reference frame and primary direction. More... | |
| virtual agx::Real | calculateNormalForce (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth, const agx::Real dt, const size_t numPoints) const override |
| const char * | getClassName () const override |
| agx::Bool | getEnableScaleWithDepth () const |
| agx::Real | getNormalForceMagnitude () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setEnableScaleWithDepth (agx::Bool enable) |
| Enable/disable scale of the given normal force with the contact point depth resulting in a maximum friction force: depth * primary_friction_coefficient * given_normal_force depth * secondary_friction_coefficient * given_normal_force Default: false. More... | |
| void | setNormalForceMagnitude (agx::Real normalForceMagnitude) |
| Assign normal force magnitude. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
Public Member Functions inherited from agx::OrientedBoxFrictionModel | |
| OrientedBoxFrictionModel (const agx::Frame *refFrame, const agx::Vec3 &primaryDirection, agx::FrictionModel::SolveType solveType=agx::FrictionModel::SPLIT) | |
| Construct given frame of reference and primary friction direction. More... | |
Public Member Functions inherited from agx::OrientedFrictionModelImpl< agx::BoxFrictionModel > | |
| OrientedFrictionModelImpl (const agx::Frame *refFrame, const agx::Vec3 &primaryDirection, agx::FrictionModel::SolveType solveType) | |
| Construct given frame of reference and primary friction direction. More... | |
| virtual void | calculateTangentPlane (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth, agx::Vec3 &ret_u, agx::Vec3 &ret_v) const override |
| Calculates primary and secondary friction directions in world coordinates given contact point. More... | |
| const agx::Vec3 & | getPrimaryDirection () const |
| const agx::Frame * | getReferenceFrame () const |
| void | setPrimaryDirection (const agx::Vec3 &primaryDirection) |
| Assign primary friction direction given in reference frame. More... | |
| void | setReferenceFrame (const agx::Frame *refFrame) |
| Assign frame of reference. More... | |
Public Member Functions inherited from agx::BoxFrictionModel | |
| BoxFrictionModel (agx::FrictionModel::SolveType solveType=agx::FrictionModel::SPLIT) | |
| Default constructor with default (preferred) solve type SPLIT. More... | |
| virtual void | initialize (const Physics::GeometryContactPtr geometryContact, size_t pointIndex, agx::Real dt, agx::RangeReal &ret_boundU, agx::RangeReal &ret_boundV) const override |
| Initializes the bounds, i.e., max force for the tangential equations. More... | |
Public Member Functions inherited from agx::FrictionModel | |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agx::FrictionModel) | |
| int | getCallbackMask () const |
| SolveType | getSolveType () const |
| bool | hasCustomContactImplementation () const |
| virtual void | matchForCustomContactImplementation (agxCollide::GeometryContact *geometryContact, agxSDK::Simulation *simulation) |
| bool | needsNlmcpCallbacks () const |
| void | setSolveType (SolveType solveType) |
| Solve type for a friction model can be either DIRECT (all equations to the direct solver), ITERATIVE (all equations to the iterative solver), SPLIT (normal equations both direct and iterative and tangential equations only iterative) and DIRECT_AND_ITERATIVE (both normal and tangential equations are solved both direct and iterative). More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agx::OrientedBoxFrictionModel | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agx::BoxFrictionModel | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
Protected Member Functions | |
| ConstantNormalForceOrientedBoxFrictionModel () | |
| virtual | ~ConstantNormalForceOrientedBoxFrictionModel () |
Protected Member Functions inherited from agx::OrientedBoxFrictionModel | |
| OrientedBoxFrictionModel () | |
| virtual | ~OrientedBoxFrictionModel () |
Protected Member Functions inherited from agx::OrientedFrictionModelImpl< agx::BoxFrictionModel > | |
| virtual | ~OrientedFrictionModelImpl () |
Protected Member Functions inherited from agx::BoxFrictionModel | |
| virtual | ~BoxFrictionModel () |
Protected Member Functions inherited from agx::FrictionModel | |
| FrictionModel (int callbackMask, SolveType preferredSolveType) | |
| Protected constructor given callback bask and preferred solve type. More... | |
| virtual | ~FrictionModel () |
| Destructor. More... | |
| void | restore (agxStream::InputArchive &in) override |
| Restore. More... | |
| void | store (agxStream::OutputArchive &out) const override |
| Store. More... | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| Serializable (const Serializable &other) | |
| Copy constructor. More... | |
| void | generateUuid () |
Additional Inherited Members | |
Public Types inherited from agx::OrientedBoxFrictionModel | |
| using | Base = OrientedFrictionModelImpl< agx::BoxFrictionModel > |
Public Types inherited from agx::OrientedFrictionModelImpl< agx::BoxFrictionModel > | |
| using | Model = agx::BoxFrictionModel |
Public Types inherited from agx::FrictionModel | |
| enum | FrictionCallbackType { NONE = 0 , INITIALIZE = 1 << 0 , SCALE_BOUNDS = 1 << 1 , ITERATIVE_PROJECTION = 1 << 2 , HAS_CUSTOM_CONTACT_IMPLEMENTATION = 1 << 3 } |
| enum | SolveType { NOT_DEFINED , DIRECT , ITERATIVE , SPLIT , DIRECT_AND_ITERATIVE } |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Oriented box friction model that uses the same normal force magnitude for all contact points associated to this friction model.
This means that the size of the friction box always will be: primary direction: primary_friction_coefficient * given_normal_force secondary direction: secondary_friction_coefficient * given_normal_force The given normal force can also be scaled with the contact point depth resulting in a maximum friction force: depth * primary_friction_coefficient * given_normal_force depth * secondary_friction_coefficient * given_normal_force
Definition at line 190 of file OrientedFrictionModels.h.
| agx::ConstantNormalForceOrientedBoxFrictionModel::ConstantNormalForceOrientedBoxFrictionModel | ( | agx::Real | normalForceMagnitude, |
| const agx::Frame * | refFrame, | ||
| const agx::Vec3 & | primaryDirection, | ||
| agx::FrictionModel::SolveType | solveType = agx::FrictionModel::SPLIT, |
||
| agx::Bool | scaleWithDepth = false |
||
| ) |
Construct given normal force magnitude, reference frame and primary direction.
| normalForceMagnitude | - normal force for all contact points |
| refFrame | - frame of reference |
| primaryDirection | - primary friction direction |
| solveType | - friction model solve type |
| scaleWithDepth | - true to scale the given normal force with the contact point depth |
|
protected |
|
protectedvirtual |
|
overridevirtual |
Reimplemented from agx::BoxFrictionModel.
|
inlinestatic |
Definition at line 245 of file OrientedFrictionModels.h.
|
inlinestatic |
Definition at line 245 of file OrientedFrictionModels.h.
|
inlineoverridevirtual |
Reimplemented from agx::OrientedBoxFrictionModel.
Definition at line 245 of file OrientedFrictionModels.h.
|
inlinestatic |
Definition at line 245 of file OrientedFrictionModels.h.
| agx::Bool agx::ConstantNormalForceOrientedBoxFrictionModel::getEnableScaleWithDepth | ( | ) | const |
| agx::Real agx::ConstantNormalForceOrientedBoxFrictionModel::getNormalForceMagnitude | ( | ) | const |
|
inlineoverridevirtual |
Reimplemented from agx::OrientedBoxFrictionModel.
Definition at line 245 of file OrientedFrictionModels.h.
|
overridevirtual |
Reimplemented from agx::OrientedBoxFrictionModel.
| void agx::ConstantNormalForceOrientedBoxFrictionModel::setEnableScaleWithDepth | ( | agx::Bool | enable | ) |
Enable/disable scale of the given normal force with the contact point depth resulting in a maximum friction force: depth * primary_friction_coefficient * given_normal_force depth * secondary_friction_coefficient * given_normal_force Default: false.
| enable | - true to enable, false to disable |
| void agx::ConstantNormalForceOrientedBoxFrictionModel::setNormalForceMagnitude | ( | agx::Real | normalForceMagnitude | ) |
Assign normal force magnitude.
| normalForceMagnitude | - normal force magnitude |
|
overridevirtual |
Reimplemented from agx::OrientedBoxFrictionModel.