|
AGXDynamics
2.31.1.0
|
#include <WireWinchController.h>
Inheritance diagram for agxWire::WireSimpleDrumController:Public Types | |
| enum | Type { ASSEMBLY, COLLECTION } |
| Specifies the type an assembly is. More... | |
Public Member Functions | |
| WireSimpleDrumController (agx::Real radius, agx::Real length, size_t maxNumActiveContactNodes=5, bool upsideDown=false) | |
| bool | add (agx::Constraint *constraint) |
| Add a constraint to the assembly. More... | |
| bool | add (agx::Interaction *interaction) |
| Add an interaction to this assembly. More... | |
| bool | add (agxSDK::EventListener *listener) |
| Add a listener to the assembly. More... | |
| bool | add (agx::RigidBody *body) |
| Add a rigid body to the assembly. More... | |
| bool | add (agxCollide::Geometry *geometry) |
| Add a geometry to the assembly. More... | |
| bool | add (Assembly *assembly) |
| Add another assembly as child to this assembly. More... | |
| bool | add (agx::ContactMaterial *contactMaterial) |
| Add a contact material to this assembly. More... | |
| bool | add (agx::Emitter *emitter) |
| Add an emitter to this assembly. More... | |
| bool | add (agx::ObserverFrame *observerFrame) |
| Add an ObserverFrame to this assembly. More... | |
| bool | add (agxStream::Serializable *object) |
| Add an object of type serialized. More... | |
| virtual void | addNotification (agxSDK::Simulation *) |
| Called when this assembly is added to a simulation (given that it not already is in the simulation). More... | |
| virtual void | addNotification (Assembly *) |
| Called when this assembly is added to another assembly. More... | |
| 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 |
| bool | attach (agx::RigidBody *rb, agx::Frame *attachmentFrame) |
| Attach this simple drum to a rigid body using an attachment frame. More... | |
| agx::Constraint1DOF * | get1DOFConstraint () |
| Get pointer to Constraint1DOF. More... | |
| const agx::Constraint1DOF * | get1DOFConstraint () const |
| const AssemblyRefSet & | getAssemblies () const |
| const agxSDK::Assembly * | getAssembly (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named Assembly. More... | |
| agxSDK::Assembly * | getAssembly (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named Assembly. More... | |
| const agxSDK::Assembly * | getAssembly (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return an Assembly matching the given uuid. More... | |
| agxSDK::Assembly * | getAssembly (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return an Assembly matching the given uuid. More... | |
| bool | getAutoFeed () const |
| const agx::RangeReal & | getBrakeForceRange () const |
| const char * | getClassName () const override |
| const agx::Constraint * | getConstraint (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a pointer to a Constraint with the given uuid. More... | |
| agx::Constraint * | getConstraint (const agx::Uuid &uuid, bool recursive=true) |
| Find and return a pointer to a Constraint with the given uuid. More... | |
| const agx::Constraint * | getConstraint (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named Constraint. More... | |
| agx::Constraint * | getConstraint (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named Constraint. More... | |
| template<typename T > | |
| T * | getConstraint (const agx::Name &name, bool recursive=true) |
| Find and return named Constraint of a template type, for example Hinge: More... | |
| template<typename T > | |
| const T * | getConstraint (const agx::Name &name, bool recursive=true) const |
| Find and return named Constraint of a template type, for example Hinge: More... | |
| agx::Constraint1DOF * | getConstraint1DOF (const agx::Name &name, bool recursive=true) |
| agx::Constraint2DOF * | getConstraint2DOF (const agx::Name &name, bool recursive=true) |
| const agx::ConstraintRefSet & | getConstraints () const |
| const WireSimpleDrumControlPointList & | getControlPoints () const |
| virtual agx::Real | getCurrentBrakeForce () const override |
| virtual agx::Real | getCurrentForce () const override |
| virtual agx::Real | getCurrentSpeed () const override |
| const agx::EmitterRefSet & | getEmitters () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agxWire::BodyFixedNode * | getFixedNode () const |
| const agx::RangeReal & | getForceRange () const |
| virtual agx::Frame * | getFrame () |
| Return a reference to the frame containing transformation and velocity information for this assembly. More... | |
| virtual const agx::Frame * | getFrame () const |
| const agxCollide::GeometryRefSet & | getGeometries () const |
| const agxCollide::Geometry * | getGeometry (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named collision Geometry. More... | |
| agxCollide::Geometry * | getGeometry (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named collision Geometry. More... | |
| const agxCollide::Geometry * | getGeometry (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a Geometry matching the given uuid. More... | |
| agxCollide::Geometry * | getGeometry (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return a Geometry matching the given uuid. More... | |
| agxCollide::Geometry * | getGeometry () const |
| agx::Hinge * | getHinge () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| const InteractionRefSetVector & | getInteractions () const |
| agx::Vec3 | getLocalPosition () const |
| agx::Quat | getLocalRotation () const |
| const agx::AffineMatrix4x4 & | getLocalTransform () const |
| agx::Vec3 | getLumpNodeReferencePosition () const |
| agx::Name | getName () const |
| const agx::Vec3 & | getNormal () const |
| const agx::ObserverFrame * | getObserverFrame (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| agx::ObserverFrame * | getObserverFrame (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| const agx::ObserverFrame * | getObserverFrame (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| agx::ObserverFrame * | getObserverFrame (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| const ObserverFrameRefSetVector & | getObserverFrames () const |
| Assembly * | getParent () |
| const Assembly * | getParent () const |
| agx::Frame * | getParentFrame () |
| const agx::Frame * | getParentFrame () const |
| const agxSDK::ParticleSystemRefSet & | getParticleSystems () const |
| virtual agx::Real | getPulledInWireLength () const |
| int | getReferenceCount () const |
| const agx::RigidBodyRefSet & | getRigidBodies () const |
| agx::RigidBody * | getRigidBody (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named RigidBody. More... | |
| const agx::RigidBody * | getRigidBody (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named RigidBody. More... | |
| agx::RigidBody * | getRigidBody (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return a pointer to a RigidBody with the given uuid. More... | |
| const agx::RigidBody * | getRigidBody (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a pointer to a RigidBody with the given uuid. More... | |
| agx::RigidBody * | getRigidBody () const |
| agxSDK::Simulation * | getSimulation () |
| const agxSDK::Simulation * | getSimulation () const |
| agx::Real | getSpeed () const |
| agxWire::StopNode * | getStopNode () const |
| bool | getStopNodeInserted () const |
| agx::Real | getStopNodeReferenceDistance () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| Type | getType () const |
| agx::Uuid | getUuid () const |
| virtual bool | getWithinEndRange () const |
| agx::Vec3 | getWorldNormal () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () const |
| 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... | |
| bool | remove (agx::Constraint *constraint) |
| Remove a constraint from this assembly (does not recurse down in tree). More... | |
| bool | remove (agx::Interaction *interaction) |
| Remove an interaction from this assembly. More... | |
| bool | remove (EventListener *listener) |
| Remove an EventListener from the assembly. More... | |
| bool | remove (agx::RigidBody *body, bool removeAssociatedGeometries=false) |
| Remove a rigid body from this assembly (does not recurse down in tree). More... | |
| bool | remove (agxCollide::Geometry *geometry) |
| Remove a geometry from this assembly (does not recurse down in tree). More... | |
| bool | remove (Assembly *assembly) |
| Remove a child assembly from a parent. More... | |
| bool | remove (agx::ContactMaterial *contactMaterial) |
| Remove a contact material from this assembly. More... | |
| bool | remove (agx::Emitter *emitter) |
| Remove an emitter from this assembly. More... | |
| bool | remove (agx::ObserverFrame *observerFrame) |
| Remove an ObserverFrame from this assembly. More... | |
| virtual void | removeNotification (agxSDK::Simulation *) |
| Called when this assembly is removed from a simulation. More... | |
| virtual void | removeNotification (Assembly *) |
| Called when this assembly is removed from another assembly. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual void | setAngularVelocity (const agx::Vec3 &velocity) |
| Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly. More... | |
| void | setAutoFeed (bool autoFeed) |
| Set auto feed to this winch. More... | |
| void | setBrakeForceRange (agx::RangeReal brakeForceRange) |
| Set the desired brake force range where range::lower is the force in which this winch brake can hold the wire from hauling out and ranger::upper the brake force hold the wire from hauling in. More... | |
| void | setBrakeForceRange (agx::Real brakeForce) |
| Same as setBrakeForceRange( agx::RangeReal brakeForceRange ) but this method will set range as [-brakeForce, brakeForce]. More... | |
| void | setCompliance (agx::Prismatic *prismatic) const |
| Sets the default compliance for the prismatic constraint. More... | |
| 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 | setForceRange (agx::RangeReal forceRange) |
| Set the desired winch force where range::lower is the force in which this winch may haul in wire, range::upper haul out. More... | |
| void | setForceRange (agx::Real force) |
| Same as setForceRange( agx::RangeReal forceRange ) but this method will set range as [-force, force]. More... | |
| void | setLocalPosition (const agx::Vec3 &p) |
| Set the position of the assembly relative to its frame's parent frame. More... | |
| void | setLocalPosition (agx::Real x, agx::Real y, agx::Real z) |
| Set the position of the assembly relative to its frame's parent frame. More... | |
| void | setLocalRotation (const agx::Quat &q) |
| Set the rotation of the assembly relative to its frame's parent frame. More... | |
| void | setLocalRotation (const agx::EulerAngles &e) |
| Set the rotation of the assembly relative to its frame's parent frame. More... | |
| void | setLocalTransform (const agx::AffineMatrix4x4 &matrix) |
| Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation. More... | |
| void | setName (const agx::Name &name) |
| Set the name of this Assembly. More... | |
| void | setParameterController (agxWire::WireParameterController *parameters) |
| Associate a parameter controller to this winch. More... | |
| bool | setParentFrame (agx::Frame *frame) |
| Set the parent frame of this assembly's frame. More... | |
| void | setPosition (const agx::Vec3 &p) |
| Set the position of the frame in world coordinates. More... | |
| void | setPosition (agx::Real x, agx::Real y, agx::Real z) |
| Set the position of the frame in world coordinates. More... | |
| void | setPulledInWireLength (agx::Real pulledInLength) |
| Set the pulled in length for this winch. More... | |
| void | setRotation (const agx::Quat &q) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setRotation (const agx::EulerAngles &e) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setRotation (const agx::OrthoMatrix3x3 &m) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setSpeed (agx::Real speed) |
| Set winch motor speed. More... | |
| void | setStabilityController (agxWire::WireStabilityController *stabilityController) |
| Associate a stability controller to this winch. More... | |
| void | setTransform (const agx::AffineMatrix4x4 &matrix) |
| Set the transform of the assembly. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | setVelocity (const agx::Vec3 &velocity) |
| Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual void | traverse (AssemblyVisitor *visitor) |
| Traverse the assembly tree recursively using a visitor. More... | |
| virtual void | traverse (const AssemblyVisitor *visitor) const |
| 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... | |
Static Public Member Functions | |
| static Assembly * | asAssembly (agxStream::Serializable *obj) |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| WireSimpleDrumController () | |
| virtual | ~WireSimpleDrumController () |
| virtual void | addNotification (agxSDK::SimulationProxy *) |
| Called from Wire::addNotification. More... | |
| bool | addParticleSystem (agx::ParticleSystem *particleSystem) |
| Add a particle system to this assembly. More... | |
| void | addToSimulation (Simulation *simulation) |
| void | allocateObserverVector () const |
| virtual bool | attach (WireDistanceCompositeConstraint *constraint, WireParameterController *parameters, bool begin) |
| Create new nodes for new wire. More... | |
| bool | changeBodyFixedToContactNode (BodyFixedNode *bfn) |
| agx::Real | configureInitialState () |
| This method will set the position of the lumped node given the stop node and pulled in length. More... | |
| void | createControlPoints (NodeConstIterator from, NodeConstIterator to, size_t numNodes, agx::Real &restLength, agx::Real ¤tLength) |
| agx::Prismatic * | createPrismatic (Node *fixedNode, Node *lumpedNode, const agx::Vec3 &worldNormal) const |
| Creates a prismatic constraint given the fixed-, lumped node and a normal. More... | |
| void | deleteUsingDeleteHandler () const |
| BodyFixedNode * | findParametersHoldingNode (bool begin) |
| Search the wire, given begin true of false, for the parameters holding node. More... | |
| virtual void | forcePulledInLength (agx::Real newLength) |
| void | generateUuid () |
| agx::Real | getControlPointRadius () const |
| BodyFixedNode * | getNextLumpedNode (BodyFixedNode *from, bool begin) |
| Finds the next (or previous) lumped node given a lumped node and the direction of the search. More... | |
| size_t | getNumContacts (bool begin, WireDistanceCompositeConstraint *wire, NodeIterator &lastContact, NodeIterator &firstLumpIter) const |
| virtual agx::Real | getReferenceCurrentLength (bool begin) const override |
| virtual Node * | getReferenceNode () override |
| virtual void | incrementPulledInLength (agx::Real dl) |
| virtual void | initialize (bool begin, WireParameterController *parameters) override |
| Initializes this winch (inserts the stop node and move the lump for example). More... | |
| void | initializeControlPoints (WireSimpleDrumControlPointList &controlPoints) const |
| bool | insertStopNode (bool begin) |
| Inserts the stop wire node in the wire. More... | |
| void | massUpdate (agx::Real restLengthChange, bool begin) |
| Updates mass for lumped nodes where the rest length is changed by restLengthChange. More... | |
| virtual bool | owns (const Node *node) const override |
For the wire to know if node belongs to this attachment. More... | |
| virtual void | postUpdate (agx::Bool, agxSDK::SimulationProxy *) |
| Post update call from the wire. More... | |
| virtual void | preCollideUpdate (agx::Bool, agxSDK::SimulationProxy *) |
| Pre-collide update call from the wire. More... | |
| virtual void | preUpdate (agx::Bool, agxSDK::SimulationProxy *) |
| Pre update call from the wire. More... | |
| void | rebind (const Node *to) |
| bool | removeContactNodes (NodeIterator from, NodeIterator to) |
| void | removeFromSimulation (Simulation *simulation) |
| bool | removeParticleSystem (agx::ParticleSystem *particleSystem) |
| Remove a particle system from this assembly. More... | |
| agx::Real | resetLumpPosition (agx::Real angle) |
| Resets the lump position to reference. More... | |
| void | rollIn (bool begin, NodeIterator from, size_t numContacts, agx::Real &dRestLength, agx::Real &dCurrentLength) |
| ContactNode * | rollOut (agx::Real &dRestLength, agx::Real &dCurrentLength) |
| virtual void | unitialize () |
| Forgets about all wire parameters and clears the constraint. More... | |
| virtual void | update (Node *controlledNode, Node *lumpedNode, bool begin) override |
| Called when it's time to update the constraint and reset the position of the lump. More... | |
| void | updateConstraintSettings (agx::Prismatic *prismatic, agx::Real desiredSpeed, const agx::RangeReal &forceRange, const agx::RangeReal &brakeRange, bool rangeEnable, bool forcedBrake=false) const |
| Updates motor, lock and range parameters. More... | |
| void | updateHinge (agx::Hinge *h) const |
Static Protected Member Functions | |
| 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 | |
| bool | m_autoFeed |
| agx::RangeReal | m_brakeRange |
| WireSimpleDrumControlPointList | m_controlPoints |
| BodyFixedNodeRef | m_fixedNode |
| bool | m_forcedBrake |
| agx::RangeReal | m_forceRange |
| agxCollide::GeometryRef | m_geometry |
| agx::HingeRef | m_hinge |
| agx::observer_ptr< BodyFixedNode > | m_lumpedNode |
| size_t | m_maxNumActiveContactNodes |
| Mutex | m_mutex |
| agx::Vec3 | m_normal |
| WireParameterController * | m_parameters |
| agx::observer_ptr< BodyFixedNode > | m_parametersHoldingNode |
| To access and change rest/current length. More... | |
| agx::Real | m_pulledInLength |
| agx::RigidBodyRef | m_rb |
| AtomicValue | m_refCount |
| agx::Real | m_speed |
| agx::observer_ptr< WireStabilityController > | m_stabilityController |
| If by the initialization controller, this winch can merge segments and change mass of the lumps via this controller. More... | |
| StopNodeRef | m_stopNode |
| bool | m_withinEndRange |
Definition at line 530 of file WireWinchController.h.
|
inherited |
Specifies the type an assembly is.
| Enumerator | |
|---|---|
| ASSEMBLY | This is a full fledged Assembly which uses Frame for the hierarchy. |
| COLLECTION | This is only a collection of objects NOT using Frame for the hierarchy. |
Definition at line 615 of file Assembly.h.
| agxWire::WireSimpleDrumController::WireSimpleDrumController | ( | agx::Real | radius, |
| agx::Real | length, | ||
| size_t | maxNumActiveContactNodes = 5, |
||
| bool | upsideDown = false |
||
| ) |
|
protected |
|
inlineprotectedvirtual |
Definition at line 557 of file WireWinchController.h.
References agx::begin().
|
inherited |
Add a constraint to the assembly.
|
inherited |
Add an interaction to this assembly.
|
inherited |
Add a listener to the assembly.
|
inherited |
Add a rigid body to the assembly.
|
inherited |
Add a geometry to the assembly.
|
inherited |
Add another assembly as child to this assembly.
|
inherited |
Add a contact material to this assembly.
|
inherited |
Add an emitter to this assembly.
|
inherited |
Add an ObserverFrame to this assembly.
|
inherited |
Add an object of type serialized.
The object will be dynamically cast to the types supported by add() methods an appropriately added to this Assembly.
|
inlineprotectedvirtualinherited |
Called from Wire::addNotification.
Reimplemented in agxWire::Winch.
Definition at line 251 of file WireWinchController.h.
References agx::begin().
|
inlinevirtualinherited |
Called when this assembly is added to a simulation (given that it not already is in the simulation).
Reimplemented in agxModel::Tree, agxModel::TwoBodyTire, agxSDK::LinkedStructure, agxPowerLine::PowerLine, agxModel::ThreeBodyTire, agxModel::OneBodyTire, and agxOSG::Tree.
Definition at line 579 of file Assembly.h.
Referenced by agxPowerLine::PowerLine::addNotification().
Called when this assembly is added to another assembly.
Reimplemented in agxPowerLine::PowerLine.
Definition at line 589 of file Assembly.h.
|
protectedinherited |
Add a particle system to this assembly.
ParticleSystems should only be added to Collections.
|
protectedinherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inlinestaticinherited |
Definition at line 636 of file Assembly.h.
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
protectedvirtualinherited |
Create new nodes for new wire.
| bool agxWire::WireSimpleDrumController::attach | ( | agx::RigidBody * | rb, |
| agx::Frame * | attachmentFrame | ||
| ) |
Attach this simple drum to a rigid body using an attachment frame.
| rb | - rigid body to attach to (if 0 this drum will be attached to the world) |
| attachmentFrame | - the attachment frame defining the hinge axis and center |
|
protected |
|
protectedinherited |
This method will set the position of the lumped node given the stop node and pulled in length.
|
inlinestatic |
Definition at line 553 of file WireWinchController.h.
|
inlinestatic |
Definition at line 553 of file WireWinchController.h.
|
protected |
|
protectedinherited |
Creates a prismatic constraint given the fixed-, lumped node and a normal.
|
protectedinherited |
|
protectedinherited |
Search the wire, given begin true of false, for the parameters holding node.
If this winch is located at the beginning of the wire, the parameters holding node will be the first lump after m_lumpedNode. If at end, the parameters holding node is equal to the lumped node.
| begin | - if this winch is located at the beginning or at the end of the wire |
|
protectedvirtualinherited |
|
protectedinherited |
|
inherited |
Get pointer to Constraint1DOF.
|
inherited |
|
inherited |
|
inherited |
Find (linear search) and return named Assembly.
| name | - name of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named Assembly.
| name | - name of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an Assembly matching the given uuid.
| uuid | - uuid of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an Assembly matching the given uuid.
| uuid | - uuid of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inlineinherited |
Definition at line 403 of file WireWinchController.h.
|
inlineinherited |
Definition at line 418 of file WireWinchController.h.
|
inlineoverridevirtual |
Reimplemented from agxSDK::Assembly.
Definition at line 553 of file WireWinchController.h.
|
inherited |
Find (linear search) and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find and return named Constraint of a template type, for example Hinge:
agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
Definition at line 757 of file Assembly.h.
|
inherited |
Find and return named Constraint of a template type, for example Hinge:
const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
Definition at line 763 of file Assembly.h.
|
inlineinherited |
Definition at line 632 of file Assembly.h.
|
inlineinherited |
Definition at line 633 of file Assembly.h.
|
inherited |
|
inlinestatic |
Definition at line 553 of file WireWinchController.h.
|
protected |
|
inline |
Definition at line 546 of file WireWinchController.h.
|
overridevirtual |
Reimplemented from agxWire::WireWinchController.
|
overridevirtual |
Reimplemented from agxWire::WireWinchController.
|
overridevirtual |
Reimplemented from agxWire::WireWinchController.
|
staticprotectedinherited |
|
inherited |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 413 of file WireWinchController.h.
|
inlinevirtualinherited |
Return a reference to the frame containing transformation and velocity information for this assembly.
Definition at line 690 of file Assembly.h.
|
inlinevirtualinherited |
Definition at line 695 of file Assembly.h.
|
inherited |
Referenced by agxSDK::matchFilter().
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a Geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a Geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inline |
Definition at line 548 of file WireWinchController.h.
|
inline |
Definition at line 549 of file WireWinchController.h.
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Finds the next (or previous) lumped node given a lumped node and the direction of the search.
| from | - the search will start from this body fixed wire node |
| begin | - direction of the search, begin == true the search will be forward, false backward (in the list) |
|
inlineinherited |
Definition at line 398 of file WireWinchController.h.
|
protected |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| name | - name of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| name | - name of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| uuid | - uuid of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| uuid | - uuid of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
|
inherited |
|
overrideprotectedvirtualinherited |
|
inlineoverrideprotectedvirtualinherited |
Definition at line 330 of file WireWinchController.h.
|
inherited |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigidbody |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigidbody |
| recursive | - if true (default) the search will include sub-assemblies |
|
inline |
Definition at line 547 of file WireWinchController.h.
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 408 of file WireWinchController.h.
|
inherited |
|
inherited |
|
inherited |
|
inlineoverridevirtual |
Reimplemented from agxSDK::Assembly.
Definition at line 553 of file WireWinchController.h.
|
inherited |
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
virtualinherited |
|
inherited |
|
protectedvirtualinherited |
|
overrideprotectedvirtual |
Initializes this winch (inserts the stop node and move the lump for example).
| begin | - true if this attachment is at the beginning of the wire |
| parameters | - pointer to the parameter object |
Reimplemented from agxWire::WireWinchController.
|
protected |
|
protectedinherited |
Inserts the stop wire node in the wire.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
protectedinherited |
Updates mass for lumped nodes where the rest length is changed by restLengthChange.
|
inlineoverrideprotectedvirtualinherited |
For the wire to know if node belongs to this attachment.
| node | - node |
node is part of this attachment Definition at line 322 of file WireWinchController.h.
|
inlineprotectedvirtualinherited |
Post update call from the wire.
Definition at line 315 of file WireWinchController.h.
|
inlineprotectedvirtualinherited |
Pre-collide update call from the wire.
Definition at line 300 of file WireWinchController.h.
|
inlineprotectedvirtualinherited |
Pre update call from the wire.
Reimplemented in agxWire::Winch.
Definition at line 305 of file WireWinchController.h.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
inherited |
Remove a constraint from this assembly (does not recurse down in tree).
|
inherited |
Remove an interaction from this assembly.
|
inherited |
Remove an EventListener from the assembly.
|
inherited |
Remove a rigid body from this assembly (does not recurse down in tree).
| body | - The body to be removed |
| removeAssociatedGeometries | - If true, the geometries associated to this body will also be removed |
|
inherited |
Remove a geometry from this assembly (does not recurse down in tree).
|
inherited |
Remove a child assembly from a parent.
|
inherited |
Remove a contact material from this assembly.
|
inherited |
Remove an emitter from this assembly.
|
inherited |
Remove an ObserverFrame from this assembly.
|
protected |
|
protectedinherited |
|
inlinevirtualinherited |
Called when this assembly is removed from a simulation.
Reimplemented in agxModel::Tree, agxModel::TwoBodyTire, agxSDK::LinkedStructure, agxModel::Deformable1D, agxPowerLine::PowerLine, agxModel::ThreeBodyTire, and agxModel::OneBodyTire.
Definition at line 584 of file Assembly.h.
Referenced by agxPowerLine::PowerLine::addNotification().
Called when this assembly is removed from another assembly.
Reimplemented in agxPowerLine::PowerLine.
Definition at line 594 of file Assembly.h.
|
protectedinherited |
Remove a particle system from this assembly.
Resets the lump position to reference.
| angle | - the current angle of the constraint |
|
overridevirtual |
Reimplemented from agxSDK::Assembly.
|
protected |
|
protected |
Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly.
| velocity | - The angular velocity in world frame that will be set for all rigid bodies. |
|
inherited |
Set auto feed to this winch.
This mode can be used to facilitate routing. E.g., put all wire in this winch (start of route), set mode to auto feed, and route. The wire will automatically decrease in this winch to fulfill the rout without initial tension. Default: false
| autoFeed | - true for auto feed mode |
|
inherited |
Set the desired brake force range where range::lower is the force in which this winch brake can hold the wire from hauling out and ranger::upper the brake force hold the wire from hauling in.
It's important that the lower value is smaller than zero and the upper larger than zero. Default: (-0, 0)
| brakeForceRange | - brake force range |
Same as setBrakeForceRange( agx::RangeReal brakeForceRange ) but this method will set range as [-brakeForce, brakeForce].
| brakeForce | - brake force (Newton) to define the total brake force range |
|
inherited |
Sets the default compliance for the prismatic constraint.
| prismatic | - a prismatic constraint |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
inherited |
Set the desired winch force where range::lower is the force in which this winch may haul in wire, range::upper haul out.
It's important that the lower value is smaller than zero and the upper larger than zero. Default: (-Infinity, Infinity)
| forceRange | - force (Newton) range [haul_in, haul_out] where haul_in <= 0 and haul_out >= 0 |
Same as setForceRange( agx::RangeReal forceRange ) but this method will set range as [-force, force].
| force | - force (Newton) to define the total force range |
Set the position of the assembly relative to its frame's parent frame.
| p | - local translate of assembly as a 3D vector |
Set the position of the assembly relative to its frame's parent frame.
| x | - local x translate |
| y | - local y translate |
| z | - local z translate |
Set the rotation of the assembly relative to its frame's parent frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the assembly relative to its frame's parent frame.
| e | - rotation given as Euler angles |
|
inherited |
Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation.
| matrix | - transformation matrix relative to parent transform for the assembly's frame |
Set the name of this Assembly.
| name | - new name of this Assembly. |
|
inherited |
Associate a parameter controller to this winch.
|
inherited |
Set the parent frame of this assembly's frame.
This means that getLocalTranslate, getLocalRotate, getLocalTransform will be given in the parents coordinate frame. I.e., this frame's transformation will be concatenated with the parents.
| frame | - new parent frame, 0 to remove parent |
Set the position of the frame in world coordinates.
| p | - desired position in world coordinates. |
Set the position of the frame in world coordinates.
| x | - desired x-coordinate in world frame |
| y | - desired y-coordinate in world frame |
| z | - desired z-coordinate in world frame |
Set the pulled in length for this winch.
| pulledInLength | - pulled in length |
Set the rotation of the assembly relative to world frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the assembly relative to world frame.
| e | - rotation given as Euler angles |
|
inherited |
Set the rotation of the assembly relative to world frame.
| m | - rotation given as an orthogonal transformation matrix |
Set winch motor speed.
| speed | - speed of the winch motor (Default: 0) |
|
inherited |
Associate a stability controller to this winch.
This winch will use the stability controller to calculate and set masses to the neighboring lumped nodes when hauling in and out wire. It makes it also possible for this winch to merge two lumps if the haul in speed is large.
| stabilityController | - new stability controller |
|
inherited |
Set the transform of the assembly.
Its frame will move to the specified transform, which is given in world coordinates.
| matrix | - desired transform for the frame in world coordinates. |
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly.
| velocity | - The linear velocity in world frame that will be set for all rigid bodies. |
|
overridevirtual |
Reimplemented from agxSDK::Assembly.
|
virtualinherited |
Traverse the assembly tree recursively using a visitor.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
virtualinherited |
|
protectedvirtualinherited |
Forgets about all wire parameters and clears the constraint.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
overrideprotectedvirtual |
Called when it's time to update the constraint and reset the position of the lump.
Reimplemented from agxWire::WireWinchController.
|
protectedinherited |
Updates motor, lock and range parameters.
| prismatic | - the prismatic constraint |
| desiredSpeed | - desired speed of the prismatic motor |
| forceRange | - force range of the motor |
| brakeRange | - force range of the lock |
| rangeEnable | - if pulled in length < reference distance the range should be enabled |
| forcedBrake | - true for "emergency stop" of this winch, brake force will be infinite |
|
protected |
|
staticinherited |
|
protectedinherited |
Definition at line 373 of file WireWinchController.h.
|
protectedinherited |
Definition at line 376 of file WireWinchController.h.
|
protected |
Definition at line 585 of file WireWinchController.h.
|
protectedinherited |
Definition at line 381 of file WireWinchController.h.
|
protectedinherited |
Definition at line 379 of file WireWinchController.h.
|
protectedinherited |
Definition at line 375 of file WireWinchController.h.
|
protected |
Definition at line 582 of file WireWinchController.h.
|
protected |
Definition at line 584 of file WireWinchController.h.
|
protectedinherited |
Definition at line 384 of file WireWinchController.h.
|
protected |
Definition at line 581 of file WireWinchController.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protectedinherited |
Definition at line 383 of file WireWinchController.h.
|
protectedinherited |
Definition at line 389 of file WireWinchController.h.
|
protectedinherited |
To access and change rest/current length.
If this winch is located at begin this will be the lumped node after m_lumpedNode, if at end m_lumpedNode == m_parametersHoldingNode.
Definition at line 385 of file WireWinchController.h.
|
protectedinherited |
Definition at line 377 of file WireWinchController.h.
|
protected |
Definition at line 583 of file WireWinchController.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protectedinherited |
Definition at line 374 of file WireWinchController.h.
|
protectedinherited |
If by the initialization controller, this winch can merge segments and change mass of the lumps via this controller.
Definition at line 387 of file WireWinchController.h.
Referenced by agxWire::Wire::getStabilityController().
|
protectedinherited |
Definition at line 382 of file WireWinchController.h.
|
protectedinherited |
Definition at line 378 of file WireWinchController.h.