We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0006e commit 871b2d3Copy full SHA for 871b2d3
apps/bot_manager/lib/bot_state_machine.ex
@@ -337,7 +337,13 @@ defmodule BotManager.BotStateMachine do
337
# Replacing first and last points with the actual start and end points
338
shortest_path = ([from] ++ Enum.slice(shortest_path, 1, Enum.count(shortest_path) - 2) ++ [to])
339
|> AStarNative.simplify_path(bot_state_machine.obstacles)
340
- |> SplinePath.smooth_path()
+
341
+ shortest_path = if System.get_env("TEST_PATHFINDING_SPLINES") == "true" do
342
+ shortest_path
343
+ |> SplinePath.smooth_path()
344
+ else
345
346
+ end
347
348
# The first point should only be necessary to simplify the path
349
shortest_path = tl(shortest_path)
0 commit comments