]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commit
Fix duplicated nodes when steered
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 16 Mar 2023 14:52:34 +0000 (15:52 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 16 Mar 2023 14:52:34 +0000 (15:52 +0100)
commit30dd49d02851253fecc5de3b85656d2a22ec21fc
tree93fef3f63294600c3df20a806488381d60896490
parent28059a01d0a29619a27e3edd0a4f7d601151c545
Fix duplicated nodes when steered

Require steer(f, t) method to set _steered member variable to include f
and t, i.e. f == _steered.front() and t == _steered.back().

This has consequences for collide_steered method as if there is only one
node left, it is already part of the tree and all the other (steered)
nodes collide. In such a case, drop the steered as colliding.
rrts/incl/rrts.hh
rrts/src/rrtext2.cc
rrts/src/rrts.cc