Improve warmstarting if island structure exists.
PiperOrigin-RevId: 752901506 Change-Id: I062d14df7da7d9dc1a2c1c30a16d0db7215af336
This commit is contained in:
committed by
Copybara-Service
parent
4c92c60988
commit
1766a388cc
@@ -629,6 +629,15 @@ static void warmstart(const mjModel* m, mjData* d) {
|
||||
}
|
||||
}
|
||||
|
||||
// have island structure: unconstrained qacc = qacc_smooth
|
||||
if (d->nisland > 0) {
|
||||
for (int i=0; i < nv; i++) {
|
||||
if (d->dof_island[i] < 0) {
|
||||
d->qacc[i] = d->qacc_smooth[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mj_freeStack(d);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user