31 class GenericManyBodyConstraint;
163 void add(
agx::GenericManyBodyConstraint* sensorConstraint,
size_t wheelSensorDataIndex );
167 bool isTrackSegment( const
agx::RigidBody* rb ) const;
169 const
TrackWheel* getWheelGivenPotentialWheelSensor( const
agx::RigidBody* rb ) const;
171 agx::ConstraintRef getTrackMasslessConstraint() const;
173 agx::ConstraintRef getSensorFrictionConstraint() const;
177 virtual
void store(
agxStream::OutputArchive& out, const
Track& track ) const override;
179 virtual
void restore(
agxStream::InputArchive& in, const
Track& track ) override;
184 virtual
void onAddNotification() override;
186 virtual
void onRemoveNotification() override;
188 virtual
void onMaterialNew() override;
190 virtual
void onGroupAdd( const
agxSDK::LinkedStructure::IdData& group ) override;
192 virtual
void onGroupRemove( const
agxSDK::LinkedStructure::IdData& group ) override;
194 virtual
void onPreStep() override;
196 virtual
void onPostStep() override;
198 virtual
void onPostIntegrate() override;
200 virtual
void onPostContact(
agxCollide::GeometryContact* geometryContact ) override;
209 INITIALIZED = 1 << 0,
211 CURVATURE_INCLUDE_WHEEL_CONTACTS = 1 << 3
213 using Flags = agx::BitState<Flag, std::underlying_type_t<Flag>>;
215 bool isInitialized()
const
217 return flags.Is( INITIALIZED );
226 void bindWheelSensorGeometriesToTires();
227 void unbindWheelSensorGeometriesFromTires();
229 void updatePrismaticBrakes();
231 void updateTrackCurveEventGenerator();
235 ChassisProxyData m_chassisProxyData;
240 InternalState m_state;
241 ReducedOrderTrackProperties m_properties;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXVEHICLE_EXPORT
Reduced-Order implementation of a track.
TrackNodeAnimator * getTrackNodeAnimator() const
const ChassisProxyData & getChassisProxyData() const
ReducedOrderTrackImplementation(agx::RigidBody *chassis)
Construct given chassis.
const TrackWheelSensorDataRefVector & getWheelSensorData() const
The wheel sensor data vector is sorted in order of the track nodes from an implementation defined poi...
agx::Real getBendForce(agx::Int wheelIndex) const
Get force at the bend constraint associated with the given sensor segment index.
virtual bool isInitialized() const override
void setProperties(const ReducedOrderTrackProperties &properties)
Replace the internal Reduced-Order properties for this track model.
ReducedOrderTrackProperties & getProperties()
These properties gives control over internal model dependent features and parameters.
const ReducedOrderTrackProperties & getProperties() const
These properties gives control over internal model dependent features and parameters.
agx::Real getTension(agx::Int wheelIndex) const
Get tension at the given sensor segment index.
static ReducedOrderTrackImplementation & get(const TrackImplementation &implementation)
virtual agx::Real getTension(const TrackNode &node) const override
Get tension at the massless wire segment closes to this node.
agx::RigidBody * getChassis() const
This is the properties/settings of an agxVehicle::ReducedOrderTrackImplementation.
Base class for a custom track implementation.
Animates the track nodes going around a set of wheels.
Node/segment/shoe object in agxVehicle::Track.
Additional data for wheels and segments between wheels of a track where the nodes aren't simulated.
Wheel used in tracked vehicles.
Assembly object representing a continuous track with a given number of shoes (nodes).
bool is() const
Subclass test.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
This namespace contains classes related to vehicles dynamics.
agx::ref_ptr< TrackNodeAnimator > TrackNodeAnimatorRef
agx::Vector< TrackWheelSensorDataRef > TrackWheelSensorDataRefVector
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Proxy body, locked to the chassis, which all track node bodies are merged with.
void merge(TrackNode &node)
Merge the given node to the proxy rigid body.
void restoreCollisionState(TrackNode &node) const
Restores the collision state the given node had before being merged with the proxy body.
Data for an external tangent between two wheels.