Skip to content

Commit

Permalink
fix push back
Browse files Browse the repository at this point in the history
Signed-off-by: nelson <[email protected]>
  • Loading branch information
kaichie committed Jan 17, 2024
1 parent 10d59e1 commit bbcb930
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nav2_collision_monitor/src/velocity_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ bool VelocityPolygon::getParameters(
.as_double();
}

sub_polygons_.emplace_back(
SubPolygonParameter{poly, velocity_polygon_name, linear_min, linear_max, theta_min,
theta_max, direction_end_angle, direction_start_angle});
SubPolygonParameter sub_polygon = {
poly, velocity_polygon_name, linear_min, linear_max, theta_min,
theta_max, direction_end_angle, direction_start_angle};
sub_polygons_.push_back(sub_polygon);
}
} catch (const std::exception & ex) {
RCLCPP_ERROR(
Expand Down

0 comments on commit bbcb930

Please sign in to comment.