32 template<
typename T1,
typename T2>
72 class VelocityConstraint;
131 const T& at(
size_t index )
const;
133 const T& operator[](
size_t index )
const;
141 IDSpan(
const T* ptr,
size_t size);
183 ID_COLLISION_OCCURRED
190 FULL = MOTION + DYNAMIC
205 bool useRotation =
true 208 : m_body(body), m_transform(transform), m_translationalCompliance(translationalCompliance),
209 m_rotationalCompliance(rotationalCompliance), m_translationalThreshold(translationalThreshold),
210 m_rotationThreshold(rotationThreshold), m_useRotation(useRotation)
214 m_rotationalCompliance(
agx::
Real(1)), m_translationalThreshold(
agx::
Real(1)),
215 m_rotationThreshold(
agx::
Real(1)), m_useRotation(true)
428 agx::Real time,
agx::Real positionThreshold,
agx::Real rotationThreshold,
const bool stopAtCollision =
false,
const bool onlyMotionSimulation =
false);
451 const agx::RealVector& timestamps,
agx::Real positionThreshold,
agx::Real rotationThreshold,
const bool stopAtCollision =
false,
const bool onlyMotionSimulation =
false);
476 const bool stopAtCollision =
false,
477 const bool onlyMotionSimulation =
false);
490 const bool stopAtCollision =
false,
491 const bool onlyMotionSimulation =
false);
567 size_t getNumFrames()
const;
581 agx::Real getLastTrajectoryTimeStamp()
const;
603 agx::Real getLastDynamicsTimeStamp()
const;
703 void forceStepMotionSimulation();
708 void forceStepDynamicsSimulation();
711 using PowerLineRefPair = std::pair<agxPowerLine::PowerLineRef, agxPowerLine::PowerLineRef>;
714 using PowerLineUnitPair = std::pair<agxPowerLine::Unit*, agxPowerLine::Unit*>;
717 void reserveData(
const size_t numReserveFrames);
732 const bool stopAtCollision =
false,
733 const bool onlyMotionSimulation =
false);
740 const bool stopAtCollision =
false,
741 const bool onlyMotionSimulation =
false);
745 void removeKinematicObjects();
765 void setupInternalPowerlines(
799 const bool stopAtCollision =
false,
800 const bool onlyMotionSimulation =
false);
842 agx::UInt m_numPowerLineValuesPerTimestep;
857 return *(m_ptr + index);
864 return *(m_ptr + index);
AffineMatrix4x4T< Real > AffineMatrix4x4
const T & operator[](size_t index) const
struct agxModel::IDUnitValue IDUnitValue
Struct holding information about an agxPowerLine::Unit.
agx::Real m_rotationalCompliance
Struct holding information about a joint.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The base class for a constraint.
InverseDynamicsStatus
Enumeration with status values returned from InverseDynamics.
Problem with timestamp and/or transform input values.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
agxPowerLine contains a collection of connected components that transport power across a system...
Class for computing forces/torques which can be used to reach a desired configuration.
Base class providing referencing counted objects.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Provided body argument not found.
Constraint that removes all 6 DOF between two bodies, or one body and the world.
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Struct holding information about an agxPowerLine::Unit.
agxPowerLine::Unit * unit
agx::ref_ptr< VelocityConstraint > VelocityConstraintRef
Smart pointer for handling referenced counted objects.
MoveOperation(agx::RigidBody *body, const agx::AffineMatrix4x4 &transform, agx::Real translationalCompliance, agx::Real rotationalCompliance, agx::Real translationalThreshold, agx::Real rotationThreshold, bool useRotation=true)
struct agxModel::IDJointValue IDJointValue
Struct holding information about a joint.
agx::Real m_translationalThreshold
A valid pose could not be found with provided thresholds.
Struct for defining a move operation during one call to one of the solve functions of InverseDynamics...
The rigid body class, combining a geometric model and a frame of reference.
AGXPHYSICS_EXPORT void setMotionControl(agx::RigidBodyPtrVector &bodies, agx::RigidBody::MotionControl motionControl)
Utility function to set motion control for a vector of rigid bodies.
agx::Real m_rotationThreshold
agx::UInt32 dimensionIndex
agx::AffineMatrix4x4 m_transform
A read-only view into data computed by InverseDynamics.
agx::RigidBodyObserver m_body
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Sync everything given the source.
size_t size() const
Number of elements accessible via this view into the data.
Return value for successful operation.
MotionControl
The MotionControl enumeration indicates what makes a RigidBody move.
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation...
A Collection is a collection of basic simulation objects, such as rigid bodies, constraints, geometries.
agx::Real m_translationalCompliance
agx::Vector< InverseDynamics::MoveOperation > MoveOperationVector
agx::ref_ptr< Simulation > SimulationRef
Invalid timestamp provided as argument.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< const RigidBody > RigidBodyConstRef
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints, geometries.
const T & at(size_t index) const
Fetch value at index. Input index must be less than size.