Modify Simulate::InjectNoise to set target of exponential decay to value from key_ctrl if a valid key is provided as input.
PiperOrigin-RevId: 813819040 Change-Id: I79508039b17fb3484b71ae0d19614c32adacfa10
This commit is contained in:
committed by
Copybara-Service
parent
edbdb5195c
commit
401bf431b8
+2
-2
@@ -381,7 +381,7 @@ void PhysicsLoop(mj::Simulate& sim) {
|
||||
sim.speed_changed = false;
|
||||
|
||||
// inject noise
|
||||
sim.InjectNoise();
|
||||
sim.InjectNoise(sim.key);
|
||||
|
||||
// run single step, let next iteration deal with timing
|
||||
mj_step(m, d);
|
||||
@@ -412,7 +412,7 @@ void PhysicsLoop(mj::Simulate& sim) {
|
||||
}
|
||||
|
||||
// inject noise
|
||||
sim.InjectNoise();
|
||||
sim.InjectNoise(sim.key);
|
||||
|
||||
// call mj_step
|
||||
mj_step(m, d);
|
||||
|
||||
Reference in New Issue
Block a user