]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Reorder rrts initialization
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Tue, 31 May 2022 14:29:38 +0000 (16:29 +0200)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Tue, 31 May 2022 14:29:38 +0000 (16:29 +0200)
src/rrts.cc

index 2212e597b2eca7e6d32adeb5a8f6f8b175a39443..8e175a27ff787335c10337175a3c24c498c6bd7f 100644 (file)
@@ -257,7 +257,7 @@ RRTS::compute_path()
        std::reverse(this->path_.begin(), this->path_.end());
 }
 
-RRTS::RRTS() : gen_(std::random_device{}()), goal_(0.0, 0.0, 0.0, 0.0)
+RRTS::RRTS() : goal_(0.0, 0.0, 0.0, 0.0), gen_(std::random_device{}())
 {
        this->nodes_.reserve(4000000);
        this->steered_.reserve(1000);