29 constexpr
static double defaultDampingOffset = 0.1;
47 bool removeCollision(
QPSolver & solver,
const std::string & b1Name,
const std::string & b2Name);
55 void removeCollisions(
QPSolver & solver,
const std::vector<mc_rbdyn::Collision> & cols);
63 bool removeCollisionByBody(
QPSolver & solver,
const std::string & byName,
const std::string & b2Name);
84 void addCollisions(
QPSolver & solver,
const std::vector<mc_rbdyn::Collision> & cols);
87 bool hasCollision(
const std::string & c1,
const std::string & c2)
const noexcept;
103 void addToSolverImpl(
QPSolver & solver)
override;
105 void update(
QPSolver & solver)
override;
107 void removeFromSolverImpl(
QPSolver & solver)
override;
124 std::vector<mc_rbdyn::Collision>
cols;
129 std::map<std::string, std::pair<int, mc_rbdyn::Collision>> collIdDict;
130 std::string __keyByNames(
const std::string & name1,
const std::string & name2);
132 std::pair<int, mc_rbdyn::Collision> __popCollId(
const std::string & name1,
const std::string & name2);
137 bool autoMonitor_ =
true;
138 std::unordered_set<int> monitored_;
139 std::shared_ptr<mc_rtc::gui::StateBuilder> gui_;
140 std::vector<std::string> category_;