|
AGX Dynamics 2.42.3.1
|
#include <SuctionGripper.h>
Inheritance diagram for agxModel::SuctionCup:Public Member Functions | |
| SuctionCup (agx::RigidBody *cupBody, agx::Real lipRadius=agx::Real(0.025), agx::Real lipHeight=agx::Real(0.01), size_t sealResolution=size_t(0), agx::Vec3 localLineSensorVector=agx::Vec3(0, 0,-0.1), agx::Real sealSensorReach=agx::Real(0.01)) | |
| The SuctionCup contains a rigid body with a local attachment frame which will be used to position it relative to a SuctionGripper assembly. | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxModel::SuctionCup) | |
| void | applyVacuumForces (const VacuumSystem *vacuumSystem) |
| Responsible for applying forces to rigid bodies of the cup interactions. | |
| agx::Vector< agxModel::SuctionCupInteraction * > | getActiveInteractionsVector () const |
| agx::Real | getArea () const |
| agx::Real | getAvailableVacuumForce () const |
| The available vacuum force is a pre calculated value by the virtual VacuumSystem::calculateAvailableVacuumForce function. | |
| agx::Real | getCurrentLeakageArea () const |
| agx::Real | getLipRadius () const |
| agx::Real | getMountingRadius () const |
| agx::Vec3 | getNormal () const |
| agx::RigidBody * | getRigidBody () |
| const agx::RigidBody * | getRigidBody () const |
| size_t | getSealResolution () const |
| const agxCollide::GeometryRefSetVector & | getSealSensors () const |
| agx::Real | getSensorDistance () const |
| SuctionCupSensorFilter * | getSensorFilter () |
| bool | isValid () const |
| Verify if the cup is valid. | |
| void | setMountingRadius (agx::Real radius) |
| Set the mounting radius. | |
| virtual void | updateLeakageArea () |
| Calculates the leakage area. | |
| void | updateVacuumForces (const VacuumSystem *vacuumSystem) |
| Will call the virtual function VacuumSystem::calculateAvailableVacuumForce; then apply the vacuum forces. | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. | |
Static Public Member Functions | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
Definition at line 418 of file SuctionGripper.h.
| agxModel::SuctionCup::SuctionCup | ( | agx::RigidBody * | cupBody, |
| agx::Real | lipRadius = agx::Real(0.025), |
||
| agx::Real | lipHeight = agx::Real(0.01), |
||
| size_t | sealResolution = size_t(0), |
||
| agx::Vec3 | localLineSensorVector = agx::Vec3(0, 0,-0.1), |
||
| agx::Real | sealSensorReach = agx::Real(0.01) |
||
| ) |
The SuctionCup contains a rigid body with a local attachment frame which will be used to position it relative to a SuctionGripper assembly.
| cupBody | - the rigid body of the suction cup, if set to nullptr, a body will be created with cylinder geometry |
| lipRadius | - the radius of the suction cup outermost part when in contact with objects |
| lipHeight | - the height of the collision geometry of the cup. Note, only used when cupBody argument is null. |
| sealResolution | - the discretization of the contact surface needed to be sealed for creating a vacuum. |
| localLineSensorVector | - the line sensor vector out from the suction cup ring plane, toward objects to gripp. |
| sealSensorReach | - size of the seal sensor radiusr |
|
protected |
|
protectedvirtual |
|
protected |
Makes sure all suction cup bodies and constraints are given to the simulation.
Called from SuctionGripper::addNotification()
| agxModel::SuctionCup::AGXSTREAM_DECLARE_SERIALIZABLE_BASE | ( | agxModel::SuctionCup | ) |
| void agxModel::SuctionCup::applyVacuumForces | ( | const VacuumSystem * | vacuumSystem | ) |
Responsible for applying forces to rigid bodies of the cup interactions.
|
protected |
|
protected |
|
protected |
|
inlinestatic |
Definition at line 544 of file SuctionGripper.h.
|
protected |
|
protected |
|
protectedvirtual |
Function creating an interaction.
Virtual - enabling other cup implementations i.e. the virtual SuctionCupInteraction::updateVacuumForce function may include new approaches of the actual force applied to the bodies.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| agx::Vector< agxModel::SuctionCupInteraction * > agxModel::SuctionCup::getActiveInteractionsVector | ( | ) | const |
| agx::Real agxModel::SuctionCup::getArea | ( | ) | const |
| agx::Real agxModel::SuctionCup::getAvailableVacuumForce | ( | ) | const |
The available vacuum force is a pre calculated value by the virtual VacuumSystem::calculateAvailableVacuumForce function.
This function is just a getter for the latest found value, which is updated in the SuctionGripper::pre callback.
| agx::Real agxModel::SuctionCup::getCurrentLeakageArea | ( | ) | const |
|
protected |
| agx::Real agxModel::SuctionCup::getLipRadius | ( | ) | const |
| agx::Real agxModel::SuctionCup::getMountingRadius | ( | ) | const |
| agx::Vec3 agxModel::SuctionCup::getNormal | ( | ) | const |
| agx::RigidBody * agxModel::SuctionCup::getRigidBody | ( | ) |
| const agx::RigidBody * agxModel::SuctionCup::getRigidBody | ( | ) | const |
| size_t agxModel::SuctionCup::getSealResolution | ( | ) | const |
| const agxCollide::GeometryRefSetVector & agxModel::SuctionCup::getSealSensors | ( | ) | const |
| agx::Real agxModel::SuctionCup::getSensorDistance | ( | ) | const |
| SuctionCupSensorFilter * agxModel::SuctionCup::getSensorFilter | ( | ) |
|
protected |
|
protected |
|
protected |
| bool agxModel::SuctionCup::isValid | ( | ) | const |
Verify if the cup is valid.
|
protected |
|
protected |
| void agxModel::SuctionCup::setMountingRadius | ( | agx::Real | radius | ) |
Set the mounting radius.
Will default to the half of the lip radius Could effect the airflow for more advanced VacuumSystem models.
|
virtual |
Calculates the leakage area.
The last result can be accessed through getCurrentLeakageArea().
| void agxModel::SuctionCup::updateVacuumForces | ( | const VacuumSystem * | vacuumSystem | ) |
Will call the virtual function VacuumSystem::calculateAvailableVacuumForce; then apply the vacuum forces.
|
protected |
Definition at line 630 of file SuctionGripper.h.
|
protected |
Definition at line 612 of file SuctionGripper.h.
|
protected |
Definition at line 625 of file SuctionGripper.h.
|
protected |
Definition at line 624 of file SuctionGripper.h.
|
protected |
Definition at line 628 of file SuctionGripper.h.
|
protected |
Definition at line 616 of file SuctionGripper.h.
|
protected |
Definition at line 631 of file SuctionGripper.h.
|
protected |
Definition at line 620 of file SuctionGripper.h.
|
protected |
Definition at line 623 of file SuctionGripper.h.
|
protected |
Definition at line 614 of file SuctionGripper.h.
|
protected |
Definition at line 613 of file SuctionGripper.h.
|
protected |
Definition at line 618 of file SuctionGripper.h.
|
protected |
Definition at line 622 of file SuctionGripper.h.
|
protected |
Definition at line 621 of file SuctionGripper.h.
|
protected |
Definition at line 615 of file SuctionGripper.h.
|
protected |
Definition at line 627 of file SuctionGripper.h.
|
protected |
Definition at line 617 of file SuctionGripper.h.
|
protected |
Definition at line 619 of file SuctionGripper.h.
|
protected |
Definition at line 626 of file SuctionGripper.h.