Commit 94bddcba authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Sample between lower bound and upper bound in SampleSE2::sample.

   This fixes test_fcl_simple.
parent dff9201b
......@@ -184,8 +184,8 @@ public:
Vecnf<3> sample() const
{
Vecnf<3> q;
q[0] = rng.uniformReal(lower_bound[0], lower_bound[1]);
q[1] = rng.uniformReal(lower_bound[1], lower_bound[2]);
q[0] = rng.uniformReal(lower_bound[0], upper_bound[0]);
q[1] = rng.uniformReal(lower_bound[1], upper_bound[1]);
q[2] = rng.uniformReal(-boost::math::constants::pi<FCL_REAL>(),
boost::math::constants::pi<FCL_REAL>());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment