AGXDynamics  2.31.1.0
agxWire::Winch Class Referenceabstract

Winch object which works like agxWire::WireWinchController but enables the features of having stored, inactive, wire segments inside of the winch which can be pulled out given a link. More...

#include <Winch.h>

+ Inheritance diagram for agxWire::Winch:

Classes

struct  WireLength
 Internal data to store the inactive wire and the length of that wire. More...
 

Public Member Functions

 Winch (agx::RigidBody *rb, const agx::Vec3 &relativeTranslate, const agx::Vec3 &relativeNormal, agx::Real pulledInLength=agx::Real(0))
 Construct given rigid body, relative translate (rigid body frame), relative normal (rigid body frame) and initial pulled in length. More...
 
agx::Bool add (agxWire::Wire *wire, agx::Real length)
 Add inactive wire segment with a given length. More...
 
agx::Real findRestLength (const agxWire::Wire *wire) const
 Finds rest length of wire if this winch is either attached to wire or when wire is completely pulled in to this winch. More...
 
agx::Constraint1DOF * get1DOFConstraint ()
 Get pointer to Constraint1DOF. More...
 
const agx::Constraint1DOF * get1DOFConstraint () const
 
bool getAutoFeed () const
 
const agx::RangeReal & getBrakeForceRange () const
 
virtual const char * getClassName () const
 
virtual agx::Real getCurrentBrakeForce () const
 
virtual agx::Real getCurrentForce () const
 
virtual agx::Real getCurrentSpeed () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agxWire::BodyFixedNode * getFixedNode () const
 
const agx::RangeReal & getForceRange () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Vec3 getLumpNodeReferencePosition () const
 
const agx::Vec3 & getNormal () const
 
agx::UInt getNumPulledInWires () 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 StorageAgent * getStorageAgent () const =0
 
agx::Real getTotalPulledInLength () const
 Calculates the total pulled in length, including the pulled in length of the currently active wire (i.e., getPulledInlength()). More...
 
agx::Uuid getUuid () const
 
virtual bool getWithinEndRange () const
 
agx::Vec3 getWorldNormal () const
 
bool isFinished () const
 
agx::Bool remove (const agxWire::Wire *wire)
 Remove an inactive wire segment. 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 setParameterController (agxWire::WireParameterController *parameters)
 Associate a parameter controller to this winch. More...
 
void setPulledInWireLength (agx::Real pulledInLength)
 Set the pulled in length for this winch. 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 setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Static Public Member Functions

static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 

Protected Types

typedef agx::Vector< WireLength > PulledInWiresContainer
 

Protected Member Functions

 Winch ()
 Protected default constructor, used during restore. More...
 
virtual ~Winch ()
 Reference counted object, protected destructor. More...
 
virtual void addNotification (agxSDK::SimulationProxy *simulationProxy) override
 Initializes the inactive links. More...
 
virtual bool attach (WireDistanceCompositeConstraint *constraint, WireParameterController *parameters, bool begin)
 Create new nodes for new wire. More...
 
agx::Real configureInitialState ()
 This method will set the position of the lumped node given the stop node and pulled in length. More...
 
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...
 
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 ()
 
agxWire::Winch::WireLength getAndEraseFromPulledInWires (const agxWire::ConnectingNode *connectingNode)
 Finds the wire the connection node matches and returns that wire including its length. More...
 
agxWire::Winch::WireLength getAndEraseFromPulledInWires (const agxWire::Wire *wire)
 Returns that wire including its length. More...
 
virtual bool getForceGeometryListEmpty (bool begin) const override
 
BodyFixedNode * getNextLumpedNode (BodyFixedNode *from, bool begin)
 Finds the next (or previous) lumped node given a lumped node and the direction of the search. More...
 
virtual agx::Real getReferenceCurrentLength (bool begin) const override
 
virtual Node * getReferenceNode () override
 
void handleApproachingNodes (agx::Bool begin, agx::Real dt)
 Handles the approaching nodes during preUpdate. More...
 
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 initializePulledInLinks (agxSDK::SimulationProxy *simulationProxy)
 Initializes the inactive links when this winch is added to the simulation. More...
 
bool insertStopNode (bool begin)
 Inserts the stop wire node in the wire. More...
 
virtual void manipulatePulledInLength (agx::Real newPulledInLength)
 Other friend objects have the possibility to manipulate the pulled in length of the current segment. 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 begin, agxSDK::SimulationProxy *simulationProxy) override
 Checks for 'forced brake condition' where the winch is automatically stopped due to an unsupported approaching node. More...
 
virtual agx::Bool pullInWire (agxWire::Winch::WireLength nearWireAndLength, agxWire::LinkRef link, agxWire::WireRef farWire, agxSDK::SimulationProxy *simulationProxy)
 Pull in the near wire completely. More...
 
virtual agxWire::Winch::WireLength pullOutWire (agxWire::LinkRef link, agxWire::WireRef farWire, agxSDK::SimulationProxy *simulationProxy)
 Pulls out a new wire segment, if any inactive wire is connected to the link. More...
 
agx::Bool replaceLink (agxWire::Wire *farWire, agxWire::Link *link)
 Pulling in a wire, replaces link's far node with this winch. More...
 
agx::Real resetLumpPosition (agx::Real angle)
 Resets the lump position to reference. More...
 
virtual void transfer (agxWire::ILinkNode *linkNode, agxWire::WireDistanceCompositeConstraint *wireConstraint, agxWire::WireParameterController *parameters, agxWire::WireStabilityController *stabilityController, agx::Bool begin)
 Transfers this winch from far wire to a newly created near wire. More...
 
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...
 

Protected Attributes

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. More...
 
agx::Real m_pulledInLength
 
PulledInWiresContainer m_pulledInWires
 
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
 

Detailed Description

Winch object which works like agxWire::WireWinchController but enables the features of having stored, inactive, wire segments inside of the winch which can be pulled out given a link.

It also features the possibility of completely pulling in a wire segment with a link connection.

Definition at line 30 of file Winch.h.

Member Typedef Documentation

◆ PulledInWiresContainer

Definition at line 111 of file Winch.h.

Constructor & Destructor Documentation

◆ Winch() [1/2]

agxWire::Winch::Winch ( agx::RigidBody *  rb,
const agx::Vec3 &  relativeTranslate,
const agx::Vec3 &  relativeNormal,
agx::Real  pulledInLength = agx::Real(0) 
)

Construct given rigid body, relative translate (rigid body frame), relative normal (rigid body frame) and initial pulled in length.

If the rigid body is null the winch will be attached in world and hence the relative translate and normal is given in world coordinates.

◆ Winch() [2/2]

agxWire::Winch::Winch ( )
protected

Protected default constructor, used during restore.

◆ ~Winch()

virtual agxWire::Winch::~Winch ( )
protectedvirtual

Reference counted object, protected destructor.

Member Function Documentation

◆ add()

agx::Bool agxWire::Winch::add ( agxWire::Wire *  wire,
agx::Real  length 
)

Add inactive wire segment with a given length.

Note
Remember to connect this wire to a link!
Parameters
wire- inactive wire that is fully pulled in to this winch
length- length of the wire
Returns
true if added, false if already added, null or length less than or equal to zero.

◆ addNotification()

virtual void agxWire::Winch::addNotification ( agxSDK::SimulationProxy *  simulationProxy)
overrideprotectedvirtual

Initializes the inactive links.

Reimplemented from agxWire::WireWinchController.

◆ attach()

virtual bool agxWire::WireWinchController::attach ( WireDistanceCompositeConstraint *  constraint,
WireParameterController *  parameters,
bool  begin 
)
protectedvirtualinherited

Create new nodes for new wire.

◆ configureInitialState()

agx::Real agxWire::WireWinchController::configureInitialState ( )
protectedinherited

This method will set the position of the lumped node given the stop node and pulled in length.

Returns
the distance the lumped node moved during this initialization (distance < reference distance means that the range should be enabled)

◆ createPrismatic()

agx::Prismatic* agxWire::WireWinchController::createPrismatic ( Node *  fixedNode,
Node *  lumpedNode,
const agx::Vec3 &  worldNormal 
) const
protectedinherited

Creates a prismatic constraint given the fixed-, lumped node and a normal.

◆ findParametersHoldingNode()

BodyFixedNode* agxWire::WireWinchController::findParametersHoldingNode ( bool  begin)
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.

Parameters
begin- if this winch is located at the beginning or at the end of the wire
Returns
the node which holds the rest/current length of its segment

◆ findRestLength()

agx::Real agxWire::Winch::findRestLength ( const agxWire::Wire *  wire) const

Finds rest length of wire if this winch is either attached to wire or when wire is completely pulled in to this winch.

If the wire isn't associated to this winch in any way this method returns -1.

Parameters
wire- wire associated to this winch
Returns
rest length of the wire or -1 if the wire isn't associated to this winch.

◆ forcePulledInLength()

virtual void agxWire::WireWinchController::forcePulledInLength ( agx::Real  newLength)
protectedvirtualinherited

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ get1DOFConstraint() [1/2]

agx::Constraint1DOF* agxWire::WireWinchController::get1DOFConstraint ( )
inherited

Get pointer to Constraint1DOF.

◆ get1DOFConstraint() [2/2]

const agx::Constraint1DOF* agxWire::WireWinchController::get1DOFConstraint ( ) const
inherited

◆ getAndEraseFromPulledInWires() [1/2]

agxWire::Winch::WireLength agxWire::Winch::getAndEraseFromPulledInWires ( const agxWire::ConnectingNode *  connectingNode)
protected

Finds the wire the connection node matches and returns that wire including its length.

It also erases the completely pulled in wire from the list of inactive wires.

◆ getAndEraseFromPulledInWires() [2/2]

agxWire::Winch::WireLength agxWire::Winch::getAndEraseFromPulledInWires ( const agxWire::Wire *  wire)
protected

Returns that wire including its length.

It also erases the completely pulled in wire from the list of inactive wires.

◆ getAutoFeed()

bool agxWire::WireWinchController::getAutoFeed ( ) const
inlineinherited
Returns
true if auto feed mode - otherwise false
See also
setAutoFeed

Definition at line 403 of file WireWinchController.h.

◆ getBrakeForceRange()

const agx::RangeReal & agxWire::WireWinchController::getBrakeForceRange ( ) const
inlineinherited
Returns
the brake force range

Definition at line 418 of file WireWinchController.h.

◆ getClassName()

virtual const char* agxStream::Serializable::getClassName ( ) const
virtualinherited
Returns
the class name of this class.

Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

Referenced by agxStream::InputArchive::readRef().

◆ getCurrentBrakeForce()

virtual agx::Real agxWire::WireWinchController::getCurrentBrakeForce ( ) const
virtualinherited
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 in agxWire::WireSimpleDrumController.

◆ getCurrentForce()

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

Reimplemented in agxWire::WireSimpleDrumController.

◆ getCurrentSpeed()

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

Reimplemented in agxWire::WireSimpleDrumController.

◆ getEnableSerialization()

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

◆ getEnableUuidGeneration()

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object

◆ getFixedNode()

agxWire::BodyFixedNode* agxWire::WireWinchController::getFixedNode ( ) const
inherited
Returns
the fixed node (i.e., first or last node depending on which side this winch is on)

◆ getForceGeometryListEmpty()

virtual bool agxWire::Winch::getForceGeometryListEmpty ( bool  begin) const
overrideprotectedvirtual
Returns
true if the near-wire shouldn't have any geometries active

◆ getForceRange()

const agx::RangeReal & agxWire::WireWinchController::getForceRange ( ) const
inlineinherited
Returns
the winch force range

Definition at line 413 of file WireWinchController.h.

◆ getIndex()

agx::UInt32 agxStream::Serializable::getIndex ( ) const
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.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

◆ getLumpNodeReferencePosition()

agx::Vec3 agxWire::WireWinchController::getLumpNodeReferencePosition ( ) const
inherited
Returns
the reference position of the lump node given normal and fixed node

◆ getNextLumpedNode()

BodyFixedNode* agxWire::WireWinchController::getNextLumpedNode ( BodyFixedNode *  from,
bool  begin 
)
protectedinherited

Finds the next (or previous) lumped node given a lumped node and the direction of the search.

Parameters
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)
Returns
the next lumped node - zero of no lump was found

◆ getNormal()

const agx::Vec3 & agxWire::WireWinchController::getNormal ( ) const
inlineinherited
Returns
the normal in rigid body frame

Definition at line 398 of file WireWinchController.h.

◆ getNumPulledInWires()

agx::UInt agxWire::Winch::getNumPulledInWires ( ) const
Returns
the number of pulled in wires

◆ getPulledInWireLength()

virtual agx::Real agxWire::WireWinchController::getPulledInWireLength ( ) const
virtualinherited
Returns
the pulled in length of the wire attached to the winch controller.

◆ getReferenceCurrentLength()

virtual agx::Real agxWire::WireWinchController::getReferenceCurrentLength ( bool  begin) const
overrideprotectedvirtualinherited
Returns
current length between lumped node and stop node

◆ getReferenceNode()

virtual Node* agxWire::WireWinchController::getReferenceNode ( )
inlineoverrideprotectedvirtualinherited
Returns
true if our stop node is on the wire

Definition at line 330 of file WireWinchController.h.

◆ getRigidBody()

agx::RigidBody* agxWire::WireWinchController::getRigidBody ( ) const
inherited
Returns
the rigid body

◆ getSpeed()

agx::Real agxWire::WireWinchController::getSpeed ( ) const
inlineinherited
Returns
the desired speed of the winch motor

Definition at line 408 of file WireWinchController.h.

◆ getStopNode()

agxWire::StopNode* agxWire::WireWinchController::getStopNode ( ) const
inherited
Returns
the stop node

◆ getStopNodeInserted()

bool agxWire::WireWinchController::getStopNodeInserted ( ) const
inherited
Returns
true if the stop node has been inserted into the wire - otherwise false

◆ getStopNodeReferenceDistance()

agx::Real agxWire::WireWinchController::getStopNodeReferenceDistance ( ) const
inherited
Returns
distance between lump reposition position and the stop node.

◆ getStorageAgent()

virtual StorageAgent* agxStream::Serializable::getStorageAgent ( ) const
pure virtualinherited
Returns
the storage agent

Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

◆ getTotalPulledInLength()

agx::Real agxWire::Winch::getTotalPulledInLength ( ) const

Calculates the total pulled in length, including the pulled in length of the currently active wire (i.e., getPulledInlength()).

Note
getPulledInLength will only return the pulled in length of the currently active wire, handled by the agxWire::WireWinchController.
Returns
the total pulled in length including all inactive wires and the current amount pulled in of the active wire (i.e., getPulledInLength()).

◆ getUuid()

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

Referenced by agxSDK::UuidHashCollisionFilter::match().

◆ getWithinEndRange()

virtual bool agxWire::WireWinchController::getWithinEndRange ( ) const
virtualinherited

◆ getWorldNormal()

agx::Vec3 agxWire::WireWinchController::getWorldNormal ( ) const
inherited
Returns
the normal in world frame

◆ handleApproachingNodes()

void agxWire::Winch::handleApproachingNodes ( agx::Bool  begin,
agx::Real  dt 
)
protected

Handles the approaching nodes during preUpdate.

◆ incrementPulledInLength()

virtual void agxWire::WireWinchController::incrementPulledInLength ( agx::Real  dl)
protectedvirtualinherited

◆ initialize()

virtual void agxWire::WireWinchController::initialize ( bool  begin,
WireParameterController *  parameters 
)
overrideprotectedvirtualinherited

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 in agxWire::WireSimpleDrumController.

◆ initializePulledInLinks()

void agxWire::Winch::initializePulledInLinks ( agxSDK::SimulationProxy *  simulationProxy)
protected

Initializes the inactive links when this winch is added to the simulation.

◆ insertStopNode()

bool agxWire::WireWinchController::insertStopNode ( bool  begin)
protectedinherited

Inserts the stop wire node in the wire.

Returns
true if the operation was successful (or if the node is already inserted) - otherwise false

◆ isFinished()

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

References AGX_FORCE_INLINE.

◆ manipulatePulledInLength()

virtual void agxWire::Winch::manipulatePulledInLength ( agx::Real  newPulledInLength)
protectedvirtual

Other friend objects have the possibility to manipulate the pulled in length of the current segment.

Use with caution.

◆ massUpdate()

void agxWire::WireWinchController::massUpdate ( agx::Real  restLengthChange,
bool  begin 
)
protectedinherited

Updates mass for lumped nodes where the rest length is changed by restLengthChange.

◆ owns()

virtual bool agxWire::WireWinchController::owns ( const Node *  node) const
inlineoverrideprotectedvirtualinherited

For the wire to know if node belongs to this attachment.

Parameters
node- node
Returns
true if node is part of this attachment

Definition at line 322 of file WireWinchController.h.

◆ postUpdate()

virtual void agxWire::WireWinchController::postUpdate ( agx::Bool  ,
agxSDK::SimulationProxy *   
)
inlineprotectedvirtualinherited

Post update call from the wire.

Definition at line 315 of file WireWinchController.h.

◆ preCollideUpdate()

virtual void agxWire::WireWinchController::preCollideUpdate ( agx::Bool  ,
agxSDK::SimulationProxy *   
)
inlineprotectedvirtualinherited

Pre-collide update call from the wire.

Definition at line 300 of file WireWinchController.h.

◆ preUpdate()

virtual void agxWire::Winch::preUpdate ( agx::Bool  begin,
agxSDK::SimulationProxy *  simulationProxy 
)
overrideprotectedvirtual

Checks for 'forced brake condition' where the winch is automatically stopped due to an unsupported approaching node.

E.g., not a link.

Reimplemented from agxWire::WireWinchController.

◆ pullInWire()

virtual agx::Bool agxWire::Winch::pullInWire ( agxWire::Winch::WireLength  nearWireAndLength,
agxWire::LinkRef  link,
agxWire::WireRef  farWire,
agxSDK::SimulationProxy *  simulationProxy 
)
protectedvirtual

Pull in the near wire completely.

Moves this winch to the far wire, disables the link and stores the near wire and the given length it has.

◆ pullOutWire()

virtual agxWire::Winch::WireLength agxWire::Winch::pullOutWire ( agxWire::LinkRef  link,
agxWire::WireRef  farWire,
agxSDK::SimulationProxy *  simulationProxy 
)
protectedvirtual

Pulls out a new wire segment, if any inactive wire is connected to the link.

◆ remove()

agx::Bool agxWire::Winch::remove ( const agxWire::Wire *  wire)

Remove an inactive wire segment.

Returns
true if removed, otherwise false

◆ replaceLink()

agx::Bool agxWire::Winch::replaceLink ( agxWire::Wire *  farWire,
agxWire::Link *  link 
)
protected

Pulling in a wire, replaces link's far node with this winch.

◆ resetLumpPosition()

agx::Real agxWire::WireWinchController::resetLumpPosition ( agx::Real  angle)
protectedinherited

Resets the lump position to reference.

Parameters
angle- the current angle of the constraint
Returns
change in angle (i.e., the amount the rest and current (?) length should change

◆ setAutoFeed()

void agxWire::WireWinchController::setAutoFeed ( bool  autoFeed)
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

Parameters
autoFeed- true for auto feed mode

◆ setBrakeForceRange() [1/2]

void agxWire::WireWinchController::setBrakeForceRange ( agx::RangeReal  brakeForceRange)
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)

Parameters
brakeForceRange- brake force range
See also
setBrakeForce

◆ setBrakeForceRange() [2/2]

void agxWire::WireWinchController::setBrakeForceRange ( agx::Real  brakeForce)
inherited

Same as setBrakeForceRange( agx::RangeReal brakeForceRange ) but this method will set range as [-brakeForce, brakeForce].

Parameters
brakeForce- brake force (Newton) to define the total brake force range

◆ setCompliance()

void agxWire::WireWinchController::setCompliance ( agx::Prismatic *  prismatic) const
inherited

Sets the default compliance for the prismatic constraint.

Parameters
prismatic- a prismatic constraint

◆ setEnableSerialization()

void agxStream::Serializable::setEnableSerialization ( bool  flag)
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.

◆ setEnableUuidGeneration()

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

◆ setFinished()

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

◆ setForceRange() [1/2]

void agxWire::WireWinchController::setForceRange ( agx::RangeReal  forceRange)
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)

Parameters
forceRange- force (Newton) range [haul_in, haul_out] where haul_in <= 0 and haul_out >= 0

◆ setForceRange() [2/2]

void agxWire::WireWinchController::setForceRange ( agx::Real  force)
inherited

Same as setForceRange( agx::RangeReal forceRange ) but this method will set range as [-force, force].

Parameters
force- force (Newton) to define the total force range

◆ setParameterController()

void agxWire::WireWinchController::setParameterController ( agxWire::WireParameterController *  parameters)
inherited

Associate a parameter controller to this winch.

◆ setPulledInWireLength()

void agxWire::WireWinchController::setPulledInWireLength ( agx::Real  pulledInLength)
inherited

Set the pulled in length for this winch.

Note
Explicitly assigning this value will affect the total length of the wire this winch is attached to.
Parameters
pulledInLength- pulled in length

◆ setSpeed()

void agxWire::WireWinchController::setSpeed ( agx::Real  speed)
inherited

Set winch motor speed.

Parameters
speed- speed of the winch motor (Default: 0)

◆ setStabilityController()

void agxWire::WireWinchController::setStabilityController ( agxWire::WireStabilityController *  stabilityController)
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.

Parameters
stabilityController- new stability controller

◆ setUuid()

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

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!

◆ transfer()

virtual void agxWire::Winch::transfer ( agxWire::ILinkNode *  linkNode,
agxWire::WireDistanceCompositeConstraint *  wireConstraint,
agxWire::WireParameterController *  parameters,
agxWire::WireStabilityController *  stabilityController,
agx::Bool  begin 
)
protectedvirtual

Transfers this winch from far wire to a newly created near wire.

◆ unitialize()

virtual void agxWire::WireWinchController::unitialize ( )
protectedvirtualinherited

Forgets about all wire parameters and clears the constraint.

◆ update()

virtual void agxWire::WireWinchController::update ( Node *  controlledNode,
Node *  lumpedNode,
bool  begin 
)
overrideprotectedvirtualinherited

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

Reimplemented in agxWire::WireSimpleDrumController.

◆ updateConstraintSettings()

void agxWire::WireWinchController::updateConstraintSettings ( agx::Prismatic *  prismatic,
agx::Real  desiredSpeed,
const agx::RangeReal &  forceRange,
const agx::RangeReal &  brakeRange,
bool  rangeEnable,
bool  forcedBrake = false 
) const
protectedinherited

Updates motor, lock and range parameters.

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

Member Data Documentation

◆ m_autoFeed

bool agxWire::WireWinchController::m_autoFeed
protectedinherited

Definition at line 373 of file WireWinchController.h.

◆ m_brakeRange

agx::RangeReal agxWire::WireWinchController::m_brakeRange
protectedinherited

Definition at line 376 of file WireWinchController.h.

◆ m_fixedNode

BodyFixedNodeRef agxWire::WireWinchController::m_fixedNode
protectedinherited

Definition at line 381 of file WireWinchController.h.

◆ m_forcedBrake

bool agxWire::WireWinchController::m_forcedBrake
protectedinherited

Definition at line 379 of file WireWinchController.h.

◆ m_forceRange

agx::RangeReal agxWire::WireWinchController::m_forceRange
protectedinherited

Definition at line 375 of file WireWinchController.h.

◆ m_lumpedNode

agx::observer_ptr< BodyFixedNode > agxWire::WireWinchController::m_lumpedNode
protectedinherited

Definition at line 384 of file WireWinchController.h.

◆ m_normal

agx::Vec3 agxWire::WireWinchController::m_normal
protectedinherited

Definition at line 383 of file WireWinchController.h.

◆ m_parameters

WireParameterController* agxWire::WireWinchController::m_parameters
protectedinherited

Definition at line 389 of file WireWinchController.h.

◆ m_parametersHoldingNode

agx::observer_ptr< BodyFixedNode > agxWire::WireWinchController::m_parametersHoldingNode
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.

◆ m_pulledInLength

agx::Real agxWire::WireWinchController::m_pulledInLength
protectedinherited

Definition at line 377 of file WireWinchController.h.

◆ m_pulledInWires

PulledInWiresContainer agxWire::Winch::m_pulledInWires
protected

Definition at line 195 of file Winch.h.

◆ m_speed

agx::Real agxWire::WireWinchController::m_speed
protectedinherited

Definition at line 374 of file WireWinchController.h.

◆ m_stabilityController

agx::observer_ptr< WireStabilityController > agxWire::WireWinchController::m_stabilityController
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().

◆ m_stopNode

StopNodeRef agxWire::WireWinchController::m_stopNode
protectedinherited

Definition at line 382 of file WireWinchController.h.

◆ m_withinEndRange

bool agxWire::WireWinchController::m_withinEndRange
protectedinherited

Definition at line 378 of file WireWinchController.h.


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