From 0cf4e79b48b84dbab999cad214026b618f8eaf17 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Mon, 13 Nov 2023 06:55:31 +0100 Subject: [PATCH] Fix NavigationObstacle elevation FixesNavigationObstacle elevation. (cherry picked from commit fc4cc27e662114b5395d6a59b398e6b7c3132be1) --- modules/navigation/nav_map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp index ea306e80ebb..f447b5f1687 100644 --- a/modules/navigation/nav_map.cpp +++ b/modules/navigation/nav_map.cpp @@ -1126,6 +1126,8 @@ void NavMap::_update_rvo_obstacles_tree_2d() { for (size_t i = 0; i < rvo_2d_vertices.size(); i++) { RVO2D::Obstacle2D *rvo_2d_obstacle = new RVO2D::Obstacle2D(); rvo_2d_obstacle->point_ = rvo_2d_vertices[i]; + rvo_2d_obstacle->elevation_ = _obstacle_position.y; + rvo_2d_obstacle->avoidance_layers_ = _obstacle_avoidance_layers; if (i != 0) {