AGX Dynamics  2.35.0.1
agxHydraulics::ImpellerActuator Class Reference

Base class for Actuators that convert between hydraulic flow and mechanical 6-DOF rotation, e.g., the HydraulicPumpActuator and the HydraulicMotorActuator. More...

#include <ImpellerActuator.h>

+ Inheritance diagram for agxHydraulics::ImpellerActuator:

Public Member Functions

agxHydraulics::FlowUnit * getChamber ()
 
const agxHydraulics::FlowUnit * getChamber () const
 
agx::Real getDisplacement () const
 
virtual bool getEnable () const override
 
agxHydraulics::RotationalFlowConnector * getRotationalFlowConnector ()
 
const agxHydraulics::RotationalFlowConnector * getRotationalFlowConnector () const
 
void setDisplacement (agx::Real displacement)
 Set the relationship between hydraulic flow and mechanical rotation. More...
 
virtual void setEnable (bool enabled) override
 
- Public Member Functions inherited from agxPowerLine::RotationalActuator
 RotationalActuator (agx::Hinge *hinge)
 
virtual agx::Vec3 calculateLocalDirection (Side side, int dimensionType) const override
 
virtual agx::Real calculateRelativeGradient () const override
 
virtual agx::Vec3 calculateWorldDirection (Side side, agxPowerLine::PhysicalDimension::Type dimensionType) const override
 
const char * getClassName () const override
 
virtual void getConnectableDimensionTypes (agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
 
agxPowerLine::RotationalUnit * getInputShaft ()
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::Bool getUseHighSpeedMode () const
 
virtual bool preUpdate (agx::Real timeStamp) override
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual bool restore (agxStream::StorageStream &in) override
 Restores internal data from stream. More...
 
void setUseHighSpeedMode (agx::Bool highSpeedMode)
 Set the usage of high speed mode. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual bool store (agxStream::StorageStream &out) const override
 Stores internal data into stream. More...
 
- Public Member Functions inherited from agxPowerLine::Actuator1DOF
 Actuator1DOF (agx::Constraint1DOF *constraint1DOF)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Actuator1DOF)
 
virtual agx::Real calculateRelativeValue () const override
 
virtual agxPowerLine::DimensionAndSide getConnectableDimension (agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
 
void synchronizeDirections ()
 
- Public Member Functions inherited from agxPowerLine::Actuator
 Actuator (agx::Constraint *constraint)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxMode::Actuator)
 
agxPowerLine::ActuatorBodyUnit * getActuatorBodyUnit (Side side)
 
const agxPowerLine::ActuatorBodyUnit * getActuatorBodyUnit (Side side) const
 
agx::Constraint * getConstraint ()
 
const agx::Constraint * getConstraint () const
 
agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState (agxPowerLine::Side side, agxPowerLine::PhysicalDimension::Type dimensionType)
 
agxPowerLine::PhysicalDimension * getPhysicalDimension (Side side, int dimensionType)
 
const agxPowerLine::PhysicalDimension * getPhysicalDimension (Side side, int dimensionType) const
 
virtual agx::RigidBody * getRigidBody (Side side)
 
virtual const agx::RigidBody * getRigidBody (Side side) const
 
agxPowerLine::detail::Rotational3DofState * getRotationalState (Side side)
 
agxPowerLine::detail::Translational3DofState * getTranslationalState (Side side)
 
bool reverseOrderRelativeConstraint () const
 
- Public Member Functions inherited from agxPowerLine::Unit
 Unit ()
 Constructor. More...
 
void addNotification (agxPowerLine::PowerLine *powerLine)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Unit)
 
void attach (agx::RigidBody *body)
 Define which body in the simulation this Unit is attached to. More...
 
agx::String buildDimensionsName () const
 
virtual bool connect (agxPowerLine::Connector *connector)
 Connect the unit to a connector. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side connectorSide, agxPowerLine::Connector *connector)
 Connect the unit to a connector, specifying the side of each. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side otherSide, agxPowerLine::Unit *other)
 
virtual bool connect (agxPowerLine::Unit *otherUnit)
 Connect the unit to another unit. More...
 
virtual bool disconnect (agxPowerLine::Unit *unit)
 
void disconnectAll ()
 
agxPowerLine::PhysicalDimension * getActiveDimension (size_t index)
 
const agxPowerLine::PhysicalDimension * getActiveDimension (size_t index) const
 
agxPowerLine::PhysicalDimension * getConnectableInputDimension (agxPowerLine::PhysicalDimension::Type type)
 
agxPowerLine::PhysicalDimension * getConnectableOutputDimension (agxPowerLine::PhysicalDimension::Type type)
 
void getConnectedUnits (UnitPtrSetVector &result, agxPowerLine::Side side)
 
size_t getConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
size_t getConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 Append all connectors connecting this Unit to the given Unit to the 'result' Vector. More...
 
agxPowerLine::PhysicalDimension * getDimension (agxPowerLine::PhysicalDimension::Type type)
 
const agxPowerLine::PhysicalDimension * getDimension (agxPowerLine::PhysicalDimension::Type type) const
 
agxPowerLine::PhysicalDimensionRefVector & getDimensions ()
 
const agxPowerLine::PhysicalDimensionRefVector & getDimensions () const
 
Connector * getFirstInputConnector (const agxPowerLine::Unit *unit) const
 
Connector * getFirstOutputConnector (const agxPowerLine::Unit *unit) const
 
bool getIgnoreForStoreRestoreStream () const
 
size_t getInputConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
size_t getInputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 
size_t getNumActiveDimensions () const
 The number of non-null PhysicalDimension in this Unit, not including internal Units. More...
 
virtual size_t getNumConnectableDimensions (Side side) const
 
size_t getNumConnections () const
 
size_t getOutputConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
size_t getOutputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 
void getOwnConnectedUnits (UnitPtrSetVector &unitSet, agxPowerLine::Side side, bool startFromCleanUnitSet=true) const
 
void getOwnConnectedUnits (UnitPtrSetVector &unitSet, bool startFromCleanUnitSet=true) const
 Constructs the set of Units connected to this Unit's own dimensions. More...
 
agxPowerLine::PowerLine * getPowerLine () const
 
agxPowerLine::Unit * getRoot () const
 
agxPowerLine::Side getSide (const Connector *connector) const
 
bool hasConnector (const Connector *connector) const
 
virtual bool isConnected (agxPowerLine::Unit *otherUnit) const
 
virtual bool isValid () const
 
virtual bool postRestore (agxStream::StorageStream &str)
 
virtual bool postStore (agxStream::StorageStream &str) const
 
void removeNotification (agxPowerLine::PowerLine *powerLine)
 
void setRoot (agxPowerLine::Unit *root)
 
void spreadRootToGraph ()
 
virtual bool vetoConnect (agxPowerLine::Connector *connector) const
 
- Public Member Functions inherited from agxPowerLine::SubGraph
 SubGraph ()
 
virtual bool addNotification (agxSDK::Simulation *simulation)=0
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph)
 
virtual void getConnectorsRecursive (ConnectorPtrVector &connectors)
 Fill the given vector with the Connectors that are held by this SubGraph. More...
 
Connector * getEnclosingConnector ()
 
const Connector * getEnclosingConnector () const
 
SubGraph * getEnclosingGraph ()
 
const SubGraph * getEnclosingGraph () const
 
Unit * getEnclosingUnit ()
 
const Unit * getEnclosingUnit () const
 
const agxPowerLine::ConnectorRefVector & getInternalConnectors () const
 
const agxPowerLine::UnitRefVector & getInternalUnits () const
 
const agx::Name & getName () const
 
SubGraph * getRootEnclosingGraph ()
 
const SubGraph * getRootEnclosingGraph () const
 
virtual void getUnitsRecursive (UnitPtrVector &units)
 Fill the given vector with the Units that are held by this SubGraph. More...
 
bool isEnclosedWithin (const SubGraph *component) const
 
virtual bool postUpdate (agx::Real timeStep)
 
virtual void prepareForRestore ()
 
virtual void prepareForStore ()
 
virtual bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation)=0
 
void setName (const agx::Name &name)
 Set the name of this power line component. More...
 
void spreadPowerLineToGraph ()
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings. More...
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
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 setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Protected Member Functions

 ImpellerActuator ()
 
 ImpellerActuator (agx::Hinge *hinge, agx::Real chamberLength, agx::Real chamberArea, agx::Real chamberDensity)
 Create an ImpellerActuator that joins the fluid chamber with the two bodies attached with the given hinge. More...
 
virtual ~ImpellerActuator ()
 
- Protected Member Functions inherited from agxPowerLine::Actuator1DOF
 Actuator1DOF ()
 
virtual ~Actuator1DOF ()
 
void detachActuatorUnitsFromEachOther ()
 
virtual agx::Vec3 getCmToAnchorPos1 () const override
 
virtual agx::Vec3 getCmToAnchorPos2 () const override
 
virtual agx::Vec3 getDir1 () const override
 
virtual agx::Vec3 getDir2 () const override
 
virtual agx::Vec3 getSeparation () const override
 
void replaceActuatorUnit (Unit *oldUnit, Unit *newUnit)
 
void synchronizeUnits (agx::Constraint1DOF *constraint)
 
- Protected Member Functions inherited from agxPowerLine::Actuator
 Actuator ()
 
virtual ~Actuator ()
 
- Protected Member Functions inherited from agxPowerLine::Unit
virtual ~Unit ()
 
bool activateDimension (PhysicalDimension *dimension)
 
virtual bool hasValidInputConnection () const
 returns if it is possible to connect to this unit More...
 
void restorePre46 (agxStream::InputArchive &in)
 
void setPowerLine (PowerLine *powerLine)
 Point to the power line the unit is a part of. More...
 
- Protected Member Functions inherited from agxPowerLine::SubGraph
virtual ~SubGraph ()
 
void addInternalConnector (agxPowerLine::Connector *connector)
 
void addInternalUnit (agxPowerLine::Unit *unit)
 
void removeInternalConnector (agxPowerLine::Connector *connector)
 
void removeInternalUnit (agxPowerLine::Unit *unit)
 
agx::Bool replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor. More...
 
 Serializable (const Serializable &other)
 Copy constructor. More...
 
void generateUuid ()
 

Protected Attributes

FlowUnitRef m_flowUnit
 
RotationalFlowConnectorRef m_impellerChamberConnector
 
- Protected Attributes inherited from agxPowerLine::RotationalActuator
agxPowerLine::detail::RotationalActuatorConnectorRef m_actuatorConnector
 
agxPowerLine::RotationalUnitRef m_inputShaft
 
agx::Bool m_useHighSpeedMode
 
- Protected Attributes inherited from agxPowerLine::Actuator1DOF
ConstraintObserver m_constraint1DOF
 
agx::ref_ptr< agxPowerLine::ActuatorBodyUnit > m_dummyActuatorBodyUnits [2]
 
- Protected Attributes inherited from agxPowerLine::Actuator
agx::ref_ptr< agxPowerLine::ActuatorBodyUnit > m_actuatorBodyUnits [2]
 
agx::observer_ptr< agx::Constraint > m_constraint
 
bool m_enabled
 
- Protected Attributes inherited from agxPowerLine::Unit
agx::observer_ptr< agx::RigidBody > m_attachBody
 
PhysicalDimensionRefVector m_dimensions
 
bool m_ignoreMeForStoreRestoreStream
 
agxPowerLine::Unit * m_rootUnit
 
- Protected Attributes inherited from agxPowerLine::SubGraph
SubGraphObserver m_enclosingGraph
 
ConnectorRefVector m_internalConnectors
 
UnitRefVector m_internalUnits
 
agx::Name m_name
 
PowerLine * m_powerLine
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agxPowerLine::RotationalActuator
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- 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. 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. More...
 

Detailed Description

Base class for Actuators that convert between hydraulic flow and mechanical 6-DOF rotation, e.g., the HydraulicPumpActuator and the HydraulicMotorActuator.

Contains, in addition to the regular Actuator elements, a FlowUnit that represents the fluid chamber and a Connector that connects the fluid chamber to the rotational dimension of the mechanics bodies.

Connecting a FlowUnit to the ImpellerActuator, or connecting the ImpellerActuator to a FlowUnit, will connect the FlowUnit to the ImpellerActuator's internal chamber.

Definition at line 54 of file ImpellerActuator.h.

Constructor & Destructor Documentation

◆ ImpellerActuator() [1/2]

agxHydraulics::ImpellerActuator::ImpellerActuator ( agx::Hinge *  hinge,
agx::Real  chamberLength,
agx::Real  chamberArea,
agx::Real  chamberDensity 
)
protected

Create an ImpellerActuator that joins the fluid chamber with the two bodies attached with the given hinge.

Will produce rotations about the hinge axis.

◆ ImpellerActuator() [2/2]

agxHydraulics::ImpellerActuator::ImpellerActuator ( )
protected

◆ ~ImpellerActuator()

virtual agxHydraulics::ImpellerActuator::~ImpellerActuator ( )
protectedvirtual

Member Function Documentation

◆ getChamber() [1/2]

agxHydraulics::FlowUnit* agxHydraulics::ImpellerActuator::getChamber ( )
Returns
The FlowUnit that represent the fluid chamber of the actuator.

◆ getChamber() [2/2]

const agxHydraulics::FlowUnit* agxHydraulics::ImpellerActuator::getChamber ( ) const

◆ getDisplacement()

agx::Real agxHydraulics::ImpellerActuator::getDisplacement ( ) const
Returns
The displacement of the ImpellerActuator.

◆ getEnable()

virtual bool agxHydraulics::ImpellerActuator::getEnable ( ) const
overridevirtual

Reimplemented from agxPowerLine::RotationalActuator.

◆ getRotationalFlowConnector() [1/2]

agxHydraulics::RotationalFlowConnector* agxHydraulics::ImpellerActuator::getRotationalFlowConnector ( )
Returns

◆ getRotationalFlowConnector() [2/2]

const agxHydraulics::RotationalFlowConnector* agxHydraulics::ImpellerActuator::getRotationalFlowConnector ( ) const

◆ setDisplacement()

void agxHydraulics::ImpellerActuator::setDisplacement ( agx::Real  displacement)

Set the relationship between hydraulic flow and mechanical rotation.

Measured in volume of fluid per radian of mechanical rotation.

◆ setEnable()

virtual void agxHydraulics::ImpellerActuator::setEnable ( bool  enabled)
overridevirtual

Reimplemented from agxPowerLine::RotationalActuator.

Member Data Documentation

◆ m_flowUnit

FlowUnitRef agxHydraulics::ImpellerActuator::m_flowUnit
protected

Definition at line 141 of file ImpellerActuator.h.

◆ m_impellerChamberConnector

RotationalFlowConnectorRef agxHydraulics::ImpellerActuator::m_impellerChamberConnector
protected

Definition at line 142 of file ImpellerActuator.h.


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