Skip to content
Snippets Groups Projects
Commit d023b551 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

using Quaterniond::UnitRandom()

parent abf66640
No related branches found
No related tags found
2 merge requests!39release after RAL,!38After 2nd RAL submission
...@@ -44,9 +44,9 @@ void generateRandomSetup() ...@@ -44,9 +44,9 @@ void generateRandomSetup()
// Random states // Random states
frm_p = Vector3d::Random() * 10; frm_p = Vector3d::Random() * 10;
frm_q = Quaterniond(Vector4d::Random().normalized()); frm_q = Quaterniond::UnitRandom();
sen_p = Vector3d::Random() * 10; sen_p = Vector3d::Random() * 10;
sen_q = Quaterniond(Vector4d::Random().normalized()); sen_q = Quaterniond::UnitRandom();
sen_bias = Vector3d::Random(); sen_bias = Vector3d::Random();
field = Vector3d::Random().normalized() * 50; field = Vector3d::Random().normalized() * 50;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment