139 #ifndef SWIG // for the work-around until SWIG upgrade to work 159 #ifndef SWIG // for the work-around until SWIG upgrade to work 205 Iterator getIterator(
const T* obj )
const;
277 virtual
void handleGeometryContact(
agxCollide::GeometryContact* gc );
282 INITIALIZED = 1 << 0,
284 using State = agx::BitState<StateEnum, agx::UInt32>;
292 virtual void onPreCollideStep()
override;
293 virtual void onPreStep()
override;
294 virtual void onPostStep()
override;
303 WheelNodeContacts wheelNodeContacts;
304 NodeContacts nodeContacts;
307 struct TrackNodeTriplet
309 agx::Bool isValid()
const {
return prev !=
nullptr && node !=
nullptr && next !=
nullptr; }
321 TrackNodeTriplet findTrackNodeTriplet(
agx::UInt nodeIndex )
const;
322 TrackNodeTriplet findTrackNodeTriplet(
const agx::RigidBody* nodeRb )
const;
340 ContactData m_contactData;
348 return LinkedStructure::getT<Track>( rb );
353 return LinkedStructure::getT<Track>( rb );
356 inline Track::TrackNodeTriplet Track::findTrackNodeTriplet(
agx::UInt nodeIndex )
const 361 Iterator nodeIt = getIterator( nodeIndex );
367 *prevIt, *nodeIt, *nextIt,
368 prevIt.
index(), nodeIt.index(), nextIt.index()
372 inline Track::TrackNodeTriplet Track::findTrackNodeTriplet(
const agx::RigidBody* nodeRb )
const 374 return findTrackNodeTriplet( getNodeIndex( nodeRb ) );
379 return m_rbWheelTable.get_or_return_default( rb );
384 return getNumSegments();
395 auto node = LinkedStructure::getSegment( obj );
396 return node !=
nullptr ? node->as<
TrackNode>() :
nullptr;
401 return LinkedStructure::getSegmentIndex( rb );
406 return LinkedStructure::getSegmentIterator<TrackNode>( index, true );
412 return LinkedStructure::getSegmentIterator<TrackNode>( obj, true );
418 if ( obj ==
nullptr )
Object containing properties of an agxVehicle::Track.
Abstraction of a wheel of arbitrary geometry.
Basic implementation of any structure where bodies are linked/constrained together in a well defined ...
#define AGXVEHICLE_EXPORT
static Track * get(agx::RigidBody *rb)
Wheel used in tracked vehicles.
agxVehicle::TrackWheel * getWheel(const agx::RigidBody *rb) const
Track route object to initialize tracks.
Segment range object for linked structure.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agxSDK::LinkedSegmentRange< TrackNode > TrackNodeRange
Node range object for tracks.
agx::UInt prevIndex(agx::UInt index, agx::UInt size)
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
Node/segment/shoe object in agxVehicle::Track.
#define AGX_DECLARE_POINTER_TYPES(type)
Track node initialize callback, called when a track node has been created and is about to be added to...
Representation of a name string.
T * as()
Subclass casting.
Structure holding several "normal" rigid bodies.
Vector containing 'raw' data.
const Node * getNode(const IteratorCompatibleContainer &container, agx::Real distanceFromStart)
Finds the wire node given current distance from the start of the wire (wire defined to be iterator co...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::UInt getNodeIndex(const agx::RigidBody *rb) const
std::function< void(const TrackNode &)> OnNodeInitializeCallback
agxVehicle::TrackNode * getNode(agx::UInt index) const
agx::UInt getNumNodes() const
Smart pointer for handling referenced counted objects.
agx::RigidBody * getRigidBody() const
Properties and thresholds for internal merging of nodes in agxVehicle::Track.
The rigid body class, combining a geometric model and a frame of reference.
Iterator getIterator(agx::UInt index) const
Optionally unbounded linked structure segment iterator object to iterate segments in a SegmentStructu...
This namespace contains classes related to vehicles dynamics.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
agx::UInt nextIndex(agx::UInt index, agx::UInt size)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
agx::BitState< StateEnum, agx::UInt32 > State
agxSDK::LinkedSegmentIterator< TrackNode > TrackNodeIterator
Optionally unbounded track node iterator object to iterate nodes in a track.
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Assembly object representing a continuous track with a given number of shoes (nodes).