);
std::normal_distribution<float> hdist(
0,
- this->samplingInfo_.h / 3
+ this->samplingInfo_.h
);
if (!this->samplingInfo_.r) {
float dx = BCAR_WIDTH / 2 +
} else {
float dr = std::abs(xdist(this->gen_));
float dh = hdist(this->gen_);
- x += dr * cos(this->samplingInfo_.sh + M_PI / 2 + dh);
- y += dr * sin(this->samplingInfo_.sh + M_PI / 2 + dh);
+ x += dr * cos(
+ this->samplingInfo_.sh +
+ this->samplingInfo_.dh * M_PI / 2 +
+ dh
+ );
+ y += dr * sin(
+ this->samplingInfo_.sh +
+ this->samplingInfo_.dh * M_PI / 2 +
+ dh
+ );
h = -M_PI / 2 + dh;
}
return new RRTNode(