File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
moveit_planners/stomp/include/stomp_moveit/math Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 44
44
45
45
// TODO(#2166): Replace with std types
46
46
#include < boost/random/variate_generator.hpp>
47
- #include < boost/random/normal_distribution.hpp>
48
- #include < boost/random/mersenne_twister.hpp>
49
- #include < boost/shared_ptr.hpp>
47
+
48
+ #include < random>
50
49
#include < cstdlib>
51
50
52
51
namespace stomp_moveit
@@ -79,9 +78,11 @@ class MultivariateGaussian
79
78
Eigen::MatrixXd covariance_cholesky_; /* *< Cholesky decomposition (LL^T) of the covariance */
80
79
81
80
int size_;
82
- boost::mt19937 rng_;
83
- boost::normal_distribution<> normal_dist_;
84
- std::shared_ptr<boost::variate_generator<boost::mt19937, boost::normal_distribution<> > > gaussian_;
81
+ std::mt19937 rng_;
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_;
85
86
};
86
87
87
88
// ////////////////////// template function definitions follow //////////////////////////////
@@ -93,7 +94,7 @@ MultivariateGaussian::MultivariateGaussian(const Eigen::MatrixBase<Derived1>& me
93
94
{
94
95
rng_.seed (rand ());
95
96
size_ = mean.rows ();
96
- gaussian_.reset (new boost::variate_generator<boost ::mt19937, boost ::normal_distribution<> >(rng_, normal_dist_));
97
+ gaussian_.reset (new boost::variate_generator<std ::mt19937, std ::normal_distribution<double > >(rng_, normal_dist_));
97
98
}
98
99
99
100
template <typename Derived>
You can’t perform that action at this time.
0 commit comments