Skip to content

Commit

Permalink
Revert "random initialization changed to hover condition"
Browse files Browse the repository at this point in the history
This reverts commit 012189c
in order to handle dynamics that aren't quad dynamics.
  • Loading branch information
zjwilliams20 committed Feb 3, 2023
1 parent 012189c commit 1f265df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dpilqr/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def solve_rhc(
N,
*args,
centralized=True,
n_d=3,
n_d=2,
step_size=1,
J_converge=None,
dist_converge=None,
Expand Down Expand Up @@ -141,8 +141,8 @@ def predicate(x, _):
xi = x0.reshape(1, -1)
X = xi.copy()
# U = np.zeros((N, n_u))
# U = np.random.rand(N, n_u) * 0.01
U = np.tile([0, 0, g], (N, n_agents))
U = np.random.rand(N, n_u) * 0.01
# U = np.tile([g, 0, 0], (N, n_agents))
centralized_solver = ilqrSolver(problem, N)

t = 0
Expand Down

0 comments on commit 1f265df

Please sign in to comment.