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 3f83c66 commit 77e36baCopy full SHA for 77e36ba
apps/bot_manager/lib/bot_state_machine.ex
@@ -308,7 +308,13 @@ defmodule BotManager.BotStateMachine do
308
# Replacing first and last points with the actual start and end points
309
shortest_path = ([from] ++ Enum.slice(shortest_path, 1, Enum.count(shortest_path) - 2) ++ [to])
310
|> AStarNative.simplify_path(bot_state_machine.obstacles)
311
- |> SplinePath.smooth_path()
+
312
+ shortest_path = if System.get_env("TEST_PATHFINDING_SPLINES") == "true" do
313
+ shortest_path
314
+ |> SplinePath.smooth_path()
315
+ else
316
317
+ end
318
319
# The first point should only be necessary to simplify the path
320
shortest_path = tl(shortest_path)
0 commit comments