 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
32 template<
typename T1,
typename T2>
72 class VelocityConstraint;
131 const T&
at(
size_t index )
const;
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);
MoveOperation(agx::RigidBody *body, const agx::AffineMatrix4x4 &transform, agx::Real translationalCompliance, agx::Real rotationalCompliance, agx::Real translationalThreshold, agx::Real rotationThreshold, bool useRotation=true)
size_t size() const
Number of elements accessible via this view into the data.
@ ID_SUCCESS
Return value for successful operation.
agx::Real m_translationalCompliance
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
MotionControl
The MotionControl enumeration indicates what makes a RigidBody move.
The rigid body class, combining a geometric model and a frame of reference.
agx::ref_ptr< const RigidBody > RigidBodyConstRef
@ FULL
Sync everything given the source.
Class for computing forces/torques which can be used to reach a desired configuration.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::Real m_rotationalCompliance
agx::ref_ptr< Simulation > SimulationRef
agx::Vector< InverseDynamics::MoveOperation > MoveOperationVector
A Collection is a collection of basic simulation objects, such as rigid bodies, constraints,...
@ ID_INVALID_TIME
Invalid timestamp provided as argument.
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::RigidBodyObserver m_body
InverseDynamicsStatus
Enumeration with status values returned from InverseDynamics.
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
Smart pointer for handling referenced counted objects.
struct agxModel::IDUnitValue IDUnitValue
Struct holding information about an agxPowerLine::Unit.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
AffineMatrix4x4T< Real > AffineMatrix4x4
AGXPHYSICS_EXPORT void setMotionControl(agx::RigidBodyPtrVector &bodies, agx::RigidBody::MotionControl motionControl)
Utility function to set motion control for a vector of rigid bodies.
agx::UInt32 dimensionIndex
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
agx::AffineMatrix4x4 m_transform
Constraint that removes all 6 DOF between two bodies, or one body and the world.
@ ID_BODY_NOT_FOUND
Provided body argument not found.
Struct for defining a move operation during one call to one of the solve functions of InverseDynamics...
struct agxModel::IDJointValue IDJointValue
Struct holding information about a joint.
Struct holding information about an agxPowerLine::Unit.
const T & at(size_t index) const
Fetch value at index. Input index must be less than size.
Base class providing referencing counted objects.
agxPowerLine contains a collection of connected components that transport power across a system.
agx::Real m_rotationThreshold
@ ID_VALID_POSE_NOT_FOUND
A valid pose could not be found with provided thresholds.
A read-only view into data computed by InverseDynamics.
The base class for a constraint.
const T & operator[](size_t index) const
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Struct holding information about a joint.
agx::Real m_translationalThreshold
@ ID_BAD_ARGUMENTS
Problem with timestamp and/or transform input values.
agxPowerLine::Unit * unit