AGXDynamics  2.35.0.3
SuctionGripper.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agxModel/export.h>
20 
21 #include <agx/Real.h>
22 #include <agx/Frame.h>
23 #include <agx/Vec2.h>
24 #include <agx/Constraint.h>
25 #include <agx/Referenced.h>
26 #include <agxUtil/agxUtil.h>
28 #include <agxStream/Serializable.h>
29 #include <agxSDK/Assembly.h>
30 #include <agxCollide/Line.h>
31 #include <agxCollide/Sphere.h>
32 #include <agxCollide/Mesh.h>
33 
34 namespace agxSDK
35 {
36  class Simulation;
37 }
38 
39 
40 namespace agxModel
41 {
42 
43 
52  {
53  public:
54 
56  {}
57 
59  {
61  }
62 
64  {
65  return m_collisionGeometries;
66  }
67 
69  virtual bool match(const agxCollide::Geometry* g0, const agxCollide::Geometry* g1) const override
70  {
71  const agxCollide::Geometry* geos[] = { g0, g1 };
72 
73  for (size_t j = 0; j < 2; ++j)
74  {
75  for (size_t i = 0; i < m_collisionGeometries.size(); ++i)
76  {
77  if (geos[j] == m_collisionGeometries[i])
78  return true;
79  }
80  }
81  return false;
82  }
83 
84  using ExecuteFilter::match;
85 
86  protected:
88  {
90  };
91 
92 
93  protected:
96  };
97 
98 
99 
102 
105 
119  {
120  public:
126 
127 
131  size_t getSealCount() const;
132 
136  bool getCentered() const;
137 
143  agx::Real getCenterDistance() const;
144 
150  agx::Vec3 getCenterNormalWorld() const;
151 
157  agx::Real getCalculatedScalarForce() const;
158 
164  agx::Vec3 getCalculatedForce() const;
165 
171  agx::Vec3 getFoundSurfacePositionWorld() const;
172 
176  agx::RigidBody* getRigidBody();
177 
181  agx::Vec3 getCurrentFrictionForce() const;
182 
186  agx::Vec3 getCurrentContactNormalForce() const;
187 
191  agx::Real getCurrentRelativeVelocity() const;
192 
193 
194  protected:
195  virtual ~SuctionCupInteraction();
196 
197  friend class SuctionCup;
198  friend class SuctionGripper;
199 
200  /*
201  Update the latest position found for where to apply the cvacuum force
202  */
203  void setFoundSurfacePositionWorld(agx::Vec3 worldPosition);
204 
208  void setRigidBody(agx::RigidBody* body);
209 
215  void updateEstimatedForcePosition(const SuctionCup* cup, agx::Real depth);
216 
221  void setCenterDistance(agx::Real distance);
222 
227  void setCenterNormalWorld(agx::Vec3 normal);
228 
229  void updateInteractedSeals(size_t sealIndex, agx::Real depth);
230 
231  void setCalculatedForce(agx::Vec3 force);
232  void setCalculatedScalarForce(agx::Real scalarForce);
233 
234  agx::Real getSealDepth(size_t sealIndex) const;
235 
236  bool hasSealInteraction(size_t sealIndex) const;
237 
245  virtual bool updateVacuumForce(const SuctionCup* cup, const VacuumSystem* vacuumSystem, agx::Real fraction);
246 
247  void reset();
248 
249  void addTemporaryGeometryContact(agxCollide::GeometryContact* gc);
250 
251  void renderInteraction(const SuctionCup* cup);
252 
263  };
264 
265 
268 
279  {
280  public:
289  VacuumSystem(agx::Real desiredVacuum);
290 
295  agx::Real calculateMaximumSuctionForce(SuctionCup* cup) const;
296 
301  virtual agx::Real calculateAvailableVacuumForce(SuctionCup* cup) const;
302 
308  virtual void step(agx::Real dt, const SuctionGripper* gripper);
309 
313  void setEnablePump(const bool& enable);
314 
318  bool getEnablePump() const;
319 
323  agx::Real getCurrentVacuum() const;
324 
330  void setDesiredVacuum(agx::Real vacuumLevel);
331 
335  agx::Real getDesiredVacuum() const;
336 
340  void setOutsidePressure(agx::Real pressure);
341 
345  agx::Real getOutsidePressure() const;
346 
350  agx::Real calculateGasSpeedAtLip(const SuctionCup* cup) const;
351 
355  void setOutsideGasDensity(agx::Real density);
356 
360  agx::Real getOutsideGasDensity() const;
361 
363 
364  protected:
365  virtual ~VacuumSystem();
366  VacuumSystem();
371  void setCurrentVacuum(agx::Real vacuum);
379  };
380 
381 
417  class AGXMODEL_EXPORT SuctionCup : public virtual agx::Referenced, public virtual agxStream::Serializable
418  {
419  public:
431  SuctionCup(agx::RigidBody* cupBody,
432  agx::Real lipRadius = agx::Real(0.025),
433  agx::Real lipHeight = agx::Real(0.01),
434  size_t sealResolution = size_t(0),
435  agx::Vec3 localLineSensorVector = agx::Vec3(0,0,-0.1),
436  agx::Real sealSensorReach = agx::Real(0.01));
437 
438 
442  agx::Vec3 getNormal() const;
443 
448  agx::Real getArea() const;
449 
453  const agx::RigidBody* getRigidBody() const;
454 
458  agx::RigidBody* getRigidBody();
459 
463  agx::Real getLipRadius() const;
464 
471  void setMountingRadius(agx::Real radius);
472 
476  agx::Real getMountingRadius() const;
477 
481  bool isValid() const;
482 
486  agx::Real getCurrentLeakageArea() const;
487 
491  size_t getSealResolution() const;
492 
496  agx::Real getSensorDistance() const;
497 
501  SuctionCupSensorFilter* getSensorFilter();
502 
510  agx::Real getAvailableVacuumForce() const;
511 
515  const agxCollide::GeometryRefSetVector& getSealSensors() const;
516 
521  agx::Vector < agxModel::SuctionCupInteraction*> getActiveInteractionsVector() const;
522 
527  virtual void updateLeakageArea();
528 
532  void applyVacuumForces(const VacuumSystem* vacuumSystem);
533 
534 
541  void updateVacuumForces(const VacuumSystem* vacuumSystem);
542 
543 
545 
546  protected:
547  SuctionCup();
548 
549  virtual ~SuctionCup();
550 
551  // Contact events.
553 
554  friend class SuctionGripper;
555 
556  void invalidateInteractions();
557 
561  agx::RigidBody* createDefaultCupBody();
562 
563  const agx::HashVector<agx::RigidBody*, SuctionCupInteractionRef>& getActiveInteractions() const;
564 
565  const SuctionCupInteractionRefVector& getDisabledInteractions() const;
566 
573  virtual agxModel::SuctionCupInteraction* createInteraction();
574 
580  void addNotification(agxSDK::Simulation* simulation);
581  void removeNotification(agxSDK::Simulation* simulation);
582 
583 
584  friend class SuctionGripper;
585 
588 
591 
592  void separation(
594 
597 
598  agx::Vec3 calculateLineP2() const;
599  void createLineSensor();
600  agxCollide::Geometry* createSealSensor(agx::RigidBody* body, agx::Vec3 bodyLocalPosition);
601  void createCupSealSensors();
602 
603  agx::Vec3 findSurfaceNormal(agxCollide::Shape* collidedShape,
604  agx::Vec3 pointAtSurface,
605  bool& success);
606 
607  SuctionCupInteraction* getActiveInteraction(agx::RigidBody* rigidBody);
608 
609  void collectCollisionGeometries();
610 
611  protected:
629  // Implementation dependent temporary variables, only valid per time step.
632 
633  };
634 
652  {
653  public:
660  SuctionGripper( agx::RigidBody* holderBody );
661 
665  bool setHolderRigidBody(agx::RigidBody* holderBody);
666 
670  agx::RigidBody* getHolderRigidBody();
671 
675  const agx::RigidBody* getHolderRigidBody() const;
676 
680  const SuctionCupRefVector& getSuctionCups() const;
681 
685  SuctionCupRefVector& getSuctionCups();
686 
692  void addSuctionCup(SuctionCup* cup);
693 
695  bool isValid() const;
696 
700  agx::Real getCurrentLeakage() const;
701 
705  const VacuumSystem* getVacuumSystem() const;
706 
710  VacuumSystem* getVacuumSystem();
711 
715  void setVacuumSystem(VacuumSystem* vacuumSystem);
716 
717  static agx::LockJoint* positionAndLockSuctionCup( agxModel::SuctionGripper* gripper,
719  agx::Vec3 holderLocalTranslate,
720  agx::Vec3 cupLocalTranslate);
721 
723 
724  protected:
725  SuctionGripper();
726 
727  virtual void updateValid();
728 
729  virtual ~SuctionGripper();
730 
731  // Adding to/removing from simulation.
732  virtual void addNotification( agxSDK::Simulation* simulation ) override;
733 
735 
736  virtual void removeNotification( agxSDK::Simulation* simulation )override;
737 
739 
740 
741  // Step events.
743 
744  virtual void preCollide(const agx::TimeStamp&);
745  virtual void pre(const agx::TimeStamp&);
746  virtual void post(const agx::TimeStamp&);
747  virtual void last(const agx::TimeStamp&);
748 
749 
750 
751  protected:
752  // More persistent variables, will be serialized.
754  bool m_valid;
758 
759  };
760 
764  {
765  public:
785  SingleCupSuctionGripper(size_t sealResolution,
786  agx::Real gripperRadius = agx::Real(0.025),
787  agx::Real gripperHeight = agx::Real(0.01),
788  agx::Real cupHeight = agx::Real(0.05),
789  agx::Real lipHeight = agx::Real(0.01),
790  agxCollide::Trimesh* deformableMesh = nullptr,
791  agx::Material* cupMaterial = nullptr,
792  agx::RigidBody* holderBody = nullptr,
793  agx::RigidBody* cupBody = nullptr);
794 
798  agx::LockJoint* getLockJoint() const;
799 
803  agxCollide::Geometry* getTrimeshGeometry() const;
804 
808  agxCollide::Trimesh* getDeformableTrimesh() const;
809 
813  agxUtil::TrimeshDeformer* getTrimeshDeformer() const;
814 
816 
817  protected:
818  agx::RigidBody* createDefaultHolderBody(agx::Real radius, agx::Real height) const;
819  void setupDeformableTrimesh(SuctionCup* cup, agx::Frame* holderFrame);
820 
822  virtual ~SingleCupSuctionGripper();
823 
828 
829  };
830 }
831 
agxModel::SingleCupSuctionGripper::m_lock
agx::ref_ptr< agx::LockJoint > m_lock
Definition: SuctionGripper.h:824
agxModel::VacuumSystem::m_desiredVacuum
agx::Real m_desiredVacuum
Definition: SuctionGripper.h:372
agxModel::SuctionCup::m_currentLeakageArea
agx::Real m_currentLeakageArea
Definition: SuctionGripper.h:616
agxUtil::TrimeshDeformer
Definition: TrimeshDeformer.h:33
Referenced.h
agxModel::SuctionGripper::m_holderBody
agx::RigidBodyRef m_holderBody
Definition: SuctionGripper.h:753
agxSDK::StepEventListener::pre
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...
Definition: StepEventListener.h:106
agxModel::SuctionCupSensorFilter::m_collisionGeometries
agxCollide::GeometryRefVector m_collisionGeometries
Definition: SuctionGripper.h:95
agxModel::SuctionCupSensorFilter
Class for filtering objects of interest nearby a suction cup.
Definition: SuctionGripper.h:51
agxModel::SuctionCup::m_lipRadius
agx::Real m_lipRadius
Definition: SuctionGripper.h:613
agxModel::SuctionCup::m_body
agx::RigidBodyRef m_body
Definition: SuctionGripper.h:612
agx::Real
double Real
Definition: Real.h:42
Sphere.h
agxModel
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
agxData::GeometryPair
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Definition: Geometry.h:66
agxUtil::GeneralStepListener
Utility class to get step event callbacks to any class having the methods implemented.
Definition: agxUtil.h:524
agxModel::SuctionCup::m_sealSensors
agxCollide::GeometryRefSetVector m_sealSensors
Definition: SuctionGripper.h:626
agxModel::VacuumSystem::m_timeOfPumpStateToggled
agx::Real m_timeOfPumpStateToggled
Definition: SuctionGripper.h:375
agx::Vector< agx::ref_ptr< Geometry > >
agxModel::SuctionCup::m_calculatedAvailableVacuumForce
agx::Real m_calculatedAvailableVacuumForce
Definition: SuctionGripper.h:625
agxModel::VacuumSystem::m_outsideGasDensity
agx::Real m_outsideGasDensity
Definition: SuctionGripper.h:378
agx::Container::size
size_t size() const
Definition: Container.h:134
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
agxStream::Serializable
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
agxModel::SuctionCup::m_line
agx::ref_ptr< agxCollide::Line > m_line
Definition: SuctionGripper.h:620
agxModel::SuctionCup::m_sealDepthMeasurements
agx::RealVector m_sealDepthMeasurements
Definition: SuctionGripper.h:627
agxModel::SuctionCup::m_miniSphereTransform
agx::AffineMatrix4x4 m_miniSphereTransform
Definition: SuctionGripper.h:621
export.h
agxModel::SuctionCupSensorFilter::~SuctionCupSensorFilter
virtual ~SuctionCupSensorFilter()
Definition: SuctionGripper.h:87
agxModel::SuctionCupInteraction
Definition: SuctionGripper.h:118
agxModel::SuctionCup::m_sealSensorReach
agx::Real m_sealSensorReach
Definition: SuctionGripper.h:619
Constraint.h
agx::AffineMatrix4x4T< Real >
agxSDK::ExecuteFilter
Abstract base class that implements a filter that selects which events should trigger a Listener.
Definition: ExecuteFilter.h:34
agxSDK::StepEventListener::post
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...
Definition: StepEventListener.h:107
agxModel::SuctionCupSensorFilter::SuctionCupSensorFilter
SuctionCupSensorFilter()
Definition: SuctionGripper.h:55
Assembly.h
agxModel::SingleCupSuctionGripper::m_trimeshDeformer
agxUtil::TrimeshDeformerRef m_trimeshDeformer
Definition: SuctionGripper.h:827
agxModel::SuctionCupInteraction::m_interactedSealDepth
agx::HashVector< size_t, agx::Real > m_interactedSealDepth
Definition: SuctionGripper.h:261
agxModel::SuctionCup::m_activeInteractions
agx::HashVector< agx::RigidBody *, SuctionCupInteractionRef > m_activeInteractions
Definition: SuctionGripper.h:630
agxModel::SuctionCup::m_lipHeight
agx::Real m_lipHeight
Definition: SuctionGripper.h:614
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
agxModel::SingleCupSuctionGripper::m_trimeshGeometry
agxCollide::GeometryRef m_trimeshGeometry
Definition: SuctionGripper.h:826
agx::VectorPOD< GeometryContact * >
agxUtil::GeneralContactEventListener
Utility class to get contact event callbacks to any class having the methods implemented.
Definition: agxUtil.h:572
agx::observer_ptr< RigidBody >
agxModel::VacuumSystem::m_currentTime
agx::Real m_currentTime
Definition: SuctionGripper.h:376
agxSDK::StepEventListener::last
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...
Definition: StepEventListener.h:108
agxModel::SuctionCupInteraction::m_calculatedForcePosition
agx::Vec3 m_calculatedForcePosition
Definition: SuctionGripper.h:259
agxModel::SuctionGripper
This should be considered a template class used as a base for Suction Gripper simulation models.
Definition: SuctionGripper.h:651
agxModel::SuctionGripper::m_valid
bool m_valid
Definition: SuctionGripper.h:754
AGX_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
Vec2.h
agxModel::SuctionCupInteraction::m_body
agx::RigidBodyObserver m_body
Definition: SuctionGripper.h:260
agxSDK::Assembly
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
Definition: Assembly.h:66
agx::Vector::clear
void clear(ClearPolicy policy=SHRINK_BUFFER_AVERAGED)
Remove all elements, optionally with maintained buffer allocation.
Definition: Vector.h:491
agxModel::SuctionCupInteraction::m_foundSurfacePosition
agx::Vec3 m_foundSurfacePosition
Definition: SuctionGripper.h:256
agx::ref_ptr< RigidBody >
agxModel::SuctionCupSensorFilter::match
virtual bool match(const agxCollide::Geometry *g0, const agxCollide::Geometry *g1) const override
Inherited from agxSDK::ExecuteFilter.
Definition: SuctionGripper.h:69
agxModel::SuctionCup::m_sealResolution
size_t m_sealResolution
Definition: SuctionGripper.h:617
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
agxModel::SuctionCup::m_contactCallback
agx::ref_ptr< agxUtil::GeneralContactEventListener< SuctionCup > > m_contactCallback
Definition: SuctionGripper.h:628
agxCollide::Shape
Base class for a shape.
Definition: Shape.h:53
Line.h
agx::SetVector< agx::ref_ptr< agxCollide::Geometry > >
agxModel::SuctionCupInteraction::m_centerNormalWorld
agx::Vec3 m_centerNormalWorld
Definition: SuctionGripper.h:255
agxModel::SingleCupSuctionGripper::m_trimesh
agxCollide::TrimeshRef m_trimesh
Definition: SuctionGripper.h:825
agxModel::SuctionCupSensorFilter::addGeometry
void addGeometry(agxCollide::Geometry *geometry)
Definition: SuctionGripper.h:58
agxSDK::ContactEventListener::KeepContactPolicy
KeepContactPolicy
Defines whether contact should be kept or removed after contact/impact methods returns.
Definition: ContactEventListener.h:59
agxModel::SuctionCupInteraction::m_centerDistance
agx::Real m_centerDistance
Definition: SuctionGripper.h:254
TrimeshDeformer.h
agxModel::VacuumSystem::m_pumpEnabled
bool m_pumpEnabled
Definition: SuctionGripper.h:374
agxModel::SingleCupSuctionGripper
Definition: SuctionGripper.h:763
agxModel::VacuumSystem::m_outsidePressure
agx::Real m_outsidePressure
Definition: SuctionGripper.h:377
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
agxModel::SuctionCup::m_collisionFilter
SuctionCupSensorFilterRef m_collisionFilter
Definition: SuctionGripper.h:624
agxModel::SuctionCupInteraction::m_centered
bool m_centered
Definition: SuctionGripper.h:253
agx::LockJoint
Constraint that removes all 6 DOF between two bodies, or one body and the world.
Definition: LockJoint.h:28
Frame.h
agxModel::SuctionCup::m_lineSensor
agxCollide::GeometryRef m_lineSensor
Definition: SuctionGripper.h:623
Serializable.h
agx::HashSet
Inheritance with partial specialization due to bug with ref_ptr containers.
Definition: HashSet.h:665
agxModel::VacuumSystem::m_currentVacuum
agx::Real m_currentVacuum
Definition: SuctionGripper.h:373
agxModel::SuctionCup::m_mountingRadius
agx::Real m_mountingRadius
Definition: SuctionGripper.h:615
Mesh.h
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxCollide::GeometryContact
A contact between two geometries.
Definition: Contacts.h:269
agxModel::SuctionCupInteraction::m_calculatedForce
agx::Vec3 m_calculatedForce
Definition: SuctionGripper.h:258
agx::TimeStamp
agx::Real TimeStamp
Definition: TimeStamp.h:26
agxModel::SuctionCup::m_miniSphere
agxCollide::SphereRef m_miniSphere
Definition: SuctionGripper.h:622
agxModel::SuctionCup::m_localLineSensorVector
agx::Vec3 m_localLineSensorVector
Definition: SuctionGripper.h:618
agxModel::SuctionGripper::m_vacuumSystem
VacuumSystemRef m_vacuumSystem
Definition: SuctionGripper.h:755
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
agxModel::SuctionCupSensorFilter::getGeometries
const agxCollide::GeometryRefVector & getGeometries() const
Definition: SuctionGripper.h:63
agxModel::SuctionCupInteraction::m_calculatedScalarForce
agx::Real m_calculatedScalarForce
Definition: SuctionGripper.h:257
agx::Material
Main material class which acts as a holder of a Surface Material and a Bulk material.
Definition: Material.h:387
agx::Vec3T< Real >
agxModel::SuctionGripper::m_suctionCups
agxModel::SuctionCupRefVector m_suctionCups
Definition: SuctionGripper.h:757
agxCollide::Trimesh
Triangle mesh for geometric intersection tests.
Definition: Trimesh.h:42
Real.h
agxModel::SuctionCupInteraction::m_tempContacts
agxCollide::GeometryContactPtrVector m_tempContacts
Definition: SuctionGripper.h:262
agxModel::VacuumSystem
Basic model for a vacuum system used by a SuctionGripper.
Definition: SuctionGripper.h:278
agxModel::SuctionCupSensorFilter::m_sensors
agxCollide::GeometryRefVector m_sensors
Definition: SuctionGripper.h:90
agxModel::SuctionCup
Definition: SuctionGripper.h:417
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
agxModel::SuctionGripper::m_stepCallback
agx::ref_ptr< agxUtil::GeneralStepListener< SuctionGripper > > m_stepCallback
Definition: SuctionGripper.h:756
agxModel::SuctionCupRefSet
agx::HashSet< SuctionCupRef > SuctionCupRefSet
The SuctionCup model owns a body which is mean to be attached somewhere on a SuctionGripper holder.
Definition: SuctionGripper.h:416
agx::HashVector< size_t, agx::Real >
agxSDK::Assembly::removeNotification
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
Definition: Assembly.h:618
agxSDK::StepEventListener::preCollide
virtual void preCollide(const agx::TimeStamp &time)
Called before collision detection is performed in the simulation Implement this method in the derived...
Definition: StepEventListener.h:105
agxModel::SuctionCup::m_interactionsPool
SuctionCupInteractionRefVector m_interactionsPool
Definition: SuctionGripper.h:631
agxUtil.h
agx::Vector::push_back
void push_back(const T2 &value)
Definition: Vector.h:715
agxSDK::Assembly::addNotification
virtual void addNotification(agxSDK::Simulation *)
Called when this assembly is added to a simulation (given that it not already is in the simulation).
Definition: Assembly.h:613