Skip to content

Changelog: v2.18 ​

v2.18.0 (unreleased) ​

RaiSim

  • Behaviour change: the position limits of revolute and prismatic joints act as contacts do. A joint that something pushes past its limit (a heap of limbs, a hard landing) is moved back to it at the error-reduction rate of World::setERP() times the violation, no faster than its velocity limit; a limit gives back within the step the impulse that other contacts and limits take over; and it starts from the impulse it held in the previous step. Before, a limit stopped the joint wherever it was, at any depth, could not give back an impulse within a solve, and started every step from zero, so two limits coupled through a light link fought for the whole iteration cap. atlas_ground (Atlas falling into a heap) runs 2.9 times as fast (0.76 s instead of 2.18 s); over 40 perturbed starting poses the contact solver needs 41 sweeps a step instead of 64 (fewer on 31 poses) and the worst limit violation is 0.08 rad instead of 0.28, but a heap whose joints were pushed past their stops keeps moving while they are restored (4 of 13 heaps rearranged after 6 s, against 1). A two-link chain resting on two coupled limits needs 9 sweeps a step instead of the cap of 150. stress_test (two ANYmals under random torques) is 13% faster and g1_hand_self_collision 9%; the other benchmarks are unchanged. World::resetContactSolverWarmStart() and checkpoints include the limit impulses. Spherical joint limits, velocity limits and joint friction are unchanged.
  • Fixed: a contact warm-started with an impulse of 2e5 N·s or more could skip its first visit in a solve and keep that impulse (a 3,000-tonne ball resting on the ground was launched at gravity times the time step once gravity was removed). The joint limits of heavy systems (effective mass above 1) now count their updates as impulses when the solver decides which rows have converged, so a limit is no longer left moving deeper into its stop.
  • Contact solver rows (contact::Single3DContactProblem) shrink from 896 to 768 bytes, and the fields a sticking contact between rigid single bodies without rolling or spinning friction reads in every solver sweep now sit in its first five cache lines (the soil-contact check and the second body's Jacobian pointers used to pull in one or two more). Results are bit-identical. On the new contact_solver_scaling benchmark the dynamics part of a step is 1-5% faster with 6k to 86k constraint rows.
  • Large contact solves are faster. A solve of 2,048 or more constraint rows that runs long (the previous solve took 16 sweeps or more, or this one reaches 16) copies the Jacobians and impulse responses of its rows between rigid single bodies into one array in row order, and the velocities of those bodies into another, and its remaining sweeps read and update the copies instead of following pointers into every body. Results are bit-identical. contact_solver_scaling takes 27.6% less time (towers of 4,374 boxes: 47 instead of 67 ms a step; 1,350 boxes: 12.7 instead of 15.0 ms); smaller and shorter solves, and every other benchmark, are unchanged.
  • API: removed Single3DContactProblem::pinWarmStart (nothing set it) and the BisectionContactSolver::resetWarmStart(const ContactProblems&) overload that cleared it; call resetWarmStart(). rollingSpinMappInv_i and rollingSpinMapp_i, per-solve scratch of rolling and spinning friction, are no longer members of the row; the solver keeps them.
  • New benchmark contact_solver_scaling with a MuJoCo counterpart: towers of resting boxes from about 1.5k to 86k constraint rows, reporting rows and sweeps per step, collision and dynamics time, and a signature of the final state.

RaiSim — physics for robotics and AI.