From 45f3d2c7dcb3e7f19c04f4224211a6b31b27a3d1 Mon Sep 17 00:00:00 2001 From: dfridovi Date: Mon, 25 Nov 2024 11:58:46 -0600 Subject: [PATCH] [skip ci] packing zero input traj now --- examples/TrajectoryExamples.jl | 2 ++ examples/utils.jl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/TrajectoryExamples.jl b/examples/TrajectoryExamples.jl index 41347c6..e35dfa7 100644 --- a/examples/TrajectoryExamples.jl +++ b/examples/TrajectoryExamples.jl @@ -45,6 +45,8 @@ using Makie: Makie using LinearAlgebra: norm_sqr, norm using ProgressMeter: ProgressMeter +using Infiltrator + include("utils.jl") include("lane_change.jl") diff --git a/examples/utils.jl b/examples/utils.jl index fcac7c3..b5785fe 100644 --- a/examples/utils.jl +++ b/examples/utils.jl @@ -194,7 +194,7 @@ function TrajectoryGamesBase.solve_trajectory_game!( parameter_value; solver_type = MCPSolver.InteriorPoint(), x₀ = [ - zero_input_trajectory(; game, horizon, initial_state) + pack_trajectory(zero_input_trajectory(; game, horizon, initial_state)) zeros(sum(parametric_game.dims.λ) + parametric_game.dims.λ̃) ], )