]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Get rid of boost includes
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 15 Aug 2022 12:18:26 +0000 (14:18 +0200)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 15 Aug 2022 12:21:00 +0000 (14:21 +0200)
incl/reeds_shepp.h
src/reeds_shepp.cpp

index ba0904e3486e939796986c5f08d244bdb7c8fdbf..3065de047281ff560e9b9a11fd0c6ef6d4361249 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SPACES_REEDS_SHEPP_STATE_SPACE_
 #define SPACES_REEDS_SHEPP_STATE_SPACE_
 
-#include <boost/math/constants/constants.hpp>
+#include <limits>
 #include <cassert>
 
 typedef int (*ReedsSheppPathSamplingCallback)(double q[3], void* user_data);
index 293a90c1c9a017e1d81f1d5a8a0450432ae5a582..2955312c16b8017336675cff52e89372c629ec1e 100644 (file)
@@ -4,14 +4,13 @@
 // SPDX-License-Identifier: BSD-3-Clause
 
 #include "reeds_shepp.h"
-#include <boost/math/constants/constants.hpp>
-
+#include <cmath>
 
 namespace
 {
     // The comments, variable names, etc. use the nomenclature from the Reeds & Shepp paper.
 
-    const double pi = boost::math::constants::pi<double>();
+    const double pi = M_PI;
     const double twopi = 2. * pi;
     const double RS_EPS = 1e-6;
     const double ZERO = 10*std::numeric_limits<double>::epsilon();