Commit e217c384 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

[bugfix] Create config shooter on change of type + fix bug in Gaussian.

parent 2b7fc002
......@@ -109,7 +109,7 @@ namespace hpp {
ConfigurationPtr_t Gaussian::shoot () const
{
boost::random::mt19937 eng;
static boost::random::mt19937 eng;
vector_t velocity (robot_->numberDof());
for (size_type i = 0; i < velocity.size(); ++i)
{
......
......@@ -261,6 +261,10 @@ namespace hpp {
type);
}
configurationShooterType_ = type;
if (robot_ && problem_) {
problem_->configurationShooter
(configurationShooters.get (configurationShooterType_) (robot_));
}
}
void ProblemSolver::addPathOptimizer (const std::string& type)
......
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