fixed equal random numbers for both vehicle and obstacle
This commit is contained in:
parent
5b55decd28
commit
a5c7025d0c
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ typedef bool(*CollisionFunction)(const Vector3d &a, const Vector3d &b);
|
||||||
class MultivariateNormalDistribution : normal_distribution<double> {
|
class MultivariateNormalDistribution : normal_distribution<double> {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
mt19937 gen;
|
mt19937 &gen;
|
||||||
|
|
||||||
Matrix<double, Dynamic, Dynamic> covar;
|
Matrix<double, Dynamic, Dynamic> covar;
|
||||||
Matrix<double, Dynamic, Dynamic> transform;
|
Matrix<double, Dynamic, Dynamic> transform;
|
||||||
|
@ -32,7 +32,7 @@ protected:
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MultivariateNormalDistribution(const Matrix<double, Dynamic, 1> &m, const Matrix<double, Dynamic, Dynamic> &c, const mt19937 &g) :
|
MultivariateNormalDistribution(const Matrix<double, Dynamic, 1> &m, const Matrix<double, Dynamic, Dynamic> &c, mt19937 &g) :
|
||||||
gen(g),
|
gen(g),
|
||||||
mean(m),
|
mean(m),
|
||||||
covar(c),
|
covar(c),
|
||||||
|
|
Loading…
Add table
Reference in a new issue