64 inline const agx::Vec3& getNormal()
const;
77 void setAutoFeed(
bool autoFeed );
83 inline bool getAutoFeed()
const;
99 virtual agx::Real getCurrentSpeed()
const;
123 virtual agx::Real getCurrentForce()
const;
139 void setBrakeForceRange(
agx::Real brakeForce );
150 virtual agx::Real getCurrentBrakeForce()
const;
158 void setPulledInWireLength(
agx::Real pulledInLength );
163 virtual agx::Real getPulledInWireLength()
const;
183 bool getStopNodeInserted()
const;
188 agx::Vec3 getLumpNodeReferencePosition()
const;
193 agx::Real getStopNodeReferenceDistance( )
const;
207 void setStabilityController( agxWire::WireStabilityController* stabilityController );
214 virtual bool getWithinEndRange( )
const;
224 void setEnableForcedBrake(
bool enableForcedBrake);
230 bool getEnableForcedBrake()
const;
244 friend class WireInitializationController;
245 friend class WireRouteController;
263 virtual void unitialize();
268 virtual bool attach( WireDistanceCompositeConstraint* constraint,
WireParameterController* parameters,
bool begin );
284 bool insertStopNode(
bool begin );
295 void massUpdate(
agx::Real restLengthChange,
bool begin );
310 virtual void update(
Node* controlledNode,
Node* lumpedNode,
bool begin )
override;
322 virtual bool owns(
const Node* node )
const override 324 return m_stopNode == node;
335 virtual agx::Real getReferenceCurrentLength(
bool begin )
const override;
368 virtual void forcePulledInLength(
agx::Real newLength );
370 virtual void incrementPulledInLength(
agx::Real dl );
398 inline const agx::Vec3& WireWinchController::getNormal()
const 403 inline bool WireWinchController::getAutoFeed()
const 423 inline void WireWinchController::setEnableForcedBrake(
bool enableForcedBrake )
425 m_forcedBrake = enableForcedBrake;
428 inline bool WireWinchController::getEnableForcedBrake()
const 430 return m_forcedBrake;
445 set( v.
x(), v.
y(), v.
z() );
470 agx::Real x()
const {
return _v[ 0 ] * std::cos( convertAngle( _v[ 1 ] ) ); }
471 agx::Real z()
const {
return _v[ 0 ] * std::sin( convertAngle( _v[ 1 ] ) ); }
479 else if ( _v[ 1 ] > 2 *
agx::PI )
487 _v[ 0 ] = std::sqrt( x * x + z * z );
489 _v[ 1 ] = angle < 0 ? 2 *
agx::PI + angle : angle;
506 : coordinate( position ), restLength( rest ), currentLength( current ) {}
543 virtual agx::Real getCurrentSpeed()
const override;
544 virtual agx::Real getCurrentForce()
const override;
545 virtual agx::Real getCurrentBrakeForce()
const override;
550 using WireWinchController::getConstraint;
560 void initializeControlPoints( WireSimpleDrumControlPointList& controlPoints )
const;
561 virtual void update(
Node* controlledNode,
Node* lumpedNode,
bool begin )
override;
565 size_t getNumContacts(
bool begin, WireDistanceCompositeConstraint* wire,
NodeIterator& lastContact,
NodeIterator& firstLumpIter )
const;
570 void rebind(
const Node* to );
576 using WireWinchController::attach;
579 friend class WireSimpleDrumRenderer;
592 class WireSimpleDrumRenderer : public ConstraintRenderer
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
agx::observer_ptr< BodyFixedNode > m_lumpedNode
CylindricalCoordinateRPY(const agx::Vec3 &v)
virtual void postUpdate(agx::Bool, agxSDK::SimulationProxy *)
Post update call from the wire.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
WireParameterController * m_parameters
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
BodyFixedNodeRef m_fixedNode
agx::Real convertAngle(agx::Real full) const
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
agx::RangeReal m_forceRange
agx::Vector< WireWinchControllerRef > WireWinchControllerRefVector
agx::RigidBody * getRigidBody() const
agx::ref_ptr< WireWinchController > WireWinchControllerRef
agx::Hinge * getHinge() const
#define AGXPHYSICS_EXPORT
const WireSimpleDrumControlPointList & getControlPoints() const
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
agx::Real m_pulledInLength
The geometry representation used by the collision detection engine.
agx::List< WireSimpleDrumControlPoint > WireSimpleDrumControlPointList
The body fixed node is attached to a body at a given offset.
Interface and placeholder of controllers/helpers for wires.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
WireSimpleDrumControlPointList m_controlPoints
Implements a Wire model with adaptive resolution.
virtual void preCollideUpdate(agx::Bool, agxSDK::SimulationProxy *)
Pre-collide update call from the wire.
WireSimpleDrumControlPoint(const agx::Vec3 &position, agx::Real rest, agx::Real current)
Class to hold specific parameters for the wire - this makes the wires highly configurable.
agx::Vector< agx::observer_ptr< WireWinchController > > WireWinchControllerObsVector
Stop node, wire end node used by winches.
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
virtual bool owns(const Node *node) const override
For the wire to know if node belongs to this attachment.
The hinge constraint between two rigid bodies or one rigid body and the world.
agx::ref_ptr< WireSimpleDrumController > WireSimpleDrumControllerRef
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
The rigid body class, combining a geometric model and a frame of reference.
size_t m_maxNumActiveContactNodes
agx::observer_ptr< BodyFixedNode > m_parametersHoldingNode
To access and change rest/current length.
The object defining a frame of reference and providing transformations operations.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
WireSimpleDrumControlPoint(const WireSimpleDrumControlPoint &p)
WireSimpleDrumControlPoint()
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
agxCollide::Geometry * getGeometry() const
virtual ~WireSimpleDrumController()
agx::observer_ptr< WireStabilityController > m_stabilityController
If by the initialization controller, this winch can merge segments and change mass of the lumps via t...
agx::RangeReal m_brakeRange
virtual Node * getReferenceNode() override
Class defining a node that is part of a wire.
Interface class used by internal objects running in parallel.
Winch class for handling in and out hauling of wires.
virtual void addNotification(agxSDK::SimulationProxy *)
Called from Wire::addNotification.
CylindricalCoordinateRPY coordinate
virtual void preUpdate(agx::Bool, agxSDK::SimulationProxy *)
Pre update call from the wire.
CylindricalCoordinateRPY(const CylindricalCoordinateRPY &c)
agxCollide::GeometryRef m_geometry
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints, geometries.
CylindricalCoordinateRPY()