File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
moveit_planners/stomp/include/stomp_moveit/math Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ class MultivariateGaussian
80
80
int size_;
81
81
std::mt19937 rng_;
82
82
std::normal_distribution<double > normal_dist_;
83
- std::shared_ptr<boost::variate_generator<
84
- std::mt19937, STD_MSGS__MSG__DETAIL__COLOR_RGBA__TYPE_SUPPORT_HPP_::std::normal_distribution<>>>
85
- gaussian_;
83
+ // std::shared_ptr<boost::variate_generator<
84
+ // std::mt19937, STD_MSGS__MSG__DETAIL__COLOR_RGBA__TYPE_SUPPORT_HPP_::std::normal_distribution<>>>
85
+ // gaussian_;
86
86
};
87
87
88
88
// ////////////////////// template function definitions follow //////////////////////////////
@@ -94,14 +94,14 @@ MultivariateGaussian::MultivariateGaussian(const Eigen::MatrixBase<Derived1>& me
94
94
{
95
95
rng_.seed (rand ());
96
96
size_ = mean.rows ();
97
- gaussian_.reset (new boost::variate_generator<std::mt19937, std::normal_distribution<double >>(rng_, normal_dist_));
97
+ // gaussian_.reset(new boost::variate_generator<std::mt19937, std::normal_distribution<double>>(rng_, normal_dist_));
98
98
}
99
99
100
100
template <typename Derived>
101
101
void MultivariateGaussian::sample (Eigen::MatrixBase<Derived>& output, bool use_covariance)
102
102
{
103
103
for (int i = 0 ; i < size_; ++i)
104
- output (i) = (*gaussian_)( );
104
+ output (i) = normal_dist_ (rng_ );
105
105
106
106
if (use_covariance)
107
107
{
You can’t perform that action at this time.
0 commit comments