File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
include/States/Algorithms
src/States/Algorithms/SamplingBased/RRT_STAR Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
3+ #include < cmath>
4+
35#include " States/Algorithms/GraphBased/Node.h"
46
57namespace path_finding_visualizer {
Original file line number Diff line number Diff line change 33#include < imgui-SFML.h>
44#include < imgui.h>
55
6- #include < boost/math/constants/constants.hpp>
76#include < condition_variable>
87#include < future>
98#include < memory>
Original file line number Diff line number Diff line change 11#pragma once
22
3- #include < math.h>
4-
3+ #include < cmath>
54#include < vector>
65
76namespace path_finding_visualizer {
Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ void RRT_STAR::initialize() {
4141 // update rewiring lower bounds
4242 // r_rrt > [(2*(1+1/d))*(area/unitNBallVolume)]^(1/d)
4343 r_rrt_ = rewire_factor_ *
44- std::pow (2 * (1.0 + 1.0 / 2.0 ) *
45- (1.0 / boost::math::constants::pi<double >()),
46- 1.0 / 2.0 );
44+ std::pow (2 * (1.0 + 1.0 / 2.0 ) * (1.0 / M_PI), 1.0 / 2.0 );
4745}
4846
4947// override initPlanner() function
You can’t perform that action at this time.
0 commit comments