9 #include "imstkPbdObjectGrasping.h" 21 std::shared_ptr<PbdObject> obj1,
22 std::shared_ptr<RigidObject2> obj2);
31 const std::vector<PbdParticleId>& ptsA,
32 const std::vector<double>& weightsA,
33 const std::vector<PbdParticleId>& ptsB,
34 const std::vector<double>& weightsB,
35 double stiffnessA,
double stiffnessB)
override;
37 void initGraphEdges(std::shared_ptr<TaskNode> source, std::shared_ptr<TaskNode> sink)
override;
40 std::shared_ptr<RigidObject2> m_rbdObj =
nullptr;
41 std::shared_ptr<PbdObject> m_pbdObj =
nullptr;
void updatePicking()
Update picking state, this should move grasp points.
This class defines grasping of a PbdObject via different picking methods. Where grasping is define as...
void addPointToPointConstraint(const std::vector< PbdParticleId > &ptsA, const std::vector< double > &weightsA, const std::vector< PbdParticleId > &ptsB, const std::vector< double > &weightsB, double stiffnessA, double stiffnessB) override
Add constraint between a point on each element given via barycentric coordinates pt position = weight...
void initGraphEdges()
Initializes the edges of the SceneObject's computational graph.