Remove pausing pedrestian when reaching points from a path

This commit is contained in:
bernatx 2022-11-22 15:40:12 +01:00 committed by bernat
parent b6e7a6a01a
commit cb58f47231
1 changed files with 1 additions and 2 deletions

View File

@ -62,9 +62,8 @@ namespace nav {
_nav->GetWalkerPosition(it.first, current);
// check distance to the target point
carla::geom::Vector3D dist(target.x - current.x, target.z - current.z, target.y - current.y);
if (dist.SquaredLength() <= 4) {
if (dist.SquaredLength() <= 1) {
info.state = WALKER_IN_EVENT;
_nav->PauseAgent(it.first, true);
}
}
break;