Go to the documentation of this file.
9 #include <tvm/function/abstract/Function.h>
11 #include <sch/CD/CD_Pair.h>
13 #include <RBDyn/Jacobian.h>
39 const Eigen::VectorXd & r1Selector,
40 const Eigen::VectorXd & r2Selector,
47 inline double distance() const noexcept {
return this->value()(0); }
50 inline const Convex &
c1() const noexcept {
return *c1_; }
53 inline const Eigen::Vector3d &
p1() const noexcept {
return p1_; }
56 inline const Convex &
c2() const noexcept {
return *c2_; }
59 inline const Eigen::Vector3d &
p2() const noexcept {
return p2_; }
64 void updateVelocity();
65 void updateJacobian();
66 void updateNormalAcceleration();
69 uint64_t prevIter_ = 0;
75 Eigen::Vector3d p1_ = Eigen::Vector3d::Zero();
76 Eigen::Vector3d p2_ = Eigen::Vector3d::Zero();
88 Eigen::Vector3d normVecDist_ = Eigen::Vector3d::Zero();
89 Eigen::Vector3d prevNormVecDist_ = Eigen::Vector3d::Zero();
90 Eigen::Vector3d speedVec_ = Eigen::Vector3d::Zero();
Eigen::VectorXd selector_
Definition: CollisionFunction.h:84
std::shared_ptr< CollisionFunction > CollisionFunctionPtr
Definition: CollisionFunction.h:97
const Eigen::Vector3d & p2() const noexcept
Definition: CollisionFunction.h:59
#define MC_TVM_DLLAPI
Definition: api.h:47
double dt_
Definition: CollisionFunction.h:73
Definition: CollisionFunction.h:15
const Convex & c2() const noexcept
Definition: CollisionFunction.h:56
rbd::Jacobian jac_
Definition: CollisionFunction.h:83
Eigen::MatrixXd distJac_
Definition: CollisionFunction.h:94
Convex * c1_
Definition: CollisionFunction.h:71
const Eigen::Vector3d & p1() const noexcept
Definition: CollisionFunction.h:53
Convex * c2_
Definition: CollisionFunction.h:72
const Convex & c1() const noexcept
Definition: CollisionFunction.h:50
Eigen::MatrixXd fullJac_
Definition: CollisionFunction.h:93
sch::CD_Pair pair_
Definition: CollisionFunction.h:78
Eigen::Vector3d nearestPoint_
Definition: CollisionFunction.h:82
std::vector< ObjectData > data_
Definition: CollisionFunction.h:86
double distance() const noexcept
Definition: CollisionFunction.h:47
Definition: CollisionFunction.h:80
Definition: CollisionFunction.h:19