 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
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();
284 bool insertStopNode(
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 );
423 inline void WireWinchController::setEnableForcedBrake(
bool enableForcedBrake )
428 inline bool WireWinchController::getEnableForcedBrake()
const
445 set( v.
x(), v.
y(), v.
z() );
487 _v[ 0 ] = std::sqrt(
x *
x +
z *
z );
489 _v[ 1 ] = angle < 0 ? 2 *
agx::PI + angle : angle;
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;
561 virtual void update(
Node* controlledNode,
Node* lumpedNode,
bool begin )
override;
570 void rebind(
const Node* to );
579 friend class WireSimpleDrumRenderer;
592 class WireSimpleDrumRenderer : public ConstraintRenderer
virtual bool attach(WireDistanceCompositeConstraint *constraint, WireParameterController *parameters, bool begin)
Create new nodes for new wire.
agx::observer_ptr< BodyFixedNode > m_parametersHoldingNode
To access and change rest/current length.
agx::Real convertAngle(agx::Real full) const
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::Real getSpeed() const
WireSimpleDrumControlPoint(const agx::Vec3 &position, agx::Real rest, agx::Real current)
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.
CylindricalCoordinateRPY()
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
The rigid body class, combining a geometric model and a frame of reference.
virtual void postUpdate(agx::Bool, agxSDK::SimulationProxy *)
Post update call from the wire.
agx::RigidBody * getRigidBody() const
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
agx::Vector< WireWinchControllerRef > WireWinchControllerRefVector
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
WireParameterController * m_parameters
CylindricalCoordinateRPY(const agx::Vec3 &v)
virtual void addNotification(agxSDK::SimulationProxy *)
Called from Wire::addNotification.
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::Hinge * getHinge() const
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
const WireSimpleDrumControlPointList & getControlPoints() const
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
agx::ref_ptr< WireWinchController > WireWinchControllerRef
agx::observer_ptr< BodyFixedNode > m_lumpedNode
Interface and placeholder of controllers/helpers for wires.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
agx::List< WireSimpleDrumControlPoint > WireSimpleDrumControlPointList
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...
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
void restore(agxStream::InputArchive &in)
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
agx::RangeReal m_forceRange
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Implements a Wire model with adaptive resolution.
The body fixed node is attached to a body at a given offset.
CylindricalCoordinateRPY coordinate
WireSimpleDrumControlPointList m_controlPoints
The geometry representation used by the collision detection engine.
virtual void preCollideUpdate(agx::Bool, agxSDK::SimulationProxy *)
Pre-collide update call from the wire.
virtual Node * getReferenceNode() override
virtual void preUpdate(agx::Bool, agxSDK::SimulationProxy *)
Pre update call from the wire.
WireSimpleDrumControlPoint & operator=(const WireSimpleDrumControlPoint &p)
Class for writing serialized data in binary format to a stream.
void set(agx::Real x, agx::Real y, agx::Real z)
WireSimpleDrumControlPoint()
Class to hold specific parameters for the wire - this makes the wires highly configurable.
const agx::RangeReal & getForceRange() const
agx::Real m_pulledInLength
virtual bool owns(const Node *node) const override
For the wire to know if node belongs to this attachment.
agx::Vector< agx::observer_ptr< WireWinchController > > WireWinchControllerObsVector
agxCollide::Geometry * getGeometry() const
size_t m_maxNumActiveContactNodes
CylindricalCoordinateRPY(const CylindricalCoordinateRPY &c)
WireSimpleDrumControlPoint(const WireSimpleDrumControlPoint &p)
void store(agxStream::OutputArchive &out) const
The hinge constraint between two rigid bodies or one rigid body and the world.
agx::ref_ptr< WireSimpleDrumController > WireSimpleDrumControllerRef
BodyFixedNodeRef m_fixedNode
virtual ~WireSimpleDrumController()
Class defining a node that is part of a wire.
The object defining a frame of reference and providing transformations operations.
const agx::RangeReal & getBrakeForceRange() const
Winch class for handling in and out hauling of wires.
const agx::Vec3 & getNormal() const
agx::RangeReal m_brakeRange
CylindricalCoordinateRPY & operator=(const CylindricalCoordinateRPY &c)
Stop node, wire end node used by winches.
Interface class used by internal objects running in parallel.
agxCollide::GeometryRef m_geometry