|
AGX Dynamics
2.38.0.2
|
(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. More... | |
| GeometryPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link) | |
| Construct matching filter given property-bool name and the link. More... | |
| const agxWire::Link * | getLink () const |
| agx::Real | getTensionThreshold () const |
| LinkExecuteFilter (const agxWire::Link *link) | |
| Construct given link this algorithm belongs to. More... | |
| RigidBodyPropertyBoolFilter (const agx::String &propertyName, const agxWire::Link *link) | |
| Construct matching filter given property-bool name and the link. More... | |
| void | setTensionThreshold (agx::Real tensionThreshold) |
| Assign new tension threshold defining the moment the stabilizing constraints should be applied. More... | |
Protected Types | |
| typedef agx::Vector< agx::LockJointRef > | ConstraintContainer |
Protected Member Functions | |
| LinkObjectStabilizingAlgorithm () | |
| Protected default constructor, used during restore. More... | |
| virtual | ~GeometryPropertyBoolFilter () |
| Reference counted object, protected destructor. More... | |
| virtual | ~LinkObjectStabilizingAlgorithm () |
| Reference counted object, protected destructor. More... | |
| virtual | ~RigidBodyPropertyBoolFilter () |
| Reference counted object, protected destructor. More... | |
| GeometryPropertyBoolFilter () | |
| Protected default constructor, used during restore. More... | |
| 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. More... | |
| 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. More... | |
| virtual bool | matchOther (const agxCollide::Geometry *otherGeometry) const override |
| Match function. More... | |
| virtual bool | matchOther (const agxCollide::Geometry *otherGeometry) const override |
| Match function. More... | |
| template<typename T > | |
| agx::Bool | matchT (const T *obj) const |
| Match function for either agxCollide::Geometry or agx::RigidBody. More... | |
| 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. More... | |
| virtual void | post (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override |
| Removing the stabilizing constraints. More... | |
| virtual void | pre (agxWire::Link *link, agxSDK::SimulationProxy *simulationProxy) override |
| Checks stability and adding stabilizing constraints if needed. More... | |
| RigidBodyPropertyBoolFilter () | |
| Protected default constructor, used during restore. More... | |
Protected Attributes | |
| ConstraintContainer | m_constraints |
| agxSDK::ContactEventListenerRef | m_contactListener |
| agx::String | m_propertyName |
| agx::Real | m_tensionThreshold |
(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 41 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.