141 friend class LinkWinchSliderAlgorithm;
148 friend class LinkWinchIdleAlgorithm;
154 friend class WinchWireInitializationController;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Interface class used by internal objects running in parallel.
Connecting nodes contains two nodes, one at center of mass and the other at the user defined position...
Interface class for nodes connected to links.
Object that defines the relation between different types of wires (agxWire::Wire).
Winch object which works like agxWire::WireWinchController but enables the features of having stored,...
agx::Bool replaceLink(agxWire::Wire *farWire, agxWire::Link *link)
Pulling in a wire, replaces link's far node with this winch.
agx::UInt getNumPulledInWires() const
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.
agx::Bool add(agxWire::Wire *wire, agx::Real length)
Add inactive wire segment with a given length.
agxWire::Winch::WireLength getAndEraseFromPulledInWires(const agxWire::Wire *wire)
Returns that wire including its length.
PulledInWiresContainer m_pulledInWires
virtual agx::Bool pullInWire(agxWire::Winch::WireLength nearWireAndLength, agxWire::LinkRef link, agxWire::WireRef farWire, agxSDK::SimulationProxy *simulationProxy)
Pull in the near wire completely.
Winch()
Protected default constructor, used during restore.
virtual bool getForceGeometryListEmpty(bool begin) const override
virtual ~Winch()
Reference counted object, protected destructor.
virtual void addNotification(agxSDK::SimulationProxy *simulationProxy) override
Initializes the inactive links.
agx::Vector< WireLength > PulledInWiresContainer
agx::Real getTotalPulledInLength() const
Calculates the total pulled in length, including the pulled in length of the currently active wire (i...
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.
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 ap...
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 ...
void handleApproachingNodes(agx::Bool begin, agx::Real dt)
Handles the approaching nodes during preUpdate.
agx::Bool remove(const agxWire::Wire *wire)
Remove an inactive wire segment.
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)...
agxWire::Winch::WireLength getAndEraseFromPulledInWires(const agxWire::ConnectingNode *connectingNode)
Finds the wire the connection node matches and returns that wire including its length.
virtual void manipulatePulledInLength(agx::Real newPulledInLength)
Other friend objects have the possibility to manipulate the pulled in length of the current segment.
void initializePulledInLinks(agxSDK::SimulationProxy *simulationProxy)
Initializes the inactive links when this winch is added to the simulation.
Class to hold specific parameters for the wire - this makes the wires highly configurable.
Winch class for handling in and out hauling of wires.
Interface and placeholder of controllers/helpers for wires.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Implements a Wire model with adaptive resolution.
agx::ref_ptr< Winch > WinchRef
Internal data to store the inactive wire and the length of that wire.
WireLength(agxWire::Wire *w, agx::Real len)
Construct given a wire and a length.
static WireLength invalid()
agx::Bool isValid() const