AGX Dynamics  2.37.3.2
agxPowerLine::ActuatorRotationalDimension Class Reference

#include <ActuatorUnit.h>

+ Inheritance diagram for agxPowerLine::ActuatorRotationalDimension:

Public Member Functions

 ActuatorRotationalDimension (ActuatorBodyUnit *actuatorBodyUnit, agx::RigidBody *body, bool externalBody)
 
agx::RigidBody * getBody () override
 
const char * getClassName () const override
 
virtual agxPowerLine::detail::AbstractDimensionState3Dof * getDimensionState () override
 
agxPowerLine::detail::Rotational3DofState * getRotationalDimensionState ()
 
agxStream::StorageAgent * getStorageAgent () const override
 
virtual bool restore (agxStream::StorageStream &str) override
 Restores internal data from stream. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual bool store (agxStream::StorageStream &str) const override
 Stores internal data into stream. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
- Public Member Functions inherited from agxPowerLine::RotationalDimension
 RotationalDimension (Unit *unit)
 Create a RotationalDimension with a direction relative to the world coordinate frame. More...
 
 RotationalDimension (agxPowerLine::Unit *unit, agx::RigidBody *body, agx::UInt8 slot)
 Virtual function so that an instance can find its own name and not the name of the base class. More...
 
 RotationalDimension (agxPowerLine::Unit *unit, agx::RigidBody *body, const agx::Vec3 &direction, agxPowerLine::DirectionReference directionReference, bool externalBody=false)
 Create a RotationalDimension whose direction can be relative to either the world or the body coordinate frame. More...
 
agx::Real getAngularVelocity () const
 
const char * getClassName () const override
 
agx::Real getInertia () const
 
agx::Real getInputTorque () const
 
virtual agx::Real getMassProperty () const override
 
virtual agx::Real getOutputLoad () const override
 
agx::Real getOutputTorque () const
 
virtual agx::Real getPowerIn () const override
 
virtual agx::Real getPowerOut () const override
 
agxStream::StorageAgent * getStorageAgent () const override
 
virtual std::string getTypeName () const override
 Virtual function so that an instance can find its own name and not the name of the base class. More...
 
virtual void renderDebug () override
 Render the axis of the dimension. More...
 
void setAngularVelocity (agx::Real)
 
virtual void setAngularVelocityDamping (agx::Real damping)
 set the angular velocity damping. More...
 
virtual bool setInertia (agx::Real value)
 set the inertia of the rotational dimension. More...
 
- Public Member Functions inherited from agxPowerLine::PhysicalDimension
virtual void addLoad (agx::Real load)
 Add a load to the dimension. More...
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::PhysicalDimension)
 
virtual void calculateJacobian (agx::Jacobian6DOFElement *G, const agx::Real ratio, const size_t index) const
 Calculates jacobian for a physical dimension. More...
 
virtual void clear ()
 Clear all reference pointers. More...
 
bool connect (agxPowerLine::PhysicalDimension *otherDimension, agxPowerLine::Connector *connector)
 Connect to another dimension for possible power transfer. More...
 
agxPowerLine::detail::AbstractDimensionState1Dof * get1DofState ()
 Access the DimensionState as a 1-dimensional state. More...
 
const agxPowerLine::detail::AbstractDimensionState1Dof * get1DofState () const
 
agxPowerLine::detail::AbstractDimensionState3Dof * get3DofState ()
 Access the DimensionState as a 3-dimensional state. More...
 
const agxPowerLine::detail::AbstractDimensionState3Dof * get3DofState () const
 
size_t getBodyIndexIn (const RigidBodyPtrIntHashVector &bodyToIndexTable)
 
const agxPowerLine::ConnectionRefVector & getConnections (agxPowerLine::Side side) const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getConstraint (size_t outputConnection=0) const
 
virtual agx::Real getGradient () const
 
const agxPowerLine::Connection * getInputConnection (size_t inputIndex=0) const
 Traversing helper functions. More...
 
Connection * getInputConnection (const Connector *connector)
 
Connection * getInputConnection (const Unit *unit)
 
const Connection * getInputConnection (const Connector *connector) const
 
const Connection * getInputConnection (const Unit *unit) const
 
agxPowerLine::Connection * getInputConnection (size_t inputIndex=0)
 
const agxPowerLine::ConnectionRefVector & getInputConnections () const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getInputConstraint (size_t inputConnection=0) const
 
virtual agx::Real getInputLoad () const
 return the load in/out More...
 
const agx::Name & getName () const
 Returns the name of this PhysicalDimension instance. More...
 
size_t getNumConnections (agxPowerLine::Side side) const
 
size_t getNumConnections () const
 
size_t getNumInputConnections () const
 
size_t getNumOutputConnections () const
 
agx::RigidBody * getOrReserveBody ()
 Return a body that is guaranteed to not be shared with any other PhysicalDimension. More...
 
const agxPowerLine::Connection * getOutputConnection (size_t outputIndex=0) const
 
Connection * getOutputConnection (const Connector *connector)
 
Connection * getOutputConnection (const Unit *unit)
 
const Connection * getOutputConnection (const Connector *connector) const
 
const Connection * getOutputConnection (const Unit *unit) const
 
agxPowerLine::Connection * getOutputConnection (size_t outputIndex=0)
 
const agxPowerLine::ConnectionRefVector & getOutputConnections () const
 
agx::RigidBody * getReservedBody ()
 Return a body that is guaranteed to not be shared with any other PhysicalDimension. More...
 
const agx::RigidBody * getReservedBody () const
 
virtual agx::Real getSecondGradient () const
 
agxPowerLine::detail::DimensionState * getState ()
 Provides direct access to the underlying DimensionState. More...
 
const agxPowerLine::detail::DimensionState * getState () const
 
agxPowerLine::PhysicalDimension::Type getType () const
 returns the PhysicalDimension::Type of this dimension More...
 
const agxPowerLine::Unit * getUnit () const
 Returns pointer to the Unit that contains this dimension. More...
 
agxPowerLine::Unit * getUnit ()
 
virtual agx::Real getValue () const
 Physical properties of the dimension. More...
 
float getVelocityDamping () const
 
agx::Vec3 getWorldDirection () const
 
bool hasReservedBody () const
 
bool isExternalBody () const
 Return true if the body that defines the dimension was given to the Power- Line, false if the body was created by the PowerLine. More...
 
void reserveBody ()
 Ensure that this PhysicalDimension does not share it's body with any other PhysicalDimension. More...
 
void restore (agxStream::InputArchive &in, agx::RigidBody *&body, bool &externalBody)
 
virtual void setGradient (agx::Real value)
 
virtual void setMassProperty (agx::Real massProperty)
 Set the mass property of the dimension. More...
 
void setName (const agx::Name &name)
 
virtual void setValue (agx::Real value)
 
void setVelocityDamping (float damping)
 
- 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...
 
- Public Member Functions inherited from agxPowerLine::ActuatorDimension
 ActuatorDimension (ActuatorBodyUnit *actuatorBodyUnit)
 
const ActuatorBodyUnit * getActuatorBodyUnit () const
 
bool restore (agxStream::StorageStream &str)
 
void restore (agxStream::InputArchive &in)
 
void setActuatorBodyUnit (ActuatorBodyUnit *actuatorBodyUnit)
 
bool store (agxStream::StorageStream &str) const
 
void store (agxStream::OutputArchive &out) const
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agxPowerLine::RotationalDimension
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
static agxPowerLine::PhysicalDimension::Type getStaticType ()
 
static std::string getStaticTypeName ()
 Each class inheriting from agxPowerLine::PhysicalDimension has to have a static function returning a unique name. More...
 
- Static Public Member Functions inherited from agxPowerLine::PhysicalDimension
static int getNumberOfPhysicalDimensions ()
 
static agxPowerLine::PhysicalDimension::Type getStaticType ()
 
static std::string getStaticTypeName ()
 Returns the dimension type name of PhysicalDimension. More...
 
- 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...
 

Protected Member Functions

virtual ~ActuatorRotationalDimension ()
 
- Protected Member Functions inherited from agxPowerLine::RotationalDimension
 RotationalDimension ()
 
virtual ~RotationalDimension ()
 
void postUpdate (agx::Real timeStep)
 
- Protected Member Functions inherited from agxPowerLine::PhysicalDimension
 PhysicalDimension ()
 
 PhysicalDimension (agxPowerLine::Unit *unit, agxPowerLine::PhysicalDimension::Type type, agxPowerLine::detail::DimensionState *state)
 
virtual ~PhysicalDimension ()
 
void addNotification (agxPowerLine::PowerLine *powerLine)
 
void addNotification (agxSDK::Simulation *simulation)
 Called when the Unit owning this PhysicalDimension is added to a simulation. More...
 
void addToListOfDimensions ()
 Add to singleton that controls the different types of physical dimensions. More...
 
agxPowerLine::ConnectionRefVector & getConnectionsWritable (agxPowerLine::Side side)
 
bool removeInputConnection (Connection *connection)
 
void removeNotification (agxPowerLine::PowerLine *powerLine)
 
void removeNotification (agxSDK::Simulation *simulation)
 Called when the Unit owning this PhysicalDimension is removed from a simulation. More...
 
virtual void removeNotification (agxSDK::Simulation *simulation, agxUtil::ConstraintHolder *constraintHolder)
 Remove the PhysicalDimension from the simulation. More...
 
bool removeOutputConnection (Connection *connection)
 
bool restore (agxStream::StorageStream &in, const agx::Vec3 *direction)
 Some serialization versions stored the dimension axis direction in classes deriving from PhysicalDimension. More...
 
- 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 Member Functions inherited from agxPowerLine::ActuatorDimension
 ActuatorDimension ()
 
virtual ~ActuatorDimension ()=0
 

Additional Inherited Members

- Public Types inherited from agxPowerLine::PhysicalDimension
typedef int Type
 
typedef agx::Vector< Type > TypeVector
 
- 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...
 
- Protected Attributes inherited from agxPowerLine::PhysicalDimension
ConnectionRefVector m_inputConnections
 
agx::Name m_name
 
ConnectionRefVector m_outputConnections
 
agxPowerLine::detail::PhysicalDimensionStateRef m_state
 
PhysicalDimension::Type m_type
 
Unit * m_unit
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 
- Protected Attributes inherited from agxPowerLine::ActuatorDimension
agx::observer_ptr< ActuatorBodyUnit > m_actuatorBodyUnit
 

Detailed Description

Definition at line 103 of file ActuatorUnit.h.

Constructor & Destructor Documentation

◆ ActuatorRotationalDimension()

agxPowerLine::ActuatorRotationalDimension::ActuatorRotationalDimension ( ActuatorBodyUnit *  actuatorBodyUnit,
agx::RigidBody *  body,
bool  externalBody 
)

◆ ~ActuatorRotationalDimension()

virtual agxPowerLine::ActuatorRotationalDimension::~ActuatorRotationalDimension ( )
protectedvirtual

Member Function Documentation

◆ create() [1/2]

static agxStream::Serializable* agxPowerLine::ActuatorRotationalDimension::create ( )
inlinestatic

Definition at line 123 of file ActuatorUnit.h.

◆ create() [2/2]

static agxStream::Serializable* agxPowerLine::ActuatorRotationalDimension::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 123 of file ActuatorUnit.h.

◆ getBody()

agx::RigidBody* agxPowerLine::ActuatorRotationalDimension::getBody ( )
overridevirtual

◆ getClassName()

const char* agxPowerLine::ActuatorRotationalDimension::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 123 of file ActuatorUnit.h.

◆ getConstructClassId()

static const char* agxPowerLine::ActuatorRotationalDimension::getConstructClassId ( )
inlinestatic

Definition at line 123 of file ActuatorUnit.h.

◆ getDimensionState()

virtual agxPowerLine::detail::AbstractDimensionState3Dof* agxPowerLine::ActuatorRotationalDimension::getDimensionState ( )
overridevirtual

◆ getRotationalDimensionState()

agxPowerLine::detail::Rotational3DofState* agxPowerLine::ActuatorRotationalDimension::getRotationalDimensionState ( )

◆ getStorageAgent()

agxStream::StorageAgent* agxPowerLine::ActuatorRotationalDimension::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 123 of file ActuatorUnit.h.

◆ restore() [1/2]

virtual bool agxPowerLine::ActuatorRotationalDimension::restore ( agxStream::StorageStream &  str)
overridevirtual

Restores internal data from stream.

Reimplemented from agxPowerLine::RotationalDimension.

◆ restore() [2/2]

virtual void agxPowerLine::ActuatorRotationalDimension::restore ( agxStream::InputArchive &  in)
overridevirtual

Reimplemented from agxPowerLine::RotationalDimension.

◆ store() [1/2]

virtual bool agxPowerLine::ActuatorRotationalDimension::store ( agxStream::StorageStream &  str) const
overridevirtual

Stores internal data into stream.

Reimplemented from agxPowerLine::RotationalDimension.

◆ store() [2/2]

virtual void agxPowerLine::ActuatorRotationalDimension::store ( agxStream::OutputArchive &  out) const
overridevirtual

Reimplemented from agxPowerLine::RotationalDimension.


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