|
AGX Dynamics 2.42.3.1
|
(Optional) Link algorithm that tries to stabilize the link when the link is in contact with an object. More...
#include <LinkAlgorithms.h>
Inheritance diagram for agxWire::LinkObjectStabilizingAlgorithm:Public Types | |
| typedef agx::ref_ptr< GeometryPropertyBoolFilter > | GeometryPropertyBoolFilterRef |
| typedef agx::ref_ptr< RigidBodyPropertyBoolFilter > | RigidBodyPropertyBoolFilterRef |
Public Member Functions | |
| LinkObjectStabilizingAlgorithm (agxWire::LinkObjectStabilizingAlgorithm::LinkExecuteFilter *filter, agx::Real tensionThreshold=agx::Real(1E4)) | |
| Construct given filter to filter out which objects should have this feature. | |
| GeometryPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link) | |
| Construct matching filter given property-bool name and the link. | |
| const agxWire::Link * | getLink () const |
| agx::Real | getTensionThreshold () const |
| LinkExecuteFilter (const agxWire::Link *link) | |
| Construct given link this algorithm belongs to. | |
| RigidBodyPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link) | |
| Construct matching filter given property-bool name and the link. | |
| void | setTensionThreshold (agx::Real tensionThreshold) |
| Assign new tension threshold defining the moment the stabilizing constraints should be applied. | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. | |
Protected Types | |
| typedef agx::Vector< agx::LockJointRef > | ConstraintContainer |
Protected Member Functions | |
| LinkObjectStabilizingAlgorithm () | |
| Protected default constructor, used during restore. | |
| virtual | ~GeometryPropertyBoolFilter () |
| Reference counted object, protected destructor. | |
| virtual | ~LinkObjectStabilizingAlgorithm () |
| Reference counted object, protected destructor. | |
| virtual | ~RigidBodyPropertyBoolFilter () |
| Reference counted object, protected destructor. | |
| GeometryPropertyBoolFilter () | |
| Protected default constructor, used during restore. | |
| virtual bool | match (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2) const override |
| Base match method which determines which geometry belongs to the link and who's not. | |
| virtual bool | matchOther (const agxCollide::Geometry *otherGeometry) const =0 |
Called when this base filter has determined which geometry that's not part of the link - the otherGeometry. | |
| virtual bool | matchOther (const agxCollide::Geometry *otherGeometry) const override |
| Match function. | |
| virtual bool | matchOther (const agxCollide::Geometry *otherGeometry) const override |
| Match function. | |
| template<typename T > | |
| agx::Bool | matchT (const T *obj) const |
| Match function for either agxCollide::Geometry or agx::RigidBody. | |
| virtual void | onLinkEnable (agx::Bool enable, agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override |
| Adding contact listener if link switched from disabled do enabled, otherwise removing the contact listener. | |
| virtual void | post (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override |
| Removing the stabilizing constraints. | |
| virtual void | pre (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override |
| Checks stability and adding stabilizing constraints if needed. | |
| RigidBodyPropertyBoolFilter () | |
| Protected default constructor, used during restore. | |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. | |
| Serializable (const Serializable &other) | |
| Copy constructor. | |
| void | generateUuid () |
Protected Attributes | |
| ConstraintContainer | m_constraints |
| agxSDK::ContactEventListenerRef | m_contactListener |
| agx::String | m_propertyName |
| agx::Real | m_tensionThreshold |
Additional Inherited Members | |
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. | |
(Optional) Link algorithm that tries to stabilize the link when the link is in contact with an object.
Execute filter for the LinkObjectStabilizingAlgorithm which trying to match a 'property-bool' in the other rigid body which the link interacts with.
Execute filter for the LinkObjectStabilizingAlgorithm which trying to match a 'property-bool' in the other geometry which the link interacts with.
Base filter for selecting objects to the LinkObjectStabilizingAlgorithm.
If there's high enough tension in the wire, this algorithm will create extra constraints between the link and the contacting object.
It's not recommended to have this enabled for all objects so an execute filter has to be given to define which objects this feature is enabled for.
For user implemented filters there's three things you have to do:
Example: link->add( new LinkObjectStabilizingAlgorithm( new LinkObjectStabilizingAlgorithm::GeometryPropertyBoolFilter( "LinkStabilize", link ) ) );
We want the link to be 'extra' stable while in contact with this geometry: geometry->getPropertyContainer()->addPropertyBool( "LinkStabilize", true );
Example: link->add( new LinkObjectStabilizingAlgorithm( new LinkObjectStabilizingAlgorithm::RigidBodyPropertyBoolFilter( "LinkStabilize", link ) ) );
We want the link to be 'extra' stable while in contact with this body: rb->getPropertyContainer()->addPropertyBool( "LinkStabilize", true );
Definition at line 36 of file LinkAlgorithms.h.
|
protected |
Definition at line 99 of file LinkAlgorithms.h.
| typedef agx::ref_ptr< GeometryPropertyBoolFilter > agxWire::LinkObjectStabilizingAlgorithm::GeometryPropertyBoolFilterRef |
Definition at line 43 of file LinkAlgorithms.h.
| typedef agx::ref_ptr< RigidBodyPropertyBoolFilter > agxWire::LinkObjectStabilizingAlgorithm::RigidBodyPropertyBoolFilterRef |
Definition at line 44 of file LinkAlgorithms.h.
| agxWire::LinkObjectStabilizingAlgorithm::LinkObjectStabilizingAlgorithm | ( | agxWire::LinkObjectStabilizingAlgorithm::LinkExecuteFilter * | filter, |
| agx::Real | tensionThreshold = agx::Real(1E4) |
||
| ) |
Construct given filter to filter out which objects should have this feature.
| filter | - user implemented or pre-defined execute filter |
| tensionThreshold | - tension threshold defining the moment the stabilizing constraints should be applied (default: 1.0E4) |
|
protected |
Protected default constructor, used during restore.
|
protectedvirtual |
Reference counted object, protected destructor.
|
protectedvirtual |
Reference counted object, protected destructor.
|
protectedvirtual |
Reference counted object, protected destructor.
|
protected |
Protected default constructor, used during restore.
|
inline |
Construct matching filter given property-bool name and the link.
| propertyName | - property-bool for geometry for positive match (geometry->getPropertyContainer()->addPropertyBool( propertyName, true )) |
| link | - link this filter belongs to, in order to filter out which of the two geometries in a geometry contact is a link geometry |
Definition at line 197 of file LinkAlgorithms.h.
|
inline |
Definition at line 129 of file LinkAlgorithms.h.
| agx::Real agxWire::LinkObjectStabilizingAlgorithm::getTensionThreshold | ( | ) | const |
|
inline |
Construct given link this algorithm belongs to.
It needs the link because it's the only way to know if this filter has been invalidated.
| link | - link this execute filter is defined for |
Definition at line 123 of file LinkAlgorithms.h.
|
inlineoverrideprotectedvirtual |
Base match method which determines which geometry belongs to the link and who's not.
Definition at line 161 of file LinkAlgorithms.h.
|
protectedpure virtual |
Called when this base filter has determined which geometry that's not part of the link - the otherGeometry.
| otherGeometry | - the geometry the link is currently overlapping |
|
inlineoverrideprotectedvirtual |
Match function.
Definition at line 221 of file LinkAlgorithms.h.
|
inlineoverrideprotectedvirtual |
Match function.
Definition at line 286 of file LinkAlgorithms.h.
|
inlineprotected |
Match function for either agxCollide::Geometry or agx::RigidBody.
Definition at line 231 of file LinkAlgorithms.h.
|
overrideprotectedvirtual |
Adding contact listener if link switched from disabled do enabled, otherwise removing the contact listener.
|
overrideprotectedvirtual |
Removing the stabilizing constraints.
|
overrideprotectedvirtual |
Checks stability and adding stabilizing constraints if needed.
|
protected |
Protected default constructor, used during restore.
|
inline |
Construct matching filter given property-bool name and the link.
| propertyName | - property-bool for rigid body for positive match (rb->getPropertyContainer()->addPropertyBool( propertyName, true )) |
| link | - link this filter belongs to, in order to filter out which of the two geometries in a geometry contact is a link geometry |
Definition at line 262 of file LinkAlgorithms.h.
| void agxWire::LinkObjectStabilizingAlgorithm::setTensionThreshold | ( | agx::Real | tensionThreshold | ) |
Assign new tension threshold defining the moment the stabilizing constraints should be applied.
| tensionThreshold | - new tension threshold (default: 1.0E4) |
|
protected |
Definition at line 103 of file LinkAlgorithms.h.
|
protected |
Definition at line 102 of file LinkAlgorithms.h.
|
protected |
Definition at line 241 of file LinkAlgorithms.h.
|
protected |
Definition at line 104 of file LinkAlgorithms.h.