|
AGXDynamics
2.31.1.0
|
#include <Shovel.h>
Inheritance diagram for agxTerrain::Shovel:Classes | |
| class | ExcavationSettings |
| Class containing the settings for the different ExcavationModes for a shovel. More... | |
| struct | SoilPenetrationParameters |
Public Types | |
| enum | ExcavationMode : agx::UInt32 { ExcavationMode::PRIMARY = 0, ExcavationMode::DEFORM_BACK = 1, ExcavationMode::DEFORM_RIGHT = 2, ExcavationMode::DEFORM_LEFT = 3 } |
| Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavation, where the shovel digs along the cutting direction in the terrain horizontal plane. More... | |
Public Member Functions | |
| Shovel (agx::RigidBody *shovelBody, const agx::Line &topEdge, const agx::Line &cuttingEdge, const agx::Vec3 &cuttingDirection) | |
| Basic constructor. 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 |
| bool | getAlwaysRemoveShovelContacts () const |
| agx::Real | getBottomContactThreshold () const |
| Get the distance threshold from the shovel planes where regular geometry contacts between the shovel underside and the terrain are allowed to be created. More... | |
| virtual const char * | getClassName () const |
| agx::Plane | getCurrentSeparationPlane (Terrain *terrain, ExcavationMode mode) const |
| agx::Vec3 | getCuttingDirection () const |
| agx::Vec3 | getCuttingDirectionWorld () const |
| agx::Line | getCuttingEdge () const |
| agx::Line | getCuttingEdgeWorld () const |
| agx::Real | getDeadLoadFraction () const |
| Get the last computed dead load fraction of the shovel, i.e how much of it's inner volume that is filled with dynamic soil. More... | |
| bool | getEnable () const |
| Access the state enable flag. More... | |
| bool | getEnableInnerShapeCreateDynamicMass () const |
| Get if inner shape alone should always create dynamic mass. More... | |
| bool | getEnableParticleFreeDeformers () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| ExcavationSettings & | getExcavationSettings (ExcavationMode mode) |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Real | getInnerContactArea () const |
| Get the last computed inner contact area of the shovel, i.e the estimated cross-section area of the inner volume that is filled with dynamic soil. More... | |
| agx::Real | getMaxPenetrationForce () const |
| Set the maximum limit on penetration force (N) that the terrain will generate on this shovel. More... | |
| agx::Real | getMinimumSubmergedContactLengthFraction () const |
| Get the minimum submerged cutting edge length fraction (0-1) that generates submerged cutting. More... | |
| agx::Real | getNoMergeExtensionDistance () const |
| Get the margin outside the shovel bonding box where soil particle merging is forbidden. More... | |
| agx::UInt | getNumberOfTeeth () const |
| agx::Real | getPenetrationDepthThreshold () const |
| Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness. More... | |
| agx::Real | getPenetrationForceScaling () const |
| int | getReferenceCount () const |
| agx::RigidBody * | getRigidBody () const |
| agx::Vec3 | getSecondaryCuttingDirection (Terrain *terrain) const |
| agx::Real | getSecondarySeparationAngle (Terrain *terrain) const |
| agx::Real | getSecondarySeparationDeadloadLimit () const |
| bool | getSoilPenetrationModel (agxTerrain::Terrain *terrain, agxTerrain::SoilPenetrationResistance::PenetrationModel &model) const |
| Get the soil penetration model used for the specified shovel in the given terrain. More... | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Real | getToothLength () const |
| agx::Real | getToothMaximumRadius () const |
| agx::Real | getToothMinimumRadius () const |
| agx::Line | getTopEdge () const |
| agx::Line | getTopEdgeWorld () const |
| agx::Uuid | getUuid () const |
| agx::Real | getVerticalBladeSoilMergeDistance () const |
| Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () 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... | |
| void | setAlwaysRemoveShovelContacts (bool enable) |
| Set to true/false if shovel <-> terrain contacts should always be removed param enable - set to true/false if shovel <-> terrain contacts should always be removed. More... | |
| void | setBottomContactThreshold (agx::Real bottomContactThreshold) |
| Set the distance threshold from the shovel planes where regular geometry contacts between the shovel underside and the terrain are allowed to be created. More... | |
| void | setCuttingDirection (agx::Vec3 cuttingDirection) |
| void | setCuttingEdge (agx::Line cuttingEdge) |
| Set the cutting edge in local space. More... | |
| void | setEnable (bool enable) |
| Change state enable of this shovel Default: true. More... | |
| void | setEnableInnerShapeCreateDynamicMass (bool enable) |
| Set if inner shape alone should always create dynamic mass. More... | |
| void | setEnableParticleFreeDeformers (bool enable) |
| Set true/false if the shovel deformers should make particle free deformations. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setExcavationSettings (ExcavationMode mode, ExcavationSettings excavationSettings) |
| Set a settings object for an ExcavationMode of the shovel. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setMaxPenetrationForce (agx::Real maxPenetrationForce) |
| Set a maximum limit on penetration force (N) that the terrain will generate on this shovel. More... | |
| void | setMinimumSubmergedContactLengthFraction (agx::Real minimumSubmergedContactLengthFraction) |
| Set the minimum submerged cutting edge length fraction (0-1) that generates submerged cutting. More... | |
| void | setNoMergeExtensionDistance (agx::Real extensionDistance) |
| Set the extension outside the shovel bounding box where soil particle merging is forbidden. More... | |
| void | setNumberOfTeeth (agx::UInt count) |
| void | setPenetrationDepthThreshold (agx::Real depthThreshold) |
| Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness. More... | |
| void | setPenetrationForceScaling (agx::Real penetrationForceScaling) |
| Set the linear scaling coefficient for the penetration force (Default: 1.0) More... | |
| void | setSecondarySeparationDeadloadLimit (agx::Real secondarySeparationLimit) |
| Sets the dead-load limit where secondary separation will start to active where the forward direction starts to change according to the virtual separation plate created by the material inside the shovel. More... | |
| bool | setSoilPenetrationModel (agxTerrain::SoilPenetrationResistance::PenetrationModel model, agxTerrain::Terrain *terrain) |
| Set the soil penetration model used for the specified shovel in the given terrain. More... | |
| void | setToothLength (agx::Real length) |
| void | setToothMaximumRadius (agx::Real radius) |
| void | setToothMinimumRadius (agx::Real radius) |
| void | setTopEdge (agx::Line topEdge) |
| Set the top edge in local space. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| void | setVerticalBladeSoilMergeDistance (agx::Real verticalSoilBladeMergeDistance) |
| Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to. More... | |
| 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 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 Types | |
| using | Flags = agx::BitState< StateFlags, agx::UInt32 > |
| enum | StateFlags : agx::UInt32 { ENABLED = 1 << 0, REMOVE_SHOVEL_CONTACTS = 1 << 1, INNER_SHAPE_CREATE_DYNAMIC_MASS = 1 << 2, ENABLE_PARTICLE_FREE_DEFORMATION = 1 << 3 } |
Protected Member Functions | |
| Shovel () | |
| Default constructor used in serialization. More... | |
| virtual | ~Shovel () |
| Reference counted object - protected destructor. More... | |
| void | allocateObserverVector () const |
| agxCollide::GeometryRefVector | createVoxelCollisionGeometries (agx::Real tessellationLevel) const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
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 |
|
strong |
Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavation, where the shovel digs along the cutting direction in the terrain horizontal plane.
DEFORM_BACK - The mode of excavation where the shovel is digging in the opposite direction of the cutting direction in the terrain horizontal plane. ( Example: Backside grading ) DEFORM_LEFT - The mode of excavation where the shovel is digging to the counter-clock wise (Left) direction orthogonal to the cutting direction in the terrain horizontal plane. ( Example: Side push/grading ) DEFORM_RIGHT - The mode of excavation where the shovel is digging to the clock wise (Right) direction orthogonal to the cutting direction in the terrain horizontal plane. ( Example: Side push/grading )
| Enumerator | |
|---|---|
| PRIMARY | |
| DEFORM_BACK | |
| DEFORM_RIGHT | |
| DEFORM_LEFT | |
|
protected |
| agxTerrain::Shovel::Shovel | ( | agx::RigidBody * | shovelBody, |
| const agx::Line & | topEdge, | ||
| const agx::Line & | cuttingEdge, | ||
| const agx::Vec3 & | cuttingDirection | ||
| ) |
Basic constructor.
| shovelBody | - The base body of the shovel. |
| topEdge | - The top edge of the active zone, specified in the LOCAL shovelBody frame that will be created in front of the shovel. |
| cuttingEdge | - The lowest edge on the shovel, specified in the LOCAL shovelBody frame that serves as the cutting edge of the active zone. |
| cuttingDirection | - The cutting direction of the shovel where the penetration resistance will be active, which is usually parallel to the lowest shovel plate that is used to initially penetrate the soil. |
|
protected |
Default constructor used in serialization.
|
protectedvirtual |
Reference counted object - protected destructor.
|
protectedinherited |
|
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().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
| bool agxTerrain::Shovel::getAlwaysRemoveShovelContacts | ( | ) | const |
| agx::Real agxTerrain::Shovel::getBottomContactThreshold | ( | ) | const |
Get the distance threshold from the shovel planes where regular geometry contacts between the shovel underside and the terrain are allowed to be created.
( Default: cuttingEdgeLength / 10.0 )
|
virtualinherited |
Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
Referenced by agxStream::InputArchive::readRef().
| agx::Plane agxTerrain::Shovel::getCurrentSeparationPlane | ( | Terrain * | terrain, |
| ExcavationMode | mode | ||
| ) | const |
| agx::Vec3 agxTerrain::Shovel::getCuttingDirection | ( | ) | const |
| agx::Vec3 agxTerrain::Shovel::getCuttingDirectionWorld | ( | ) | const |
| agx::Line agxTerrain::Shovel::getCuttingEdge | ( | ) | const |
| agx::Line agxTerrain::Shovel::getCuttingEdgeWorld | ( | ) | const |
| agx::Real agxTerrain::Shovel::getDeadLoadFraction | ( | ) | const |
Get the last computed dead load fraction of the shovel, i.e how much of it's inner volume that is filled with dynamic soil.
The dead load fraction ranges from 0.0 (empty), to 1.0 (full).
|
staticprotectedinherited |
| bool agxTerrain::Shovel::getEnable | ( | ) | const |
Access the state enable flag.
| bool agxTerrain::Shovel::getEnableInnerShapeCreateDynamicMass | ( | ) | const |
Get if inner shape alone should always create dynamic mass.
The alternative is to only create dynamic mass in the inner shape when primary excavation soil wedges create mass.
| bool agxTerrain::Shovel::getEnableParticleFreeDeformers | ( | ) | const |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
| ExcavationSettings& agxTerrain::Shovel::getExcavationSettings | ( | ExcavationMode | mode | ) |
|
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.
Definition at line 247 of file Serializable.h.
| agx::Real agxTerrain::Shovel::getInnerContactArea | ( | ) | const |
Get the last computed inner contact area of the shovel, i.e the estimated cross-section area of the inner volume that is filled with dynamic soil.
| agx::Real agxTerrain::Shovel::getMaxPenetrationForce | ( | ) | const |
Set the maximum limit on penetration force (N) that the terrain will generate on this shovel.
(Default: Infinity)
| agx::Real agxTerrain::Shovel::getMinimumSubmergedContactLengthFraction | ( | ) | const |
Get the minimum submerged cutting edge length fraction (0-1) that generates submerged cutting.
Default: 0.5
| agx::Real agxTerrain::Shovel::getNoMergeExtensionDistance | ( | ) | const |
Get the margin outside the shovel bonding box where soil particle merging is forbidden.
| agx::UInt agxTerrain::Shovel::getNumberOfTeeth | ( | ) | const |
| agx::Real agxTerrain::Shovel::getPenetrationDepthThreshold | ( | ) | const |
Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.2 m)
| agx::Real agxTerrain::Shovel::getPenetrationForceScaling | ( | ) | const |
|
inherited |
| agx::RigidBody* agxTerrain::Shovel::getRigidBody | ( | ) | const |
| agx::Real agxTerrain::Shovel::getSecondarySeparationDeadloadLimit | ( | ) | const |
| bool agxTerrain::Shovel::getSoilPenetrationModel | ( | agxTerrain::Terrain * | terrain, |
| agxTerrain::SoilPenetrationResistance::PenetrationModel & | model | ||
| ) | const |
Get the soil penetration model used for the specified shovel in the given terrain.
Available models are:
NO_MODEL - Only use the soil pressure above the cutting edge to determine the penetration resistance. ELASTIC_PLASTIC_LIMIT - Calculate the expected penetration resistance based in the elastic plastic limit. (Default) PLASTIC - Calculate the expected penetration resistance based on plastic expansion due to tooth pressure.
| model | - The output variable where the penetration model that is used will be put, if successful. |
| terrain | - The specified terrain where this model applies. |
|
pure virtualinherited |
Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
| agx::Real agxTerrain::Shovel::getToothLength | ( | ) | const |
| agx::Real agxTerrain::Shovel::getToothMaximumRadius | ( | ) | const |
| agx::Real agxTerrain::Shovel::getToothMinimumRadius | ( | ) | const |
| agx::Line agxTerrain::Shovel::getTopEdge | ( | ) | const |
| agx::Line agxTerrain::Shovel::getTopEdgeWorld | ( | ) | const |
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
| agx::Real agxTerrain::Shovel::getVerticalBladeSoilMergeDistance | ( | ) | const |
Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
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.
| void agxTerrain::Shovel::setAlwaysRemoveShovelContacts | ( | bool | enable | ) |
Set to true/false if shovel <-> terrain contacts should always be removed param enable - set to true/false if shovel <-> terrain contacts should always be removed.
Set the distance threshold from the shovel planes where regular geometry contacts between the shovel underside and the terrain are allowed to be created.
( Default: cuttingEdgeLength / 10.0 )
| bottomContactThreshold | - The contact distance threshold from the shovel planes where regular geometry contacts between the shovel underside and the terrain are allowed to be created. |
| cuttingDirection | - new cutting direction in local space. |
Set the cutting edge in local space.
| cuttingEdge | - new cutting edge in local space. |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxTerrain::Shovel::setEnable | ( | bool | enable | ) |
Change state enable of this shovel Default: true.
| enable | - true to enable, false to disable |
| void agxTerrain::Shovel::setEnableInnerShapeCreateDynamicMass | ( | bool | enable | ) |
Set if inner shape alone should always create dynamic mass.
The alternative is to only create dynamic mass in the inner shape when primary excavation soil wedges create mass. Default: true.
| enable | - true if inner shape should always create dynamic mass (default), false otherwise. |
| void agxTerrain::Shovel::setEnableParticleFreeDeformers | ( | bool | enable | ) |
Set true/false if the shovel deformers should make particle free deformations.
(Default: false) Note, if this is true all excavation modes will make particle free deformations. Even if enableCreateDynamicMass is set to false for one or more excavation modes.
| enable | - true if the shovel deformers mode should make particle free deformations. |
|
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.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
| void agxTerrain::Shovel::setExcavationSettings | ( | ExcavationMode | mode, |
| ExcavationSettings | excavationSettings | ||
| ) |
Set a settings object for an ExcavationMode of the shovel.
Excavation modes are as follows: PRIMARY - The primary mode of excavation, where the shovel digs along the cutting direction in the terrain horizontal plane. DEFORM_BACK - The mode of excavation where the shovel is digging in the opposite direction of the cutting direction in the terrain horizontal plane. ( Example: Backside grading ) DEFORM_LEFT - The mode of excavation where the shovel is digging to the counter-clock wise (Left) direction orthogonal to the cutting direction in the terrain horizontal plane. ( Example: Side push/grading ) DEFORM_RIGHT - The mode of excavation where the shovel is digging to the clock wise (Right) direction orthogonal to the cutting direction in the terrain horizontal plane. ( Example: Side push/grading )
| mode | - The specified excavation mode that the settings will apply to. |
| excavationSettings | - The specified excavation settings that will apply to the excavation mode. |
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
Set a maximum limit on penetration force (N) that the terrain will generate on this shovel.
(Default: Infinity)
| maxPenetrationForce | - The maximum penetration force that the terrain will act on this shovel |
| void agxTerrain::Shovel::setMinimumSubmergedContactLengthFraction | ( | agx::Real | minimumSubmergedContactLengthFraction | ) |
Set the minimum submerged cutting edge length fraction (0-1) that generates submerged cutting.
Default: 0.5
Set the extension outside the shovel bounding box where soil particle merging is forbidden.
| count | - new teeth count of shovel. |
Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.2 m)
| depthThreshold | - the vertical pressure threshold that will cause penetration resistance to start. |
Set the linear scaling coefficient for the penetration force (Default: 1.0)
| penetrationForceScaling | - The coefficient for scaling the penetration force that the terrain will give on this shovel |
Sets the dead-load limit where secondary separation will start to active where the forward direction starts to change according to the virtual separation plate created by the material inside the shovel.
| secondarySeparationLimit | - The dead load limit where secondary separation will start to activate (Default: 0.8) |
| bool agxTerrain::Shovel::setSoilPenetrationModel | ( | agxTerrain::SoilPenetrationResistance::PenetrationModel | model, |
| agxTerrain::Terrain * | terrain | ||
| ) |
Set the soil penetration model used for the specified shovel in the given terrain.
Available models are:
NO_MODEL - Only use the soil pressure above the cutting edge to determine the penetration resistance. ELASTIC_PLASTIC_LIMIT - Calculate the expected penetration resistance based in the elastic plastic limit. (Default) PLASTIC - Calculate the expected penetration resistance based on plastic expansion due to tooth pressure.
| model | - The specified penetration model to use in the shovel against the terrain. ( Default: ELASTIC_PLASTIC_LIMIT ) |
| terrain | - The specified terrain where this model will apply. |
| radius | - new maximum radius of the shovel teeth. |
| radius | - new minimum radius of the shovel teeth. |
Set the top edge in local space.
| topEdge | - new top edge in local space. |
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!
| void agxTerrain::Shovel::setVerticalBladeSoilMergeDistance | ( | agx::Real | verticalSoilBladeMergeDistance | ) |
Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
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().
|
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.
|
staticinherited |
|
protected |
|
protected |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protected |
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |