61 m_collisionGeometries.push_back(geometry);
66 return m_collisionGeometries;
74 for (
size_t j = 0; j < 2; ++j)
76 for (
size_t i = 0; i < m_collisionGeometries.size(); ++i)
78 if (geos[j] == m_collisionGeometries[i])
90 m_collisionGeometries.clear();
132 size_t getSealCount()
const;
137 bool getCentered()
const;
158 agx::Real getCalculatedScalarForce()
const;
172 agx::Vec3 getFoundSurfacePositionWorld()
const;
182 agx::Vec3 getCurrentFrictionForce()
const;
187 agx::Vec3 getCurrentContactNormalForce()
const;
192 agx::Real getCurrentRelativeVelocity()
const;
204 void setFoundSurfacePositionWorld(
agx::Vec3 worldPosition);
222 void setCenterDistance(
agx::Real distance);
228 void setCenterNormalWorld(
agx::Vec3 normal);
230 void updateInteractedSeals(
size_t sealIndex,
agx::Real depth);
232 void setCalculatedForce(
agx::Vec3 force);
233 void setCalculatedScalarForce(
agx::Real scalarForce);
235 agx::Real getSealDepth(
size_t sealIndex)
const;
237 bool hasSealInteraction(
size_t sealIndex)
const;
252 void renderInteraction(
const SuctionCup* cup);
314 void setEnablePump(
const bool& enable);
319 bool getEnablePump()
const;
331 void setDesiredVacuum(
agx::Real vacuumLevel);
341 void setOutsidePressure(
agx::Real pressure);
356 void setOutsideGasDensity(
agx::Real density);
435 size_t sealResolution =
size_t(0),
472 void setMountingRadius(
agx::Real radius);
482 bool isValid()
const;
492 size_t getSealResolution()
const;
511 agx::Real getAvailableVacuumForce()
const;
528 virtual void updateLeakageArea();
533 void applyVacuumForces(
const VacuumSystem* vacuumSystem);
542 void updateVacuumForces(
const VacuumSystem* vacuumSystem);
557 void invalidateInteractions();
600 void createLineSensor();
602 void createCupSealSensors();
610 void collectCollisionGeometries();
696 bool isValid()
const;
728 virtual void updateValid();
const agxCollide::GeometryRefVector & getGeometries() const
agx::HashVector< agx::RigidBody *, SuctionCupInteractionRef > m_activeInteractions
agx::Vec3 m_localLineSensorVector
Inheritance with partial specialization due to bug with ref_ptr containers.
agxCollide::GeometryRefVector m_sensors
agxCollide::SphereRef m_miniSphere
Utility class to get step event callbacks to any class having the methods implemented.
agx::ref_ptr< agxUtil::GeneralStepListener< SuctionGripper > > m_stepCallback
agx::Real m_desiredVacuum
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
agxCollide::GeometryContactPtrVector m_tempContacts
agx::Real m_timeOfPumpStateToggled
Abstract base class that implements a filter that selects which events should trigger a Listener...
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
This should be considered a template class used as a base for Suction Gripper simulation models...
agxCollide::GeometryRef m_trimeshGeometry
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Real m_mountingRadius
virtual bool match(const agxCollide::GeometryContact &gc) const
Called when narrow phase tests have determined overlap (when we have detailed intersection between th...
agxUtil::TrimeshDeformerRef m_trimeshDeformer
agxCollide::TrimeshRef m_trimesh
agx::RigidBodyObserver m_body
agxCollide::GeometryRef m_lineSensor
agx::Vec3 m_calculatedForce
virtual ~SuctionCupSensorFilter()
agx::Real m_currentLeakageArea
virtual bool match(const agxCollide::Geometry *g0, const agxCollide::Geometry *g1) const override
Inherited from agxSDK::ExecuteFilter.
Base class providing referencing counted objects.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The geometry representation used by the collision detection engine.
Class for filtering objects of interest nearby a suction cup.
agx::Vec3 m_centerNormalWorld
agx::ref_ptr< agxCollide::Line > m_line
agx::RealVector m_sealDepthMeasurements
agx::Real m_calculatedScalarForce
agx::AffineMatrix4x4 m_miniSphereTransform
Constraint that removes all 6 DOF between two bodies, or one body and the world.
agx::Real m_sealSensorReach
Vector containing 'raw' data.
virtual void last(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
agxModel::SuctionCupRefVector m_suctionCups
agx::Vec3 m_foundSurfacePosition
agx::Vec3 m_calculatedForcePosition
virtual void post(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
agx::Real m_centerDistance
agx::HashSet< SuctionCupRef > SuctionCupRefSet
The SuctionCup model owns a body which is mean to be attached somewhere on a SuctionGripper holder...
void addGeometry(agxCollide::Geometry *geometry)
The rigid body class, combining a geometric model and a frame of reference.
Main material class which acts as a holder of a Surface Material and a Bulk material.
SuctionCupInteractionRefVector m_interactionsPool
agx::ref_ptr< agxUtil::GeneralContactEventListener< SuctionCup > > m_contactCallback
VacuumSystemRef m_vacuumSystem
agxCollide::GeometryRefSetVector m_sealSensors
The object defining a frame of reference and providing transformations operations.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Real m_calculatedAvailableVacuumForce
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
virtual void addNotification(agxSDK::Simulation *)
Called when this assembly is added to a simulation (given that it not already is in the simulation)...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::Real m_outsidePressure
SuctionCupSensorFilterRef m_collisionFilter
Basic model for a vacuum system used by a SuctionGripper.
agx::RigidBodyRef m_holderBody
agx::ref_ptr< agx::LockJoint > m_lock
#define AGX_DECLARE_VECTOR_TYPES(type)
agx::Real m_outsideGasDensity
agx::HashVector< size_t, agx::Real > m_interactedSealDepth
Triangle mesh for geometric intersection tests.
virtual void pre(const agx::TimeStamp &time)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
virtual void preCollide(const agx::TimeStamp &time)
Called before collision detection is performed in the simulation Implement this method in the derived...
agx::Real m_currentVacuum
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints, geometries.
agxCollide::GeometryRefVector m_collisionGeometries