AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxWire::WireSimpleDrumController Class Reference

#include <WireWinchController.h>

+ Inheritance diagram for agxWire::WireSimpleDrumController:

Public Member Functions

 WireSimpleDrumController (agx::Real radius, agx::Real length, size_t maxNumActiveContactNodes=5, bool upsideDown=false)
 
 AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxWire::WireSimpleDrumController)
 
bool attach (agx::RigidBody *rb, agx::Frame *attachmentFrame)
 Attach this simple drum to a rigid body using an attachment frame.
 
const WireSimpleDrumControlPointList & getControlPoints () const
 
virtual agx::Real getCurrentBrakeForce () const override
 
virtual agx::Real getCurrentForce () const override
 
virtual agx::Real getCurrentSpeed () const override
 
agxCollide::Geometry * getGeometry () const
 
agx::Hinge * getHinge () const
 
agx::RigidBody * getRigidBody () const
 
- Public Member Functions inherited from agxWire::WireWinchController
 WireWinchController (agx::RigidBody *body, const agx::Vec3 &positionInBodyFrame, const agx::Vec3 &normalInBodyFrame, agx::Real pulledInLength=agx::Real(0))
 Construct this winch given position, normal and body this winch is attached to.
 
agx::Constraint1DOF * get1DOFConstraint ()
 Get pointer to Constraint1DOF.
 
const agx::Constraint1DOF * get1DOFConstraint () const
 
bool getAutoFeed () const
 
const agx::RangeReal & getBrakeForceRange () const
 
virtual agx::Real getCurrentBrakeForce () const
 
virtual agx::Real getCurrentForce () const
 
virtual agx::Real getCurrentSpeed () const
 
agxWire::BodyFixedNode * getFixedNode () const
 
const agx::RangeReal & getForceRange () const
 
agx::Vec3 getLumpNodeReferencePosition () const
 
const agx::Vec3 & getNormal () const
 
virtual agx::Real getPulledInWireLength () const
 
agx::RigidBody * getRigidBody () const
 
agx::Real getSpeed () const
 
agxWire::StopNode * getStopNode () const
 
bool getStopNodeInserted () const
 
agx::Real getStopNodeReferenceDistance () const
 
virtual bool getWithinEndRange () const
 
agx::Vec3 getWorldNormal () const
 
void setAutoFeed (bool autoFeed)
 Set auto feed to this winch.
 
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.
 
void setBrakeForceRange (agx::Real brakeForce)
 Same as setBrakeForceRange( agx::RangeReal brakeForceRange ) but this method will set range as [-brakeForce, brakeForce].
 
void setCompliance (agx::Prismatic *prismatic) const
 Sets the default compliance for the prismatic constraint.
 
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.
 
void setForceRange (agx::Real force)
 Same as setForceRange( agx::RangeReal forceRange ) but this method will set range as [-force, force].
 
void setParameterController (agxWire::WireParameterController *parameters)
 Associate a parameter controller to this winch.
 
void setPulledInWireLength (agx::Real pulledInLength)
 Set the pulled in length for this winch.
 
void setSpeed (agx::Real speed)
 Set winch motor speed.
 
void setStabilityController (agxWire::WireStabilityController *stabilityController)
 Associate a stability controller to this winch.
 
- 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.
 
- Public Member Functions inherited from agxSDK::Assembly
 Assembly ()
 Default constructor.
 
bool add (agx::Constraint *constraint)
 Add a constraint to the assembly.
 
bool add (agx::ContactMaterial *contactMaterial)
 Add a contact material to this assembly.
 
bool add (agx::Emitter *emitter)
 Add an emitter to this assembly.
 
bool add (agx::Interaction *interaction)
 Add an interaction to this assembly.
 
bool add (agx::MergedBody *mergedBody)
 Add a MergedBody to this assembly.
 
bool add (agx::ObserverFrame *observerFrame)
 Add an ObserverFrame to this assembly.
 
bool add (agx::RigidBody *body)
 Add a rigid body to the assembly.
 
bool add (agxCollide::Geometry *geometry)
 Add a geometry to the assembly.
 
bool add (agxSDK::EventListener *listener)
 Add a listener to the assembly.
 
bool add (agxSDK::TerrainInstance *terrainInstance)
 Add a TerrainInstance to this assembly.
 
bool add (agxSDK::TerrainToolInstance *toolInstance)
 Add a TerrainToolInstance to this assembly.
 
bool add (agxStream::Serializable *object)
 Add an object of type serialized.
 
bool add (Assembly *assembly)
 Add another assembly as child to this assembly.
 
virtual void addNotification (agxSDK::Simulation *)
 Called when this assembly is added to a simulation (given that it not already is in the simulation).
 
virtual void addNotification (Assembly *)
 Called when this assembly is added to another assembly.
 
 AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxSDK::Assembly)
 
size_t collect (agx::ConstraintRefVector &result, bool recursive=true)
 
size_t collect (agx::EmitterRefVector &result, bool recursive=true)
 
size_t collect (agx::InteractionRefVector &result, bool recursive=true)
 
size_t collect (agx::MergedBodyRefVector &result, bool recursive=true)
 
size_t collect (agx::ObserverFrameRefVector &result, bool recursive=true)
 
size_t collect (agx::ParticleSystemRefVector &result, bool recursive=true)
 
size_t collect (agx::RigidBodyRefVector &result, bool recursive=true)
 
size_t collect (agxCollide::GeometryRefVector &result, bool recursive=true)
 
size_t collect (agxSDK::AssemblyRefVector &result, bool recursive=true)
 
size_t collect (agxSDK::EventListenerRefVector &result, bool recursive=true)
 
size_t collect (agxSDK::TerrainInstanceRefVector &result, bool recursive=true)
 
size_t collect (agxSDK::TerrainToolInstanceRefVector &result, bool recursive=true)
 
bool empty () const
 
const AssemblyRefSetVector & getAssemblies () const
 
agxSDK::Assembly * getAssembly (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named Assembly.
 
const agxSDK::Assembly * getAssembly (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named Assembly.
 
agxSDK::Assembly * getAssembly (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an Assembly matching the given uuid.
 
const agxSDK::Assembly * getAssembly (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an Assembly matching the given uuid.
 
agx::Constraint * getConstraint (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named Constraint.
 
template<typename T >
T * getConstraint (const agx::Name &name, bool recursive=true)
 Find and return named Constraint of a template type, for example Hinge:
 
const agx::Constraint * getConstraint (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named Constraint.
 
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:
 
agx::Constraint * getConstraint (const agx::Uuid &uuid, bool recursive=true)
 Find and return a pointer to a Constraint with the given uuid.
 
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.
 
agx::Constraint1DOF * getConstraint1DOF (const agx::Name &name, bool recursive=true)
 
agx::Constraint2DOF * getConstraint2DOF (const agx::Name &name, bool recursive=true)
 
const agx::ConstraintRefSetVector & getConstraints () const
 
const agx::EmitterRefSetVector & getEmitters () const
 
const EventListenerRefSetVector & getEventListeners () const
 
virtual agx::Frame * getFrame ()
 Return a reference to the frame containing transformation and velocity information for this assembly.
 
virtual const agx::Frame * getFrame () const
 
const agxCollide::GeometryRefSetVector & getGeometries () const
 
agxCollide::Geometry * getGeometry (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named collision Geometry.
 
const agxCollide::Geometry * getGeometry (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named collision Geometry.
 
agxCollide::Geometry * getGeometry (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return a Geometry matching the given uuid.
 
const agxCollide::Geometry * getGeometry (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return a Geometry matching the given uuid.
 
const agx::InteractionRefSetVector & getInteractions () const
 
agx::Vec3 getLocalPosition () const
 
agx::Quat getLocalRotation () const
 
const agx::AffineMatrix4x4 & getLocalTransform () const
 
const agx::MergedBodyRefSetVector & getMergedBodies () const
 
agx::MergedBody * getMergedBody (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an MergedBody matching the given uuid.
 
const agx::MergedBody * getMergedBody (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an MergedBody matching the given uuid.
 
agx::Name getName () const
 
agx::ObserverFrame * getObserverFrame (const agx::Name &name, bool recursive=true)
 Find (linear search) and return an ObserverFrame matching the given uuid.
 
const agx::ObserverFrame * getObserverFrame (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return an ObserverFrame matching the given uuid.
 
agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an ObserverFrame matching the given uuid.
 
const agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an ObserverFrame matching the given uuid.
 
const agx::ObserverFrameRefSetVector & getObserverFrames () const
 
Assembly * getParent ()
 
const Assembly * getParent () const
 
agx::Frame * getParentFrame ()
 
const agx::Frame * getParentFrame () const
 
const agx::ParticleSystemRefSetVector & getParticleSystems () const
 
const agx::RigidBodyRefSetVector & getRigidBodies () const
 
agx::RigidBody * getRigidBody (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named RigidBody.
 
const agx::RigidBody * getRigidBody (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named RigidBody.
 
agx::RigidBody * getRigidBody (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return a pointer to a RigidBody with the given uuid.
 
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.
 
agxSDK::Simulation * getSimulation ()
 
const agxSDK::Simulation * getSimulation () const
 
agxSDK::TerrainInstance * getTerrainInstance (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an TerrainInstance matching the given uuid.
 
const agxSDK::TerrainInstance * getTerrainInstance (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an TerrainInstance matching the given uuid.
 
const agxSDK::TerrainInstanceRefSetVector & getTerrainInstances () const
 
agxSDK::TerrainToolInstance * getTerrainToolInstance (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an TerrainToolInstance matching the given uuid.
 
const agxSDK::TerrainToolInstance * getTerrainToolInstance (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an TerrainToolInstance matching the given uuid.
 
const agxSDK::TerrainToolInstanceRefSetVector & getTerrainToolInstances () const
 
Type getType () const
 
bool remove (agx::Constraint *constraint)
 Remove a constraint from this assembly (does not recurse down in tree).
 
bool remove (agx::ContactMaterial *contactMaterial)
 Remove a contact material from this assembly.
 
bool remove (agx::Emitter *emitter)
 Remove an emitter from this assembly.
 
bool remove (agx::Interaction *interaction)
 Remove an interaction from this assembly.
 
bool remove (agx::MergedBody *mergedBody)
 Remove a MergedBody from this assembly.
 
bool remove (agx::ObserverFrame *observerFrame, bool resetParentFrame=true)
 Remove an ObserverFrame from this assembly.
 
bool remove (agx::RigidBody *body, bool removeAssociatedGeometries=false, bool resetParentFrame=true)
 Remove a rigid body from this assembly (does not recurse down in tree).
 
bool remove (agxCollide::Geometry *geometry, bool resetParentFrame=true)
 Remove a geometry from this assembly (does not recurse down in tree).
 
bool remove (agxSDK::TerrainInstance *terrainInstance)
 Remove a TerrainInstance from this assembly.
 
bool remove (agxSDK::TerrainToolInstance *toolInstance)
 Remove a TerrainToolInstance from this assembly.
 
bool remove (Assembly *assembly, bool resetParentFrame=true)
 Remove a child assembly from a parent.
 
bool remove (EventListener *listener)
 Remove an EventListener from the assembly.
 
virtual void removeNotification (agxSDK::Simulation *)
 Called when this assembly is removed from a simulation.
 
virtual void removeNotification (Assembly *)
 Called when this assembly is removed from another assembly.
 
bool reset (bool resetParentFrame=true)
 If this assembly is not added to a simulation it will clear all added bodies etc.
 
virtual void setAngularVelocity (const agx::Vec3 &velocity)
 Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly.
 
void setLocalPosition (agx::Real x, agx::Real y, agx::Real z)
 Set the position of the assembly relative to its frame's parent frame.
 
void setLocalPosition (const agx::Vec3 &p)
 Set the position of the assembly relative to its frame's parent frame.
 
void setLocalRotation (const agx::EulerAngles &e)
 Set the rotation of the assembly relative to its frame's parent frame.
 
void setLocalRotation (const agx::Quat &q)
 Set the rotation of the assembly relative to its frame's parent frame.
 
void setLocalTransform (const agx::AffineMatrix4x4 &matrix)
 Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation.
 
void setName (const agx::Name &name)
 Set the name of this Assembly.
 
bool setParentFrame (agx::Frame *frame)
 Set the parent frame of this assembly's frame.
 
void setPosition (agx::Real x, agx::Real y, agx::Real z)
 Set the position of the frame in world coordinates.
 
void setPosition (const agx::Vec3 &p)
 Set the position of the frame in world coordinates.
 
void setRotation (const agx::EulerAngles &e)
 Set the rotation of the assembly relative to world frame.
 
void setRotation (const agx::OrthoMatrix3x3 &m)
 Set the rotation of the assembly relative to world frame.
 
void setRotation (const agx::Quat &q)
 Set the rotation of the assembly relative to world frame.
 
void setTransform (const agx::AffineMatrix4x4 &matrix)
 Set the transform of the assembly.
 
virtual void setVelocity (const agx::Vec3 &velocity)
 Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly.
 
bool transfer (agxSDK::Assembly *target)
 Transfer all the content from this assembly to the target, including name and transformation.
 
virtual void traverse (AssemblyVisitor *visitor)
 Traverse the assembly tree recursively using a visitor.
 
virtual void traverse (const AssemblyVisitor *visitor) const
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Static Public Member Functions

static agxStream::Serializable * create (agxStream::InputArchive &)
 
- 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.
 
- Static Public Member Functions inherited from agxSDK::Assembly
static Assembly * asAssembly (agxStream::Serializable *obj)
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Protected Member Functions

 WireSimpleDrumController ()
 
virtual ~WireSimpleDrumController ()
 
bool changeBodyFixedToContactNode (BodyFixedNode *bfn)
 
void createControlPoints (NodeConstIterator from, NodeConstIterator to, size_t numNodes, agx::Real &restLength, agx::Real &currentLength)
 
agx::Real getControlPointRadius () const
 
size_t getNumContacts (bool begin, WireDistanceCompositeConstraint *wire, NodeIterator &lastContact, NodeIterator &firstLumpIter) const
 
virtual void initialize (bool begin, WireParameterController *parameters) override
 Initializes this winch (inserts the stop node and move the lump for example).
 
void initializeControlPoints (WireSimpleDrumControlPointList &controlPoints) const
 
void rebind (const Node *to)
 
bool removeContactNodes (NodeIterator from, NodeIterator to)
 
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 update (Node *controlledNode, Node *lumpedNode, bool begin) override
 Called when it's time to update the constraint and reset the position of the lump.
 
void updateHinge (agx::Hinge *h) const
 
- Protected Member Functions inherited from agxWire::WireWinchController
 WireWinchController ()
 Default constructor for serialization.
 
virtual ~WireWinchController ()
 
virtual void addNotification (agxSDK::SimulationProxy *)
 Called from Wire::addNotification.
 
virtual bool attach (WireDistanceCompositeConstraint *constraint, WireParameterController *parameters, bool begin)
 Create new nodes for new wire.
 
agx::Real configureInitialState ()
 This method will set the position of the lumped node given the stop node and pulled in length.
 
agx::Prismatic * createPrismatic (Node *fixedNode, Node *lumpedNode, const agx::Vec3 &worldNormal) const
 Creates a prismatic constraint given the fixed-, lumped node and a normal.
 
BodyFixedNode * findParametersHoldingNode (bool begin)
 Search the wire, given begin true of false, for the parameters holding node.
 
virtual void forcePulledInLength (agx::Real newLength)
 
BodyFixedNode * getNextLumpedNode (BodyFixedNode *from, bool begin)
 Finds the next (or previous) lumped node given a lumped node and the direction of the search.
 
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).
 
bool insertStopNode (bool begin)
 Inserts the stop wire node in the wire.
 
void massUpdate (agx::Real restLengthChange, bool begin)
 Updates mass for lumped nodes where the rest length is changed by restLengthChange.
 
virtual bool owns (const Node *node) const override
 For the wire to know if node belongs to this attachment.
 
virtual void postUpdate (agx::Bool, agxSDK::SimulationProxy *)
 Post update call from the wire.
 
virtual void preCollideUpdate (agx::Bool, agxSDK::SimulationProxy *)
 Pre-collide update call from the wire.
 
virtual void preUpdate (agx::Bool, agxSDK::SimulationProxy *)
 Pre update call from the wire.
 
agx::Real resetLumpPosition (agx::Real angle)
 Resets the lump position to reference.
 
virtual void unitialize ()
 Forgets about all wire parameters and clears the constraint.
 
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.
 
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.
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor.
 
 Serializable (const Serializable &other)
 Copy constructor.
 
void generateUuid ()
 
- Protected Member Functions inherited from agxSDK::Assembly
 Assembly (Type type)
 
virtual ~Assembly ()
 Destructor.
 
bool addParticleSystem (agx::ParticleSystem *particleSystem)
 Add a particle system to this assembly.
 
void addToSimulation (Simulation *simulation)
 
void removeFromSimulation (Simulation *simulation)
 
bool removeParticleSystem (agx::ParticleSystem *particleSystem)
 Remove a particle system from this assembly.
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

WireSimpleDrumControlPointList m_controlPoints
 
agxCollide::GeometryRef m_geometry
 
agx::HingeRef m_hinge
 
size_t m_maxNumActiveContactNodes
 
agx::RigidBodyRef m_rb
 
- Protected Attributes inherited from agxWire::WireWinchController
bool m_autoFeed
 
agx::RangeReal m_brakeRange
 
BodyFixedNodeRef m_fixedNode
 
bool m_forcedBrake
 
agx::RangeReal m_forceRange
 
agx::observer_ptr< BodyFixedNode > m_lumpedNode
 
agx::Vec3 m_normal
 
WireParameterController * m_parameters
 
agx::observer_ptr< BodyFixedNode > m_parametersHoldingNode
 To access and change rest/current length.
 
agx::Real m_pulledInLength
 
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.
 
StopNodeRef m_stopNode
 
bool m_withinEndRange
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Public Types inherited from agxSDK::Assembly
enum  Type { ASSEMBLY , COLLECTION }
 Specifies the type an assembly is. More...
 
- 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.
 

Detailed Description

Definition at line 530 of file WireWinchController.h.

Constructor & Destructor Documentation

◆ WireSimpleDrumController() [1/2]

agxWire::WireSimpleDrumController::WireSimpleDrumController ( agx::Real  radius,
agx::Real  length,
size_t  maxNumActiveContactNodes = 5,
bool  upsideDown = false 
)

◆ WireSimpleDrumController() [2/2]

agxWire::WireSimpleDrumController::WireSimpleDrumController ( )
protected

◆ ~WireSimpleDrumController()

virtual agxWire::WireSimpleDrumController::~WireSimpleDrumController ( )
inlineprotectedvirtual

Definition at line 557 of file WireWinchController.h.

Member Function Documentation

◆ AGXSTREAM_DECLARE_SERIALIZABLE_BASE()

agxWire::WireSimpleDrumController::AGXSTREAM_DECLARE_SERIALIZABLE_BASE ( agxWire::WireSimpleDrumController  )

◆ attach()

bool agxWire::WireSimpleDrumController::attach ( agx::RigidBody *  rb,
agx::Frame *  attachmentFrame 
)

Attach this simple drum to a rigid body using an attachment frame.

Parameters
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
Returns
true if the attach was successful

◆ changeBodyFixedToContactNode()

bool agxWire::WireSimpleDrumController::changeBodyFixedToContactNode ( BodyFixedNode *  bfn)
protected

◆ create()

static agxStream::Serializable * agxWire::WireSimpleDrumController::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 553 of file WireWinchController.h.

◆ createControlPoints()

void agxWire::WireSimpleDrumController::createControlPoints ( NodeConstIterator  from,
NodeConstIterator  to,
size_t  numNodes,
agx::Real &  restLength,
agx::Real &  currentLength 
)
protected

◆ getControlPointRadius()

agx::Real agxWire::WireSimpleDrumController::getControlPointRadius ( ) const
protected

◆ getControlPoints()

const WireSimpleDrumControlPointList & agxWire::WireSimpleDrumController::getControlPoints ( ) const
inline

Definition at line 546 of file WireWinchController.h.

◆ getCurrentBrakeForce()

virtual agx::Real agxWire::WireSimpleDrumController::getCurrentBrakeForce ( ) const
overridevirtual
Note
that if all the wire is spooled out, the force reported will not be correct. Avoid this situation.
Returns
the current brake force the winch brake is applying

Reimplemented from agxWire::WireWinchController.

◆ getCurrentForce()

virtual agx::Real agxWire::WireSimpleDrumController::getCurrentForce ( ) const
overridevirtual
Returns
the current force the winch motor is applying

Reimplemented from agxWire::WireWinchController.

◆ getCurrentSpeed()

virtual agx::Real agxWire::WireSimpleDrumController::getCurrentSpeed ( ) const
overridevirtual
Returns
the current speed of the winch motor

Reimplemented from agxWire::WireWinchController.

◆ getGeometry()

agxCollide::Geometry * agxWire::WireSimpleDrumController::getGeometry ( ) const
inline

Definition at line 548 of file WireWinchController.h.

◆ getHinge()

agx::Hinge * agxWire::WireSimpleDrumController::getHinge ( ) const
inline

Definition at line 549 of file WireWinchController.h.

◆ getNumContacts()

size_t agxWire::WireSimpleDrumController::getNumContacts ( bool  begin,
WireDistanceCompositeConstraint *  wire,
NodeIterator &  lastContact,
NodeIterator &  firstLumpIter 
) const
protected

◆ getRigidBody()

agx::RigidBody * agxWire::WireSimpleDrumController::getRigidBody ( ) const
inline

Definition at line 547 of file WireWinchController.h.

◆ initialize()

virtual void agxWire::WireSimpleDrumController::initialize ( bool  begin,
WireParameterController *  parameters 
)
overrideprotectedvirtual

Initializes this winch (inserts the stop node and move the lump for example).

Parameters
begin- true if this attachment is at the beginning of the wire
parameters- pointer to the parameter object

Reimplemented from agxWire::WireWinchController.

◆ initializeControlPoints()

void agxWire::WireSimpleDrumController::initializeControlPoints ( WireSimpleDrumControlPointList &  controlPoints) const
protected

◆ rebind()

void agxWire::WireSimpleDrumController::rebind ( const Node *  to)
protected

◆ removeContactNodes()

bool agxWire::WireSimpleDrumController::removeContactNodes ( NodeIterator  from,
NodeIterator  to 
)
protected

◆ rollIn()

void agxWire::WireSimpleDrumController::rollIn ( bool  begin,
NodeIterator  from,
size_t  numContacts,
agx::Real &  dRestLength,
agx::Real &  dCurrentLength 
)
protected

◆ rollOut()

ContactNode * agxWire::WireSimpleDrumController::rollOut ( agx::Real &  dRestLength,
agx::Real &  dCurrentLength 
)
protected

◆ update()

virtual void agxWire::WireSimpleDrumController::update ( Node *  controlledNode,
Node *  lumpedNode,
bool  begin 
)
overrideprotectedvirtual

Called when it's time to update the constraint and reset the position of the lump.

Reimplemented from agxWire::WireWinchController.

◆ updateHinge()

void agxWire::WireSimpleDrumController::updateHinge ( agx::Hinge *  h) const
protected

Member Data Documentation

◆ m_controlPoints

WireSimpleDrumControlPointList agxWire::WireSimpleDrumController::m_controlPoints
protected

Definition at line 585 of file WireWinchController.h.

◆ m_geometry

agxCollide::GeometryRef agxWire::WireSimpleDrumController::m_geometry
protected

Definition at line 582 of file WireWinchController.h.

◆ m_hinge

agx::HingeRef agxWire::WireSimpleDrumController::m_hinge
protected

Definition at line 584 of file WireWinchController.h.

◆ m_maxNumActiveContactNodes

size_t agxWire::WireSimpleDrumController::m_maxNumActiveContactNodes
protected

Definition at line 581 of file WireWinchController.h.

◆ m_rb

agx::RigidBodyRef agxWire::WireSimpleDrumController::m_rb
protected

Definition at line 583 of file WireWinchController.h.


The documentation for this class was generated from the following file: