Skip to content

Commit

Permalink
backport bullet-featherstone solver iters
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Davide Graziato <dgraziato10@gmail.com>
  • Loading branch information
iche033 authored and Fixit-Davide committed Apr 19, 2024
1 parent 8a5769a commit a596fc8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bullet-featherstone/src/Base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ WorldInfo::WorldInfo(std::string name_)

// By default a large impulse is applied when collisions penetrate
// which causes unstable behavior. Bullet featherstone does not support
// configuring split impulse and penetration threshold parameters. Instead the
// penentration impulse depends on the erp2 parameter so set to a small value
// (default is 0.2).
// configuring split impulse and penetration threshold parameters. Instead
// the penentration impulse depends on the erp2 parameter so set to a small
// value (default in bullet is 0.2).
this->world->getSolverInfo().m_erp2 = btScalar(0.002);

// Set solver iterations to the same as the default value in SDF,
// //world/physics/solver/bullet/iters
// (default in bullet is 10)
this->world->getSolverInfo().m_numIterations = 50u;
}

} // namespace bullet_featherstone
Expand Down

0 comments on commit a596fc8

Please sign in to comment.