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 ccee3ae commit a64da99Copy full SHA for a64da99
apps/bot_manager/lib/bot_state_machine.ex
@@ -342,7 +342,13 @@ defmodule BotManager.BotStateMachine do
342
# Replacing first and last points with the actual start and end points
343
shortest_path = ([from] ++ Enum.slice(shortest_path, 1, Enum.count(shortest_path) - 2) ++ [to])
344
|> AStarNative.simplify_path(bot_state_machine.obstacles)
345
- |> SplinePath.smooth_path()
+
346
+ shortest_path = if System.get_env("TEST_PATHFINDING_SPLINES") == "true" do
347
+ shortest_path
348
+ |> SplinePath.smooth_path()
349
+ else
350
351
+ end
352
353
# The first point should only be necessary to simplify the path
354
shortest_path = tl(shortest_path)
0 commit comments