|
AGXDynamics
2.31.1.0
|
Constrains a rotational degree of freedom with a translational degree of freedom with a non-holonomic constraint. More...
#include <RotationalTranslationalConnector.h>
Inheritance diagram for agxPowerLine::RotationalTranslationalConnector:Public Member Functions | |
| RotationalTranslationalConnector () | |
| Create a connector connecting a RotationalDimension with a TranslationalDimension. More... | |
| virtual bool | addNotification (agxSDK::Simulation *simulation) override |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph) | |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Connector) | |
| 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 |
| virtual agx::RegularizationParameters::VariableType | calculateComplianceAndDamping (const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override |
| Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..) More... | |
| agx::Real | calculateEfficiency () const |
| calculate simulated efficiency More... | |
| virtual agx::Real | calculateViolation () const |
| calculate violation for constraint More... | |
| bool | compareWithInputTypes (PhysicalDimensionRefVector &dimensions) const |
| bool | compareWithOutputTypes (PhysicalDimensionRefVector &dimensions) const |
| virtual bool | connect (agxPowerLine::Unit *unit) |
| Connect a unit to this Connector. More... | |
| virtual bool | connect (agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit) |
| bool | connect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide) |
| Connect on the physical dimension level only. More... | |
| bool | connectDimensions (Unit *unit, agxPowerLine::Side mySide, agxPowerLine::Side unitSide) |
| virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * | createConstraint () override |
| Create the constraint. More... | |
| virtual bool | disconnect (agxPowerLine::Unit *unit) |
| Disconnect the given unit from this Connector. More... | |
| virtual bool | disconnect () |
| bool | disconnect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide) |
| agxPowerLine::Connection * | findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side) |
| const agxPowerLine::Connection * | findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side) const |
| agxPowerLine::Connection * | findInputConnection (const agxPowerLine::Unit *unit) |
| const agxPowerLine::Connection * | findInputConnection (const agxPowerLine::Unit *unit) const |
| agxPowerLine::Connection * | findOutputConnection (const agxPowerLine::Unit *unit) |
| const agxPowerLine::Connection * | findOutputConnection (const agxPowerLine::Unit *unit) const |
| const char * | getClassName () const override |
| const agxPowerLine::ConnectionRefVector & | getConnections (agxPowerLine::Side side) const |
| virtual void | getConnectorsRecursive (ConnectorPtrVector &connectors) |
| Fill the given vector with the Connectors that are held by this SubGraph. More... | |
| agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * | getConstraint () const |
| agx::Real | getDamping () const |
| agxPowerLine::ElementaryPhysicalDimensionConstraint * | getElementaryConstraint () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| Connector * | getEnclosingConnector () |
| const Connector * | getEnclosingConnector () const |
| SubGraph * | getEnclosingGraph () |
| const SubGraph * | getEnclosingGraph () const |
| Unit * | getEnclosingUnit () |
| const Unit * | getEnclosingUnit () const |
| bool | getIgnoreForStoreRestoreStream () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| const agxPowerLine::Connection * | getInputConnection (size_t index) const |
| return a specific output connection More... | |
| agxPowerLine::Connection * | getInputConnection (size_t index) |
| return a specific input connection More... | |
| const agxPowerLine::ConnectionRefVector & | getInputConnections () const |
| return vector to all input connections from this connector More... | |
| agxPowerLine::ConnectionRefVector & | getInputConnections () |
| return vector to all input connections from this connector More... | |
| PhysicalDimension * | getInputDimension (const PhysicalDimension::Type dimensionType) const |
| const DimensionTypeVector & | getInputTypes () const |
| bool | getInputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true) |
| bool | getInputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const |
| const agxPowerLine::ConnectorRefVector & | getInternalConnectors () const |
| const agxPowerLine::UnitRefVector & | getInternalUnits () const |
| const agx::Name & | getName () const |
| int | getNumConnections (agxPowerLine::Side side) const |
| int | getNumConnections () const |
| int | getNumFreeConnections (agxPowerLine::Side side) const |
| int | getNumFreeConnections () const |
| int | getNumFreeInputConnections () const |
| int | getNumFreeOutputConnections () const |
| int | getNumInputConnections () const |
| int | getNumOutputConnections () const |
| int | getNumPossibleInputConnections () const |
| int | getNumPossibleOutputConnections () const |
| const agxPowerLine::Connection * | getOutputConnection (size_t index) const |
| return a specific output connection More... | |
| agxPowerLine::Connection * | getOutputConnection (size_t index) |
| return a specific input connection More... | |
| const agxPowerLine::ConnectionRefVector & | getOutputConnections () const |
| return vector to all output connections from this connector More... | |
| agxPowerLine::ConnectionRefVector & | getOutputConnections () |
| return vector to all output connections from this connector More... | |
| PhysicalDimension * | getOutputDimension (const PhysicalDimension::Type dimensionType) const |
| const DimensionTypeVector & | getOutputTypes () const |
| bool | getOutputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true) |
| bool | getOutputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const |
| agx::Real | getPowerIn () const |
| agxPowerLine::PowerLine * | getPowerLine () const |
| agx::Real | getPowerOut () const |
| agx::Real | getRatio () const |
| virtual agx::Real | getRatio (agx::Real x) const |
| agx::Real | getRatioDerivative () const |
| virtual agx::Real | getRatioDerivative (agx::Real x) const |
| int | getReferenceCount () const |
| agx::Real | getRodPosition () const |
| SubGraph * | getRootEnclosingGraph () |
| const SubGraph * | getRootEnclosingGraph () const |
| agx::Real | getShaftAngle () const |
| virtual agx::Real | getShaftRadius () const |
| virtual agxPowerLine::Side | getSide (const agxPowerLine::Unit *unit) const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| const DimensionTypeVector & | getTypes (agxPowerLine::Side side) const |
| bool | getUnits (UnitPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) |
| bool | getUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true) |
| bool | getUnits (UnitConstPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) const |
| bool | getUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const |
| virtual void | getUnitsRecursive (UnitPtrVector &units) |
| Fill the given vector with the Units that are held by this SubGraph. More... | |
| agx::Uuid | getUuid () const |
| virtual agx::Real | getViolation () const |
| Returns the constraint violation for connectors with holonomic constraints. More... | |
| bool | hasFreeConnection (agxPowerLine::Side side) const |
| bool | hasFreeConnection () const |
| bool | hasFreeInputConnection () const |
| bool | hasFreeOutputConnection () const |
| bool | hasInputConnection (Connection *connection) |
| Find out if the connection belongs to this connector. More... | |
| bool | hasOutputConnection (Connection *connection) |
| virtual void | initConstraint () |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isConstraintValid () const |
| bool | isEnclosedWithin (const SubGraph *component) const |
| bool | isFinished () const |
| virtual bool | isInput (const agxPowerLine::PhysicalDimension *dimension) const |
| Determine if the given dimension is part of any of the input connections of this Connector. More... | |
| virtual bool | isOutput (Connection *connection) const |
| Find out if a connection is output from this connector. More... | |
| virtual bool | isOutput (const agxPowerLine::PhysicalDimension *dimension) const |
| Find out if the given dimension is part of any of the output connections. More... | |
| virtual bool | postRestore (agxStream::StorageStream &str) |
| virtual bool | postStore (agxStream::StorageStream &str) const |
| Set values of constraints. More... | |
| virtual bool | postUpdate (agx::Real timeStep) override |
| virtual void | prepareForRestore () |
| virtual void | prepareForStore () |
| virtual bool | preUpdate (agx::Real timeStep) |
| 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... | |
| virtual bool | removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override |
| remove connector and constraint from simulation More... | |
| virtual bool | restore (agxStream::StorageStream &str) override |
| Restores internal data from stream. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setConstraint (agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *constraint) |
| set the constraint that represents this connector in the solver. More... | |
| void | setDamping (agx::Real damping) |
| Set the damping of the 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 | setIgnoreForStoreRestoreStream (bool ignore) |
| void | setName (const agx::Name &name) |
| Set the name of this power line component. More... | |
| void | setNumPossibleInputConnections (int num) |
| Define number of input dimensions the constraint should handle. More... | |
| void | setNumPossibleOutputConnections (int num) |
| Define number of output dimensions the constraint should handle. More... | |
| void | setPowerLine (agxPowerLine::PowerLine *powerLine) |
| void | setShaftRadius (agx::Real shaftRadius) |
| Set the radius of the shaft. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| void | spreadPowerLineToGraph () |
| virtual bool | store (agxStream::StorageStream &str) const override |
| Stores internal data into stream. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| 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... | |
| virtual bool | vetoConnect (agxPowerLine::Unit *unit) const |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
| static PhysicalDimension * | getDimension (const ConnectionRefVector &connections, const PhysicalDimension::Type dimensionType) |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions | |
| 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... | |
Constrains a rotational degree of freedom with a translational degree of freedom with a non-holonomic constraint.
The gearing depends on the shaft radius. If the shaft radius is set to 1, the angular velocity of the rotational degree of freedom will be constrained to be equal to the linear velocity of the translational degree of freedom.
Definition at line 36 of file RotationalTranslationalConnector.h.
| agxPowerLine::RotationalTranslationalConnector::RotationalTranslationalConnector | ( | ) |
Create a connector connecting a RotationalDimension with a TranslationalDimension.
|
inlineprotectedvirtual |
Definition at line 79 of file RotationalTranslationalConnector.h.
|
protectedinherited |
|
protectedinherited |
|
overridevirtualinherited |
Implements agxPowerLine::SubGraph.
Reimplemented in agxDriveTrain::Clutch.
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
overridevirtual |
Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..)
Reimplemented from agxPowerLine::Connector.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
|
inherited |
calculate simulated efficiency
|
virtualinherited |
calculate violation for constraint
Reimplemented in agxDriveTrain::HolonomicGear, and agxPowerLine::RotationalTranslationalHolonomicConnector.
|
inherited |
|
inherited |
|
virtualinherited |
Connect a unit to this Connector.
Reimplemented in agxDriveTrain::MultiGear.
|
virtualinherited |
|
overrideprotectedvirtual |
Reimplemented from agxPowerLine::Connector.
|
inherited |
Connect on the physical dimension level only.
Will not update the parent Unit's root node and will not spread the power line over the graph.
|
protectedvirtualinherited |
Reimplemented in agxHydraulics::FlowConnector.
|
inherited |
|
inlinestatic |
Definition at line 76 of file RotationalTranslationalConnector.h.
|
inlinestatic |
Definition at line 76 of file RotationalTranslationalConnector.h.
|
overridevirtual |
|
protectedinherited |
|
virtualinherited |
Disconnect the given unit from this Connector.
Will reduce the refCount of the Connector, so the instance may have been deleted when this method returns. Keep an extra ConnectorRef, at the call site of elsewhere, to avoid this.
Reimplemented in agxHydraulics::SpoolValve, agxDriveTrain::Differential, and agxDriveTrain::MultiGear.
|
virtualinherited |
Reimplemented in agxHydraulics::SpoolValve.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
Definition at line 76 of file RotationalTranslationalConnector.h.
|
inherited |
|
virtualinherited |
Fill the given vector with the Connectors that are held by this SubGraph.
The collection is recursive, so internal Connectors will be collected.
Reimplemented in agxDriveTrain::Differential, and agxDriveTrain::deprecated::DriveTrainComponent.
|
inherited |
|
inlinestatic |
Definition at line 76 of file RotationalTranslationalConnector.h.
|
inherited |
|
staticprotectedinherited |
|
staticinherited |
|
inherited |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
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.
Definition at line 247 of file Serializable.h.
|
inherited |
return a specific output connection
|
inherited |
return a specific input connection
|
inherited |
return vector to all input connections from this connector
|
inherited |
return vector to all input connections from this connector
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
return a specific output connection
|
inherited |
return a specific input connection
|
inherited |
return vector to all output connections from this connector
|
inherited |
return vector to all output connections from this connector
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agx::Real agxPowerLine::RotationalTranslationalConnector::getRodPosition | ( | ) | const |
|
inherited |
|
inherited |
| agx::Real agxPowerLine::RotationalTranslationalConnector::getShaftAngle | ( | ) | const |
|
virtual |
|
virtualinherited |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
Definition at line 76 of file RotationalTranslationalConnector.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Fill the given vector with the Units that are held by this SubGraph.
The collection is recursive, so internal Units will be collected.
Reimplemented in agxDriveTrain::deprecated::DriveTrainComponent.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
virtualinherited |
Returns the constraint violation for connectors with holonomic constraints.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Find out if the connection belongs to this connector.
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
virtualinherited |
Reimplemented in agxDriveTrain::GearBox, and agxDriveTrain::DifferentialLockConnector.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
|
inherited |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
virtualinherited |
|
virtualinherited |
Find out if a connection is output from this connector.
|
virtualinherited |
Find out if the given dimension is part of any of the output connections.
|
virtualinherited |
Reimplemented in agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::Clutch.
Referenced by agxHydraulics::detail::SpoolValveConnector::postRestore().
|
virtualinherited |
Set values of constraints.
Must be called after the constraints are created.
Reimplemented in agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::Clutch.
Referenced by agxHydraulics::detail::SpoolValveConnector::postStore().
|
overridevirtual |
Reimplemented from agxPowerLine::SubGraph.
|
virtualinherited |
Reimplemented in agxPowerLine::WireWinchActuator.
|
virtualinherited |
Reimplemented in agxPowerLine::WireWinchActuator.
|
virtualinherited |
Reimplemented in agxDriveTrain::PidControlledEngine, agxDriveTrain::deprecated::GearBox, agxDriveTrain::deprecated::FixedGear, agxPowerLine::RotationalActuator, agxDriveTrain::Engine, agxDriveTrain::ElectricMotor, agxPowerLine::RotationalUnit, agxPowerLine::WireWinchActuator, agxPowerLine::Actuator1DOF, and agxDriveTrain::Shaft.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
protectedinherited |
|
protectedinherited |
|
overridevirtualinherited |
remove connector and constraint from simulation
Implements agxPowerLine::SubGraph.
Reimplemented in agxDriveTrain::HolonomicGear, and agxDriveTrain::Differential.
|
protectedinherited |
|
overridevirtual |
Restores internal data from stream.
Reimplemented from agxPowerLine::Connector.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
|
overridevirtual |
Reimplemented from agxPowerLine::Connector.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
|
inherited |
set the constraint that represents this connector in the solver.
Set the damping of the constraint.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
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.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
inherited |
Set the name of this power line component.
| name | - The new name. |
|
inherited |
Define number of input dimensions the constraint should handle.
|
inherited |
Define number of output dimensions the constraint should handle.
|
inherited |
set/get the ratio (scaling of load through the constraint).
Set the radius of the shaft.
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!
|
inherited |
|
overridevirtual |
Stores internal data into stream.
Reimplemented from agxPowerLine::Connector.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
|
overridevirtual |
Reimplemented from agxPowerLine::Connector.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector.
|
protectedinherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
virtualinherited |
Reimplemented in agxHydraulics::detail::SpoolValveConnector.
|
protectedinherited |
Definition at line 397 of file Connector.h.
|
protectedinherited |
Definition at line 393 of file Connector.h.
|
protectedinherited |
Definition at line 162 of file SubGraph.h.
|
protectedinherited |
Definition at line 399 of file Connector.h.
|
protectedinherited |
Definition at line 388 of file Connector.h.
|
protectedinherited |
Definition at line 390 of file Connector.h.
|
protectedinherited |
Definition at line 164 of file SubGraph.h.
|
protectedinherited |
Definition at line 163 of file SubGraph.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protectedinherited |
Definition at line 166 of file SubGraph.h.
|
protectedinherited |
Definition at line 386 of file Connector.h.
|
protectedinherited |
Definition at line 387 of file Connector.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protectedinherited |
Definition at line 389 of file Connector.h.
|
protectedinherited |
Definition at line 391 of file Connector.h.
|
protectedinherited |
Definition at line 165 of file SubGraph.h.
|
protectedinherited |
Definition at line 395 of file Connector.h.
|
protectedinherited |
Definition at line 396 of file Connector.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 86 of file RotationalTranslationalConnector.h.
|
protected |
Definition at line 85 of file RotationalTranslationalConnector.h.
|
protected |
Definition at line 84 of file RotationalTranslationalConnector.h.