Fix quaternion typos.
PiperOrigin-RevId: 453203844 Change-Id: I7d788c21bb00b7746f941fb2cf755f0b046e35f2
This commit is contained in:
committed by
Copybara-Service
parent
16baac9353
commit
53d3220fcc
@@ -72,7 +72,7 @@ static void add_noise(const mjModel* m, mjData* d, mjtStage stage) {
|
||||
rnd[0] = mju_standardNormal(rnd+1);
|
||||
rnd[2] = mju_standardNormal(rnd+3);
|
||||
|
||||
// scale angle, normalize axis, make quaterion
|
||||
// scale angle, normalize axis, make quaternion
|
||||
rnd[0] *= noise;
|
||||
mju_normalize3(rnd+1);
|
||||
mju_axisAngle2Quat(quat, rnd+1, rnd[0]);
|
||||
|
||||
Reference in New Issue
Block a user