AGXDynamics  2.31.1.0
agxModel::TwoBodyTire Class Reference

#include <TwoBodyTire.h>

+ Inheritance diagram for agxModel::TwoBodyTire:

Public Types

enum  DeformationMode { RADIAL, LATERAL, BENDING, TORSIONAL }
 
enum  Type { ASSEMBLY, COLLECTION }
 Specifies the type an assembly is. More...
 

Public Member Functions

 TwoBodyTire (agx::RigidBody *tireBody, agx::Real outerRadius, agx::RigidBody *hubBody, agx::Real innerRadius, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4())
 Construct tire given rigid body (with wheel geometry/geometries) and radius. More...
 
bool add (agx::Constraint *constraint)
 Add a constraint to the assembly. More...
 
bool add (agx::Interaction *interaction)
 Add an interaction to this assembly. More...
 
bool add (agxSDK::EventListener *listener)
 Add a listener to the assembly. More...
 
bool add (agx::RigidBody *body)
 Add a rigid body to the assembly. More...
 
bool add (agxCollide::Geometry *geometry)
 Add a geometry to the assembly. More...
 
bool add (Assembly *assembly)
 Add another assembly as child to this assembly. More...
 
bool add (agx::ContactMaterial *contactMaterial)
 Add a contact material to this assembly. More...
 
bool add (agx::Emitter *emitter)
 Add an emitter to this assembly. More...
 
bool add (agx::ObserverFrame *observerFrame)
 Add an ObserverFrame to this assembly. More...
 
bool add (agxStream::Serializable *object)
 Add an object of type serialized. More...
 
virtual void addNotification (Assembly *)
 Called when this assembly is added to another assembly. More...
 
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
 
const AssemblyRefSet & getAssemblies () const
 
const agxSDK::Assembly * getAssembly (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named Assembly. More...
 
agxSDK::Assembly * getAssembly (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named Assembly. More...
 
const agxSDK::Assembly * getAssembly (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an Assembly matching the given uuid. More...
 
agxSDK::Assembly * getAssembly (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an Assembly matching the given uuid. More...
 
const char * getClassName () const override
 
const agx::Constraint * getConstraint (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return a pointer to a Constraint with the given uuid. More...
 
agx::Constraint * getConstraint (const agx::Uuid &uuid, bool recursive=true)
 Find and return a pointer to a Constraint with the given uuid. More...
 
const agx::Constraint * getConstraint (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named Constraint. More...
 
agx::Constraint * getConstraint (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named Constraint. More...
 
template<typename T >
T * getConstraint (const agx::Name &name, bool recursive=true)
 Find and return named Constraint of a template type, for example Hinge: More...
 
template<typename T >
const T * getConstraint (const agx::Name &name, bool recursive=true) const
 Find and return named Constraint of a template type, for example Hinge: More...
 
agx::Constraint1DOF * getConstraint1DOF (const agx::Name &name, bool recursive=true)
 
agx::Constraint2DOF * getConstraint2DOF (const agx::Name &name, bool recursive=true)
 
const agx::ConstraintRefSet & getConstraints () const
 
virtual agx::Real getDampingCoefficient (DeformationMode mode)
 Gets the damping coefficient for a deformation mode. More...
 
const agx::EmitterRefSet & getEmitters () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
virtual agx::Frame * getFrame ()
 Return a reference to the frame containing transformation and velocity information for this assembly. More...
 
virtual const agx::Frame * getFrame () const
 
const agxCollide::GeometryRefSet & getGeometries () const
 
const agxCollide::Geometry * getGeometry (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named collision Geometry. More...
 
agxCollide::Geometry * getGeometry (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named collision Geometry. More...
 
const agxCollide::Geometry * getGeometry (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return a Geometry matching the given uuid. More...
 
agxCollide::Geometry * getGeometry (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return a Geometry matching the given uuid. More...
 
agx::Hinge * getHinge ()
 Gets the hinge (with active Lock1D) connecting the tire to the hub. More...
 
agx::RigidBody * getHubRigidBody ()
 
const agx::RigidBody * getHubRigidBody () const
 
agx::Vec2 getImplicitFrictionMultiplier () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Real getInnerRadius () const
 
const InteractionRefSetVector & getInteractions () const
 
virtual agx::Real getLoadedRadius () const override
 Gets the current loaded radius. More...
 
agx::Vec3 getLocalPosition () const
 
agx::Quat getLocalRotation () const
 
const agx::AffineMatrix4x4 & getLocalTransform () const
 
agx::Name getName () const
 
const agx::ObserverFrame * getObserverFrame (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return an ObserverFrame matching the given uuid. More...
 
agx::ObserverFrame * getObserverFrame (const agx::Name &name, bool recursive=true)
 Find (linear search) and return an ObserverFrame matching the given uuid. More...
 
const agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return an ObserverFrame matching the given uuid. More...
 
agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return an ObserverFrame matching the given uuid. More...
 
const ObserverFrameRefSetVector & getObserverFrames () const
 
agx::Real getOuterRadius () const
 
Assembly * getParent ()
 
const Assembly * getParent () const
 
agx::Frame * getParentFrame ()
 
const agx::Frame * getParentFrame () const
 
const agxSDK::ParticleSystemRefSet & getParticleSystems () const
 
agx::Real getRadius () const
 Gets radius. More...
 
int getReferenceCount () const
 
const agx::Frame * getReferenceFrame () const
 
const agx::RigidBodyRefSet & getRigidBodies () const
 
agx::RigidBody * getRigidBody (const agx::Name &name, bool recursive=true)
 Find (linear search) and return named RigidBody. More...
 
const agx::RigidBody * getRigidBody (const agx::Name &name, bool recursive=true) const
 Find (linear search) and return named RigidBody. More...
 
agx::RigidBody * getRigidBody (const agx::Uuid &uuid, bool recursive=true)
 Find (linear search) and return a pointer to a RigidBody with the given uuid. More...
 
const agx::RigidBody * getRigidBody (const agx::Uuid &uuid, bool recursive=true) const
 Find (linear search) and return a pointer to a RigidBody with the given uuid. More...
 
agxSDK::Simulation * getSimulation ()
 
const agxSDK::Simulation * getSimulation () const
 
virtual agx::Real getStiffness (DeformationMode mode)
 Gets the stiffness for a deformation mode. More...
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::RigidBody * getTireRigidBody ()
 
const agx::RigidBody * getTireRigidBody () const
 
Type getType () const
 
agx::Uuid getUuid () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isFinished () const
 
bool isValid () const
 
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...
 
bool remove (agx::Constraint *constraint)
 Remove a constraint from this assembly (does not recurse down in tree). More...
 
bool remove (agx::Interaction *interaction)
 Remove an interaction from this assembly. More...
 
bool remove (EventListener *listener)
 Remove an EventListener from the assembly. More...
 
bool remove (agx::RigidBody *body, bool removeAssociatedGeometries=false)
 Remove a rigid body from this assembly (does not recurse down in tree). More...
 
bool remove (agxCollide::Geometry *geometry)
 Remove a geometry from this assembly (does not recurse down in tree). More...
 
bool remove (Assembly *assembly)
 Remove a child assembly from a parent. More...
 
bool remove (agx::ContactMaterial *contactMaterial)
 Remove a contact material from this assembly. More...
 
bool remove (agx::Emitter *emitter)
 Remove an emitter from this assembly. More...
 
bool remove (agx::ObserverFrame *observerFrame)
 Remove an ObserverFrame from this assembly. More...
 
virtual void removeNotification (Assembly *)
 Called when this assembly is removed from another assembly. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual void setAngularVelocity (const agx::Vec3 &velocity)
 Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly. More...
 
virtual bool setDampingCoefficient (const agx::Real dampingCoefficient, DeformationMode mode)
 Sets the damping coefficient for a deformation mode. 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 setImplicitFrictionMultiplier (const agx::Vec2 &implicitFrictionMultiplier)
 Set the implicit friction multiplier in order to get different behavior for different friction directions (forwards, sideways). More...
 
void setLocalPosition (const agx::Vec3 &p)
 Set the position of the assembly relative to its frame's parent frame. More...
 
void setLocalPosition (agx::Real x, agx::Real y, agx::Real z)
 Set the position of the assembly relative to its frame's parent frame. More...
 
void setLocalRotation (const agx::Quat &q)
 Set the rotation of the assembly relative to its frame's parent frame. More...
 
void setLocalRotation (const agx::EulerAngles &e)
 Set the rotation of the assembly relative to its frame's parent frame. More...
 
void setLocalTransform (const agx::AffineMatrix4x4 &matrix)
 Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation. More...
 
void setName (const agx::Name &name)
 Set the name of this Assembly. More...
 
bool setParentFrame (agx::Frame *frame)
 Set the parent frame of this assembly's frame. More...
 
void setPosition (const agx::Vec3 &p)
 Set the position of the frame in world coordinates. More...
 
void setPosition (agx::Real x, agx::Real y, agx::Real z)
 Set the position of the frame in world coordinates. More...
 
void setRotation (const agx::Quat &q)
 Set the rotation of the assembly relative to world frame. More...
 
void setRotation (const agx::EulerAngles &e)
 Set the rotation of the assembly relative to world frame. More...
 
void setRotation (const agx::OrthoMatrix3x3 &m)
 Set the rotation of the assembly relative to world frame. More...
 
virtual bool setStiffness (const agx::Real stiffness, DeformationMode mode)
 Sets the stiffness for a deformation mode. More...
 
void setTransform (const agx::AffineMatrix4x4 &matrix)
 Set the transform of the assembly. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void setVelocity (const agx::Vec3 &velocity)
 Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual void traverse (AssemblyVisitor *visitor)
 Traverse the assembly tree recursively using a visitor. More...
 
virtual void traverse (const AssemblyVisitor *visitor) const
 
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...
 

Static Public Member Functions

static Assembly * asAssembly (agxStream::Serializable *obj)
 
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static TwoBodyTire * find (agxSDK::Simulation *simulation, const agx::Name &name)
 Search the given simulation for a TwoBodyTire with the given name. More...
 
static TwoBodyTire * find (agxSDK::Assembly *assembly, const agx::Name &name)
 Search the given assembly for a TwoBodyTire with the given name. More...
 
static TwoBodyTirePtrVector findAll (const agxSDK::Simulation *simulation, const agx::Name &name)
 Find all TwoBodyTires with given name. More...
 
static TwoBodyTirePtrVector findAll (const agxSDK::Simulation *simulation)
 Finds all TwoBodyTire in the given simulation. More...
 
static const char * getConstructClassId ()
 
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)
 

Protected Member Functions

 TwoBodyTire ()
 
virtual ~TwoBodyTire ()
 
virtual void addNotification (agxSDK::Simulation *simulation) override
 Called when this assembly is added to a simulation (given that it not already is in the simulation). More...
 
bool addParticleSystem (agx::ParticleSystem *particleSystem)
 Add a particle system to this assembly. More...
 
void addToSimulation (Simulation *simulation)
 
void allocateObserverVector () const
 
agxSDK::ContactEventListener::KeepContactPolicy contact (const agx::TimeStamp &, agxCollide::GeometryContact *gc)
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
agx::Vec3 getTireAxisWorld () const
 
agx::Vec3 getTireCenterWorld () const
 
agxSDK::ContactEventListener::KeepContactPolicy handleContacts (const agx::TimeStamp &, agxCollide::GeometryContact *gc)
 
agxSDK::ContactEventListener::KeepContactPolicy impact (const agx::TimeStamp &, agxCollide::GeometryContact *gc)
 
void initBodies (agx::Real outerRadius, agx::Real innerRadius)
 
virtual void last (const agx::TimeStamp &)
 
virtual void post (const agx::TimeStamp &)
 
virtual void pre (const agx::TimeStamp &)
 
virtual void preCollide (const agx::TimeStamp &)
 
void reduceContacts (agxCollide::LocalGeometryContact &gc)
 
void removeFromSimulation (Simulation *simulation)
 
virtual void removeNotification (agxSDK::Simulation *simulation) override
 Called when this assembly is removed from a simulation. More...
 
bool removeParticleSystem (agx::ParticleSystem *particleSystem)
 Remove a particle system from this assembly. More...
 
void separation (const agx::TimeStamp &, agxCollide::GeometryPair &)
 
virtual void updateValid ()
 

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...
 

Protected Attributes

agx::UInt32 m_collisionGroup
 
agx::ref_ptr< agxUtil::GeneralContactEventListener< TwoBodyTire > > m_contactCallback
 
agx::Vector< agx::ContactMaterialRef > m_contactMaterials
 
agx::Vector< agxCollide::LocalGeometryContact > m_contacts
 
agx::HingeRef m_hinge
 
agx::RigidBodyObserver m_hubBody
 
agx::Vec2 m_implicitFrictionMultiplier
 
agx::Real m_innerRadius
 
agx::Real m_loadedRadius
 
Mutex m_mutex
 
agx::Real m_radius
 
AtomicValue m_refCount
 
agx::FrameRef m_refFrame
 
agx::ref_ptr< agxUtil::GeneralStepListener< TwoBodyTire > > m_stepCallback
 
agx::RigidBodyObserver m_tireBody
 
bool m_valid
 

Detailed Description

Note
: This is an experimental feature, not fully tested yet.

A simple tire model with two rigid bodies - the hub and the tire. To model any deformation/elastic behavior, the joint settings between hub and tire are being modified.

Notes on stiffness and damping:

There are four internal deformation modes for the tire which can be expressed via its constraint: Radial stiffness/damping affects translation orthogonal to tire rotation axis. Lateral stiffness/damping affects translation in axis of rotation. Bending stiffness/damping affects rotation orthogonal to axis of rotation. Torsional stiffness/damping affects rotation in axis of rotation.

The unit for translational stiffness is force/displacement (if using SI: N/m) The unit for rotational stiffness is torque/angular displacement (if using SI: Nm/rad) The unit for the translational damping coefficient is force * time/displacement (if using SI: Ns/m) The unit for the rotational damping coefficient is torque * time/angular displacement (if using SI: Nms/rad)

Implementation-details: 1.) stiffness and damping coefficient are set directly on the constraint when using the setStiffness and setDampingCoefficient methods. Since the agx-internal damping is based on stiffness (or rather, compliance) as well, setStiffness will have an effect on the result of getDampingCoefficient. (The constraint can also directly be worked with via getHinge

  • if setting values there, getStiffness and getDampingCoefficient might not work as expected.) 2.) The tire will copy a GeometryContacts' ContactMaterial and modify the copy to apply special tire friction. This is done both for implicit and explicit ContactMaterials. Both are queried for via MaterialManager (internal materials will be ignored).

Definition at line 144 of file TwoBodyTire.h.

Member Enumeration Documentation

◆ DeformationMode

Enumerator
RADIAL 
LATERAL 
BENDING 
TORSIONAL 

Definition at line 164 of file TwoBodyTire.h.

◆ Type

enum agxSDK::Assembly::Type
inherited

Specifies the type an assembly is.

Enumerator
ASSEMBLY 

This is a full fledged Assembly which uses Frame for the hierarchy.

COLLECTION 

This is only a collection of objects NOT using Frame for the hierarchy.

Definition at line 615 of file Assembly.h.

Constructor & Destructor Documentation

◆ TwoBodyTire() [1/2]

agxModel::TwoBodyTire::TwoBodyTire ( agx::RigidBody *  tireBody,
agx::Real  outerRadius,
agx::RigidBody *  hubBody,
agx::Real  innerRadius,
const agx::AffineMatrix4x4 &  localTransform = agx::AffineMatrix4x4() 
)

Construct tire given rigid body (with wheel geometry/geometries) and radius.

By definition tire axis is assumed to be y direction in body coordinates. This is also the secondary friction direction. Contacts between the tireBody and the hingeBody will be disabled.

Parameters
tireBody- rigid body of this tire (including geometries)
outerRadius- radius of this tire
hubBody- rigid body that the tire is fixed upon (including geometries)
innerRadius- inner radius of the tire (and outer radius of hub)
localTransform- local transform for hinge and friction directions, local in tireBody's coordinate system. Expects rotation axis to be in Y-axis.

◆ TwoBodyTire() [2/2]

agxModel::TwoBodyTire::TwoBodyTire ( )
protected

◆ ~TwoBodyTire()

virtual agxModel::TwoBodyTire::~TwoBodyTire ( )
protectedvirtual

Member Function Documentation

◆ add() [1/10]

bool agxSDK::Assembly::add ( agx::Constraint *  constraint)
inherited

Add a constraint to the assembly.

Returns
true when the constraint has been successfully added - otherwise false (constraint is nullptr or already present in this assembly)

◆ add() [2/10]

bool agxSDK::Assembly::add ( agx::Interaction *  interaction)
inherited

Add an interaction to this assembly.

Returns
true when the interaction has been successfully added - otherwise false (interaction is nullptr or already present in this assembly)

◆ add() [3/10]

bool agxSDK::Assembly::add ( agxSDK::EventListener *  listener)
inherited

Add a listener to the assembly.

Returns
true when the listener has been successfully added - otherwise false (listener is nullptr or already present in this assembly)

◆ add() [4/10]

bool agxSDK::Assembly::add ( agx::RigidBody *  body)
inherited

Add a rigid body to the assembly.

Returns
true when the rigid body has been successfully added - otherwise false (the rigid body is nullptr or already present in this assembly)

◆ add() [5/10]

bool agxSDK::Assembly::add ( agxCollide::Geometry *  geometry)
inherited

Add a geometry to the assembly.

Returns
true when the geometry has been successfully added - otherwise false (the geometry is nullptr or already present in this assembly)

◆ add() [6/10]

bool agxSDK::Assembly::add ( Assembly *  assembly)
inherited

Add another assembly as child to this assembly.

Returns
true when the assembly has been successfully added - otherwise false (the assembly is nullptr or already present in this assembly)

◆ add() [7/10]

bool agxSDK::Assembly::add ( agx::ContactMaterial *  contactMaterial)
inherited

Add a contact material to this assembly.

Returns
true when the contact material has been successfully added - otherwise false (the contact material is nullptr or already present in this assembly)

◆ add() [8/10]

bool agxSDK::Assembly::add ( agx::Emitter *  emitter)
inherited

Add an emitter to this assembly.

Returns
true when the emitter has been successfully added - otherwise false (the emitter is nullptr or already present in this assembly)

◆ add() [9/10]

bool agxSDK::Assembly::add ( agx::ObserverFrame *  observerFrame)
inherited

Add an ObserverFrame to this assembly.

Returns
true when the observer frame has been successfully added - otherwise false (the observer frame is nullptr or already present in this assembly)

◆ add() [10/10]

bool agxSDK::Assembly::add ( agxStream::Serializable *  object)
inherited

Add an object of type serialized.

The object will be dynamically cast to the types supported by add() methods an appropriately added to this Assembly.

Returns
true when the object has been successfully added - otherwise false (the object is nullptr or already present in this assembly)

◆ addNotification() [1/2]

virtual void agxModel::TwoBodyTire::addNotification ( agxSDK::Simulation *  )
overrideprotectedvirtual

Called when this assembly is added to a simulation (given that it not already is in the simulation).

Reimplemented from agxSDK::Assembly.

Reimplemented in agxModel::ThreeBodyTire.

◆ addNotification() [2/2]

virtual void agxSDK::Assembly::addNotification ( Assembly *  )
inlinevirtualinherited

Called when this assembly is added to another assembly.

Reimplemented in agxPowerLine::PowerLine.

Definition at line 589 of file Assembly.h.

◆ addParticleSystem()

bool agxSDK::Assembly::addParticleSystem ( agx::ParticleSystem *  particleSystem)
protectedinherited

Add a particle system to this assembly.

ParticleSystems should only be added to Collections.

◆ addToSimulation()

void agxSDK::Assembly::addToSimulation ( Simulation *  simulation)
protectedinherited

◆ allocateObserverVector()

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited

◆ as() [1/2]

template<typename T >
T* agx::Referenced::as ( )
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().

◆ as() [2/2]

template<typename T >
const T* agx::Referenced::as ( ) const
inherited

◆ asAssembly()

static Assembly* agxSDK::Assembly::asAssembly ( agxStream::Serializable *  obj)
inlinestaticinherited
Returns
a pointer to an Assembly if obj is infact an Assembly

Definition at line 636 of file Assembly.h.

◆ asSafe() [1/2]

template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ asSafe() [2/2]

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited

◆ contact()

agxSDK::ContactEventListener::KeepContactPolicy agxModel::TwoBodyTire::contact ( const agx::TimeStamp &  ,
agxCollide::GeometryContact *  gc 
)
protected

◆ create() [1/2]

static agxStream::Serializable* agxModel::TwoBodyTire::create ( )
inlinestatic

Definition at line 306 of file TwoBodyTire.h.

◆ create() [2/2]

static agxStream::Serializable* agxModel::TwoBodyTire::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 306 of file TwoBodyTire.h.

◆ deleteUsingDeleteHandler()

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited

◆ find() [1/2]

static TwoBodyTire* agxModel::TwoBodyTire::find ( agxSDK::Simulation *  simulation,
const agx::Name &  name 
)
static

Search the given simulation for a TwoBodyTire with the given name.

Parameters
simulation- The simulation to search in.
name- The name of the TwoBodyTire to search for.
Returns
A TwoBodyTire with name name in simulation simulation, or nullptr.

◆ find() [2/2]

static TwoBodyTire* agxModel::TwoBodyTire::find ( agxSDK::Assembly *  assembly,
const agx::Name &  name 
)
static

Search the given assembly for a TwoBodyTire with the given name.

Parameters
assembly- The assembly to search in.
name- The name of the TwoBodyTire to search for.
Returns
A TwoBodyTire with name name in assembly assembly, or nullptr.

◆ findAll() [1/2]

static TwoBodyTirePtrVector agxModel::TwoBodyTire::findAll ( const agxSDK::Simulation *  simulation,
const agx::Name &  name 
)
static

Find all TwoBodyTires with given name.

Parameters
simulation- simulation the tire is part of
name- name of the TwoBodyTire
Returns
vector of TwoBodyTire

◆ findAll() [2/2]

static TwoBodyTirePtrVector agxModel::TwoBodyTire::findAll ( const agxSDK::Simulation *  simulation)
static

Finds all TwoBodyTire in the given simulation.

Parameters
simulation- simulation with TwoBodyTire.
Returns
vector of TwoBodyTire

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getAssemblies()

const AssemblyRefSet& agxSDK::Assembly::getAssemblies ( ) const
inherited
Returns
a const reference to the Assemblies in this Assembly (not tracing recursively into sub-assemblies)

◆ getAssembly() [1/4]

const agxSDK::Assembly* agxSDK::Assembly::getAssembly ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find (linear search) and return named Assembly.

Parameters
name- name of the Assembly to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [2/4]

agxSDK::Assembly* agxSDK::Assembly::getAssembly ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find (linear search) and return named Assembly.

Parameters
name- name of the Assembly to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [3/4]

const agxSDK::Assembly* agxSDK::Assembly::getAssembly ( const agx::Uuid &  uuid,
bool  recursive = true 
) const
inherited

Find (linear search) and return an Assembly matching the given uuid.

Parameters
uuid- uuid of the Assembly to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [4/4]

agxSDK::Assembly* agxSDK::Assembly::getAssembly ( const agx::Uuid &  uuid,
bool  recursive = true 
)
inherited

Find (linear search) and return an Assembly matching the given uuid.

Parameters
uuid- uuid of the Assembly to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Assembly, null if not found

◆ getClassName()

const char* agxModel::TwoBodyTire::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 306 of file TwoBodyTire.h.

◆ getConstraint() [1/6]

const agx::Constraint* agxSDK::Assembly::getConstraint ( const agx::Uuid &  uuid,
bool  recursive = true 
) const
inherited

Find (linear search) and return a pointer to a Constraint with the given uuid.

Parameters
uuid- uuid of the requested constraint
recursive- if true (default) the search will include sub-assemblies
Returns
const pointer to the found constraint, null if not found

◆ getConstraint() [2/6]

agx::Constraint* agxSDK::Assembly::getConstraint ( const agx::Uuid &  uuid,
bool  recursive = true 
)
inherited

Find and return a pointer to a Constraint with the given uuid.

Parameters
uuid- uuid of the requested constraint
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [3/6]

const agx::Constraint* agxSDK::Assembly::getConstraint ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find (linear search) and return named Constraint.

Parameters
name- name of the Constraint to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [4/6]

agx::Constraint* agxSDK::Assembly::getConstraint ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find (linear search) and return named Constraint.

Parameters
name- name of the Constraint to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [5/6]

template<typename T >
T * agxSDK::Assembly::getConstraint ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find and return named Constraint of a template type, for example Hinge:

agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");

Parameters
name- name of the Constraint to find
recursive- if true (default) the search will include sub-assemblies
Returns
typed pointer to the found Constraint, null if not found

Definition at line 757 of file Assembly.h.

◆ getConstraint() [6/6]

template<typename T >
const T * agxSDK::Assembly::getConstraint ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find and return named Constraint of a template type, for example Hinge:

const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");

Parameters
name- name of the Constraint to find
recursive- if true (default) the search will include sub-assemblies
Returns
typed pointer to the found Constraint, null if not found

Definition at line 763 of file Assembly.h.

◆ getConstraint1DOF()

agx::Constraint1DOF* agxSDK::Assembly::getConstraint1DOF ( const agx::Name &  name,
bool  recursive = true 
)
inlineinherited

Definition at line 632 of file Assembly.h.

◆ getConstraint2DOF()

agx::Constraint2DOF* agxSDK::Assembly::getConstraint2DOF ( const agx::Name &  name,
bool  recursive = true 
)
inlineinherited

Definition at line 633 of file Assembly.h.

◆ getConstraints()

const agx::ConstraintRefSet& agxSDK::Assembly::getConstraints ( ) const
inherited
Returns
a const reference to the Constraints in this Assembly (not tracing recursively into sub-assemblies)

◆ getConstructClassId()

static const char* agxModel::TwoBodyTire::getConstructClassId ( )
inlinestatic

Definition at line 306 of file TwoBodyTire.h.

◆ getDampingCoefficient()

virtual agx::Real agxModel::TwoBodyTire::getDampingCoefficient ( DeformationMode  mode)
virtual

Gets the damping coefficient for a deformation mode.

Parameters
modeThe deformation mode.
Return values
Thedamping Coefficient. 0 if invalid mode.
Note
see comments in class definition about stiffness and damping.

Reimplemented in agxModel::ThreeBodyTire.

◆ getDeleteHandler()

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.

◆ getEmitters()

const agx::EmitterRefSet& agxSDK::Assembly::getEmitters ( ) const
inherited
Returns
a const reference to the Emitters in this Assembly (not tracing recursively into sub-assemblies)

◆ getEnableSerialization()

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

◆ getEnableUuidGeneration()

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object

◆ getFrame() [1/2]

agx::Frame * agxSDK::Assembly::getFrame ( )
inlinevirtualinherited

Return a reference to the frame containing transformation and velocity information for this assembly.

Definition at line 690 of file Assembly.h.

◆ getFrame() [2/2]

const agx::Frame * agxSDK::Assembly::getFrame ( ) const
inlinevirtualinherited

Definition at line 695 of file Assembly.h.

◆ getGeometries()

const agxCollide::GeometryRefSet& agxSDK::Assembly::getGeometries ( ) const
inherited
Returns
a const reference to the Geometries in this Assembly (not tracing recursively into sub-assemblies)

Referenced by agxSDK::matchFilter().

◆ getGeometry() [1/4]

const agxCollide::Geometry* agxSDK::Assembly::getGeometry ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find (linear search) and return named collision Geometry.

Parameters
name- name of the collision Geometry to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [2/4]

agxCollide::Geometry* agxSDK::Assembly::getGeometry ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find (linear search) and return named collision Geometry.

Parameters
name- name of the collision Geometry to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [3/4]

const agxCollide::Geometry* agxSDK::Assembly::getGeometry ( const agx::Uuid &  uuid,
bool  recursive = true 
) const
inherited

Find (linear search) and return a Geometry matching the given uuid.

Parameters
uuid- uuid of the collision Geometry to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [4/4]

agxCollide::Geometry* agxSDK::Assembly::getGeometry ( const agx::Uuid &  uuid,
bool  recursive = true 
)
inherited

Find (linear search) and return a Geometry matching the given uuid.

Parameters
uuid- uuid of the collision Geometry to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found collision Geometry, null if not found

◆ getHinge()

agx::Hinge* agxModel::TwoBodyTire::getHinge ( )

Gets the hinge (with active Lock1D) connecting the tire to the hub.

This setup is an implementation detail, and might change in future versions of AGX. Having direct control over the hinge can be helpful in order to change fine-grained options such as compliance and damping. Use with care.

Return values
Thehinge between tire and hub. 0 if isValid is false.

◆ getHubRigidBody() [1/2]

agx::RigidBody* agxModel::TwoBodyTire::getHubRigidBody ( )
Returns
the rigid body of the hub.

◆ getHubRigidBody() [2/2]

const agx::RigidBody* agxModel::TwoBodyTire::getHubRigidBody ( ) const
Returns
the rigid body of the hub.

◆ getImplicitFrictionMultiplier()

agx::Vec2 agxModel::TwoBodyTire::getImplicitFrictionMultiplier ( ) const
Returns
The friction multiplier (for friction different directions). See setImplicitFrictionMultiplier for more details.

◆ getIndex()

agx::UInt32 agxStream::Serializable::getIndex ( ) const
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.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

◆ getInnerRadius()

agx::Real agxModel::TwoBodyTire::getInnerRadius ( ) const
Returns
The inner radius of the tire (and outer of the hub).

◆ getInteractions()

const InteractionRefSetVector& agxSDK::Assembly::getInteractions ( ) const
inherited
Returns
interactions in this assembly (not tracing recursively into sub-assemblies)

◆ getLoadedRadius()

virtual agx::Real agxModel::TwoBodyTire::getLoadedRadius ( ) const
overridevirtual

Gets the current loaded radius.

Recomputed in POST_STEP. Usually, loaded radius is defined per contact. Since the tire can interact with several contacts and be influenced by other forces, it is defined as the distance between the hub center and the tire center instead in the TwoBodyTire-model.

Reimplemented from agxModel::Tire.

◆ getLocalPosition()

agx::Vec3 agxSDK::Assembly::getLocalPosition ( ) const
inherited
Returns
- the relative translate to the parent frame of the assembly's frame.

◆ getLocalRotation()

agx::Quat agxSDK::Assembly::getLocalRotation ( ) const
inherited
Returns
- the assembly's rotation relative to its frame's parent frame.

◆ getLocalTransform()

const agx::AffineMatrix4x4& agxSDK::Assembly::getLocalTransform ( ) const
inherited
Returns
- the local transformation matrix of the assembly's frame, relative to the parent's frame.

◆ getName()

agx::Name agxSDK::Assembly::getName ( ) const
inherited
Returns
the name of this Assembly

◆ getObserverFrame() [1/4]

const agx::ObserverFrame* agxSDK::Assembly::getObserverFrame ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find (linear search) and return an ObserverFrame matching the given uuid.

Parameters
name- name of the ObserverFrame to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserverFrame() [2/4]

agx::ObserverFrame* agxSDK::Assembly::getObserverFrame ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find (linear search) and return an ObserverFrame matching the given uuid.

Parameters
name- name of the ObserverFrame to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserverFrame() [3/4]

const agx::ObserverFrame* agxSDK::Assembly::getObserverFrame ( const agx::Uuid &  uuid,
bool  recursive = true 
) const
inherited

Find (linear search) and return an ObserverFrame matching the given uuid.

Parameters
uuid- uuid of the ObserverFrame to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserverFrame() [4/4]

agx::ObserverFrame* agxSDK::Assembly::getObserverFrame ( const agx::Uuid &  uuid,
bool  recursive = true 
)
inherited

Find (linear search) and return an ObserverFrame matching the given uuid.

Parameters
uuid- uuid of the ObserverFrame to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserverFrames()

const ObserverFrameRefSetVector& agxSDK::Assembly::getObserverFrames ( ) const
inherited
Returns
observers in this assembly (not tracing recursively into sub-assemblies)

◆ getOuterRadius()

agx::Real agxModel::TwoBodyTire::getOuterRadius ( ) const
Returns
The outer radius of the tire. Identical to getRadius().

◆ getParent() [1/2]

Assembly* agxSDK::Assembly::getParent ( )
inherited
Returns
the parent assembly if this assembly is part of another assembly.

◆ getParent() [2/2]

const Assembly* agxSDK::Assembly::getParent ( ) const
inherited
Returns
the parent assembly if this assembly is part of another assembly.

◆ getParentFrame() [1/2]

agx::Frame* agxSDK::Assembly::getParentFrame ( )
inherited
Returns
- the parent frame of the assembly's frame, or 0 if this frame has no parent

◆ getParentFrame() [2/2]

const agx::Frame* agxSDK::Assembly::getParentFrame ( ) const
inherited
Returns
- the parent frame of the assembly's frame, or 0 if this frame has no parent

◆ getParticleSystems()

const agxSDK::ParticleSystemRefSet& agxSDK::Assembly::getParticleSystems ( ) const
inherited
Returns
a const reference to the ParticleSystems in this Assembly (not tracing recursively into sub-assemblies)

◆ getRadius()

agx::Real agxModel::Tire::getRadius ( ) const
inherited

Gets radius.

◆ getReferenceCount()

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.

◆ getReferenceFrame()

const agx::Frame* agxModel::TwoBodyTire::getReferenceFrame ( ) const
Returns
the reference frame for friction directions.

◆ getRigidBodies()

const agx::RigidBodyRefSet& agxSDK::Assembly::getRigidBodies ( ) const
inherited
Returns
a const reference to the RigidBodies in this Assembly (not tracing recursively into sub-assemblies)

◆ getRigidBody() [1/4]

agx::RigidBody* agxSDK::Assembly::getRigidBody ( const agx::Name &  name,
bool  recursive = true 
)
inherited

Find (linear search) and return named RigidBody.

Parameters
name- name of the body to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found RigidBody body, null if not found

◆ getRigidBody() [2/4]

const agx::RigidBody* agxSDK::Assembly::getRigidBody ( const agx::Name &  name,
bool  recursive = true 
) const
inherited

Find (linear search) and return named RigidBody.

Parameters
name- name of the body to find
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found RigidBody body, null if not found

◆ getRigidBody() [3/4]

agx::RigidBody* agxSDK::Assembly::getRigidBody ( const agx::Uuid &  uuid,
bool  recursive = true 
)
inherited

Find (linear search) and return a pointer to a RigidBody with the given uuid.

Parameters
uuid- uuid of the requested rigidbody
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found RigidBody, null if not found

◆ getRigidBody() [4/4]

const agx::RigidBody* agxSDK::Assembly::getRigidBody ( const agx::Uuid &  uuid,
bool  recursive = true 
) const
inherited

Find (linear search) and return a pointer to a RigidBody with the given uuid.

Parameters
uuid- uuid of the requested rigidbody
recursive- if true (default) the search will include sub-assemblies
Returns
pointer to the found RigidBody, null if not found

◆ getSimulation() [1/2]

agxSDK::Simulation* agxSDK::Assembly::getSimulation ( )
inherited
Returns
the simulation this assembly is added to. nullptr if none.

◆ getSimulation() [2/2]

const agxSDK::Simulation* agxSDK::Assembly::getSimulation ( ) const
inherited
Returns
the simulation this assembly is added to. nullptr if none.

◆ getStiffness()

virtual agx::Real agxModel::TwoBodyTire::getStiffness ( DeformationMode  mode)
virtual

Gets the stiffness for a deformation mode.

Parameters
modeThe deformation mode.
Return values
Thestiffness. 0 if invalid mode.
Note
see comments in class definition about stiffness and damping.

Reimplemented in agxModel::ThreeBodyTire.

◆ getStorageAgent()

agxStream::StorageAgent* agxModel::TwoBodyTire::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 306 of file TwoBodyTire.h.

◆ getTireAxisWorld()

agx::Vec3 agxModel::TwoBodyTire::getTireAxisWorld ( ) const
protected

◆ getTireCenterWorld()

agx::Vec3 agxModel::TwoBodyTire::getTireCenterWorld ( ) const
protected

◆ getTireRigidBody() [1/2]

agx::RigidBody* agxModel::TwoBodyTire::getTireRigidBody ( )
Returns
the rigid body of the tire.

◆ getTireRigidBody() [2/2]

const agx::RigidBody* agxModel::TwoBodyTire::getTireRigidBody ( ) const
Returns
the rigid body of the tire.

◆ getType()

Type agxSDK::Assembly::getType ( ) const
inherited
Returns
the type of this Assembly/Collection

◆ getUuid()

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

Referenced by agxSDK::UuidHashCollisionFilter::match().

◆ handleContacts()

agxSDK::ContactEventListener::KeepContactPolicy agxModel::TwoBodyTire::handleContacts ( const agx::TimeStamp &  ,
agxCollide::GeometryContact *  gc 
)
protected

◆ impact()

agxSDK::ContactEventListener::KeepContactPolicy agxModel::TwoBodyTire::impact ( const agx::TimeStamp &  ,
agxCollide::GeometryContact *  gc 
)
protected

◆ initBodies()

void agxModel::TwoBodyTire::initBodies ( agx::Real  outerRadius,
agx::Real  innerRadius 
)
protected

◆ is()

template<typename T >
bool agx::Referenced::is ( ) const
inherited

◆ isFinished()

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

References AGX_FORCE_INLINE.

◆ isValid()

bool agxModel::TwoBodyTire::isValid ( ) const
Returns
Is the tire valid?

◆ last()

virtual void agxModel::TwoBodyTire::last ( const agx::TimeStamp &  )
protectedvirtual

◆ post()

virtual void agxModel::TwoBodyTire::post ( const agx::TimeStamp &  )
protectedvirtual

Reimplemented in agxModel::ThreeBodyTire.

◆ pre()

virtual void agxModel::TwoBodyTire::pre ( const agx::TimeStamp &  )
protectedvirtual

◆ preCollide()

virtual void agxModel::TwoBodyTire::preCollide ( const agx::TimeStamp &  )
protectedvirtual

◆ reduceContacts()

void agxModel::TwoBodyTire::reduceContacts ( agxCollide::LocalGeometryContact &  gc)
protected

◆ reference()

void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

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.

◆ remove() [1/9]

bool agxSDK::Assembly::remove ( agx::Constraint *  constraint)
inherited

Remove a constraint from this assembly (does not recurse down in tree).

Returns
true when the constraint has been successfully removed - otherwise false (constraint is nullptr or not in this assembly)

◆ remove() [2/9]

bool agxSDK::Assembly::remove ( agx::Interaction *  interaction)
inherited

Remove an interaction from this assembly.

Returns
true when the interaction has been successfully removed - otherwise false (interaction is nullptr or not in this assembly)

◆ remove() [3/9]

bool agxSDK::Assembly::remove ( EventListener *  listener)
inherited

Remove an EventListener from the assembly.

Returns
true when the listener has been successfully removed - otherwise false (listener is nullptr or not in this assembly)

◆ remove() [4/9]

bool agxSDK::Assembly::remove ( agx::RigidBody *  body,
bool  removeAssociatedGeometries = false 
)
inherited

Remove a rigid body from this assembly (does not recurse down in tree).

Parameters
body- The body to be removed
removeAssociatedGeometries- If true, the geometries associated to this body will also be removed
Returns
true if the body been successfully removed

◆ remove() [5/9]

bool agxSDK::Assembly::remove ( agxCollide::Geometry *  geometry)
inherited

Remove a geometry from this assembly (does not recurse down in tree).

Returns
true when the geometry has been successfully removed - otherwise false (geometry is nullptr or not in this assembly)

◆ remove() [6/9]

bool agxSDK::Assembly::remove ( Assembly *  assembly)
inherited

Remove a child assembly from a parent.

Returns
true when the assembly has been successfully removed - otherwise false (assembly is nullptr or not in this assembly)

◆ remove() [7/9]

bool agxSDK::Assembly::remove ( agx::ContactMaterial *  contactMaterial)
inherited

Remove a contact material from this assembly.

Returns
true when the contact material has been successfully removed - otherwise false (contact material is nullptr or not in this assembly)

◆ remove() [8/9]

bool agxSDK::Assembly::remove ( agx::Emitter *  emitter)
inherited

Remove an emitter from this assembly.

Returns
true when the emitter has been successfully removed - otherwise false (emitter is nullptr or not in this assembly)

◆ remove() [9/9]

bool agxSDK::Assembly::remove ( agx::ObserverFrame *  observerFrame)
inherited

Remove an ObserverFrame from this assembly.

Returns
true when the observer frame has been successfully removed - otherwise false (observer frame is nullptr or not in this assembly)

◆ removeFromSimulation()

void agxSDK::Assembly::removeFromSimulation ( Simulation *  simulation)
protectedinherited

◆ removeNotification() [1/2]

virtual void agxModel::TwoBodyTire::removeNotification ( agxSDK::Simulation *  )
overrideprotectedvirtual

Called when this assembly is removed from a simulation.

Reimplemented from agxSDK::Assembly.

Reimplemented in agxModel::ThreeBodyTire.

◆ removeNotification() [2/2]

virtual void agxSDK::Assembly::removeNotification ( Assembly *  )
inlinevirtualinherited

Called when this assembly is removed from another assembly.

Reimplemented in agxPowerLine::PowerLine.

Definition at line 594 of file Assembly.h.

◆ removeParticleSystem()

bool agxSDK::Assembly::removeParticleSystem ( agx::ParticleSystem *  particleSystem)
protectedinherited

Remove a particle system from this assembly.

◆ restore()

virtual void agxModel::TwoBodyTire::restore ( agxStream::InputArchive &  in)
overridevirtual

Reimplemented from agxSDK::Assembly.

Reimplemented in agxModel::ThreeBodyTire.

◆ separation()

void agxModel::TwoBodyTire::separation ( const agx::TimeStamp &  ,
agxCollide::GeometryPair &   
)
protected

◆ setAngularVelocity()

virtual void agxSDK::Assembly::setAngularVelocity ( const agx::Vec3 &  velocity)
virtualinherited

Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly.

Parameters
velocity- The angular velocity in world frame that will be set for all rigid bodies.

◆ setDampingCoefficient()

virtual bool agxModel::TwoBodyTire::setDampingCoefficient ( const agx::Real  dampingCoefficient,
DeformationMode  mode 
)
virtual

Sets the damping coefficient for a deformation mode.

Parameters
dampingCoefficientThe damping Coefficient.
modeThe deformation mode.
Return values
Trueif setting was successful.
Note
see comments in class definition about stiffness and damping.

Reimplemented in agxModel::ThreeBodyTire.

◆ setDeleteHandler()

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

◆ setEnableSerialization()

void agxStream::Serializable::setEnableSerialization ( bool  flag)
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.

◆ setEnableUuidGeneration()

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

◆ setFinished()

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

◆ setImplicitFrictionMultiplier()

void agxModel::TwoBodyTire::setImplicitFrictionMultiplier ( const agx::Vec2 &  implicitFrictionMultiplier)

Set the implicit friction multiplier in order to get different behavior for different friction directions (forwards, sideways).

This is only necessary for implicit contact materials, since for explicit ones, this can be set directly at the contact material instead.

◆ setLocalPosition() [1/2]

void agxSDK::Assembly::setLocalPosition ( const agx::Vec3 &  p)
inherited

Set the position of the assembly relative to its frame's parent frame.

Parameters
p- local translate of assembly as a 3D vector

◆ setLocalPosition() [2/2]

void agxSDK::Assembly::setLocalPosition ( agx::Real  x,
agx::Real  y,
agx::Real  z 
)
inherited

Set the position of the assembly relative to its frame's parent frame.

Parameters
x- local x translate
y- local y translate
z- local z translate

◆ setLocalRotation() [1/2]

void agxSDK::Assembly::setLocalRotation ( const agx::Quat &  q)
inherited

Set the rotation of the assembly relative to its frame's parent frame.

Parameters
q- rotation given as a quaternion

◆ setLocalRotation() [2/2]

void agxSDK::Assembly::setLocalRotation ( const agx::EulerAngles &  e)
inherited

Set the rotation of the assembly relative to its frame's parent frame.

Parameters
e- rotation given as Euler angles

◆ setLocalTransform()

void agxSDK::Assembly::setLocalTransform ( const agx::AffineMatrix4x4 &  matrix)
inherited

Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation.

Parameters
matrix- transformation matrix relative to parent transform for the assembly's frame

◆ setName()

void agxSDK::Assembly::setName ( const agx::Name &  name)
inherited

Set the name of this Assembly.

Parameters
name- new name of this Assembly.

◆ setParentFrame()

bool agxSDK::Assembly::setParentFrame ( agx::Frame *  frame)
inherited

Set the parent frame of this assembly's frame.

This means that getLocalTranslate, getLocalRotate, getLocalTransform will be given in the parents coordinate frame. I.e., this frame's transformation will be concatenated with the parents.

Parameters
frame- new parent frame, 0 to remove parent
Returns
true if parent is changed (not the same as before) - otherwise false

◆ setPosition() [1/2]

void agxSDK::Assembly::setPosition ( const agx::Vec3 &  p)
inherited

Set the position of the frame in world coordinates.

Parameters
p- desired position in world coordinates.

◆ setPosition() [2/2]

void agxSDK::Assembly::setPosition ( agx::Real  x,
agx::Real  y,
agx::Real  z 
)
inherited

Set the position of the frame in world coordinates.

Parameters
x- desired x-coordinate in world frame
y- desired y-coordinate in world frame
z- desired z-coordinate in world frame

◆ setRotation() [1/3]

void agxSDK::Assembly::setRotation ( const agx::Quat &  q)
inherited

Set the rotation of the assembly relative to world frame.

Parameters
q- rotation given as a quaternion

◆ setRotation() [2/3]

void agxSDK::Assembly::setRotation ( const agx::EulerAngles &  e)
inherited

Set the rotation of the assembly relative to world frame.

Parameters
e- rotation given as Euler angles

◆ setRotation() [3/3]

void agxSDK::Assembly::setRotation ( const agx::OrthoMatrix3x3 &  m)
inherited

Set the rotation of the assembly relative to world frame.

Parameters
m- rotation given as an orthogonal transformation matrix

◆ setStiffness()

virtual bool agxModel::TwoBodyTire::setStiffness ( const agx::Real  stiffness,
DeformationMode  mode 
)
virtual

Sets the stiffness for a deformation mode.

Parameters
stiffnessThe stiffness.
modeThe deformation mode.
Return values
Trueif setting was successful.
Note
see comments in class definition about stiffness and damping.

Reimplemented in agxModel::ThreeBodyTire.

◆ setTransform()

void agxSDK::Assembly::setTransform ( const agx::AffineMatrix4x4 &  matrix)
inherited

Set the transform of the assembly.

Its frame will move to the specified transform, which is given in world coordinates.

Parameters
matrix- desired transform for the frame in world coordinates.

◆ setUuid()

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

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!

◆ setVelocity()

virtual void agxSDK::Assembly::setVelocity ( const agx::Vec3 &  velocity)
virtualinherited

Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly.

Parameters
velocity- The linear velocity in world frame that will be set for all rigid bodies.

◆ store()

virtual void agxModel::TwoBodyTire::store ( agxStream::OutputArchive &  out) const
overridevirtual

Reimplemented from agxSDK::Assembly.

Reimplemented in agxModel::ThreeBodyTire.

◆ traverse() [1/2]

virtual void agxSDK::Assembly::traverse ( AssemblyVisitor *  visitor)
virtualinherited

Traverse the assembly tree recursively using a visitor.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ traverse() [2/2]

virtual void agxSDK::Assembly::traverse ( const AssemblyVisitor *  visitor) const
virtualinherited

◆ unreference()

void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

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().

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
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.

◆ updateValid()

virtual void agxModel::TwoBodyTire::updateValid ( )
protectedvirtual

Reimplemented in agxModel::ThreeBodyTire.

◆ ValidateCast()

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

Member Data Documentation

◆ m_collisionGroup

agx::UInt32 agxModel::TwoBodyTire::m_collisionGroup
protected

Definition at line 367 of file TwoBodyTire.h.

◆ m_contactCallback

agx::ref_ptr< agxUtil::GeneralContactEventListener< TwoBodyTire > > agxModel::TwoBodyTire::m_contactCallback
protected

Definition at line 368 of file TwoBodyTire.h.

◆ m_contactMaterials

agx::Vector<agx::ContactMaterialRef> agxModel::TwoBodyTire::m_contactMaterials
protected

Definition at line 372 of file TwoBodyTire.h.

◆ m_contacts

agx::Vector<agxCollide::LocalGeometryContact> agxModel::TwoBodyTire::m_contacts
protected

Definition at line 371 of file TwoBodyTire.h.

◆ m_hinge

agx::HingeRef agxModel::TwoBodyTire::m_hinge
protected

Definition at line 362 of file TwoBodyTire.h.

◆ m_hubBody

agx::RigidBodyObserver agxModel::TwoBodyTire::m_hubBody
protected

Definition at line 359 of file TwoBodyTire.h.

◆ m_implicitFrictionMultiplier

agx::Vec2 agxModel::TwoBodyTire::m_implicitFrictionMultiplier
protected

Definition at line 361 of file TwoBodyTire.h.

◆ m_innerRadius

agx::Real agxModel::TwoBodyTire::m_innerRadius
protected

Definition at line 360 of file TwoBodyTire.h.

◆ m_loadedRadius

agx::Real agxModel::TwoBodyTire::m_loadedRadius
protected

Definition at line 365 of file TwoBodyTire.h.

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_radius

agx::Real agxModel::Tire::m_radius
protectedinherited

Definition at line 51 of file Tire.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

◆ m_refFrame

agx::FrameRef agxModel::TwoBodyTire::m_refFrame
protected

Definition at line 363 of file TwoBodyTire.h.

◆ m_stepCallback

agx::ref_ptr< agxUtil::GeneralStepListener< TwoBodyTire > > agxModel::TwoBodyTire::m_stepCallback
protected

Definition at line 369 of file TwoBodyTire.h.

◆ m_tireBody

agx::RigidBodyObserver agxModel::TwoBodyTire::m_tireBody
protected

Definition at line 358 of file TwoBodyTire.h.

◆ m_valid

bool agxModel::TwoBodyTire::m_valid
protected

Definition at line 364 of file TwoBodyTire.h.


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