Skip to content

Commit

Permalink
Merge branch 'i23-nonlinear_programming'
Browse files Browse the repository at this point in the history
# Conflicts:
#	matlab_simulation/code v1.0/ME597-8-NLP/nonlinearrhc.m
  • Loading branch information
neginlashkari committed Apr 3, 2016
1 parent 87d767d commit ba2339a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions matlab_simulation/code v1.0/ME597-8-NLP/nonlinearrhc.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,18 @@

% Receding horizon goal
<<<<<<< HEAD
<<<<<<< HEAD
xd = xdT(1:T,:)
=======
xd = xdT(1:T,:);
ii=1; % figure name
filename = 'NLP_Animation.gif'; % saving animation file in .gif file
>>>>>>> origin/i23-nonlinear_programming
=======
xd = xdT(1:T,:);
ii=1; % figure name
filename = 'NLP_Animation.gif'; % saving animation file in .gif file
>>>>>>> i23-nonlinear_programming

% Repeat optimization at each timestep
for i=1:TTot-T
Expand All @@ -112,6 +118,7 @@

% Plot results
<<<<<<< HEAD
<<<<<<< HEAD
% figure(2);clf; hold all;
% plot(1:T,x)
% plot(1:T,y)
Expand All @@ -121,6 +128,8 @@

figure(i); clf; hold on;
=======
=======
>>>>>>> i23-nonlinear_programming
figure(ii); clf; hold on;
>>>>>>> origin/i23-nonlinear_programming
plot(x,y,'bx-');
Expand All @@ -134,6 +143,7 @@
% draw obstacles
if (withobs)
for j=1:numObsts
<<<<<<< HEAD
<<<<<<< HEAD
plot(obs(j,1), obs(j,2),'bx');
circle(i, obs(j,:), radius(j));
Expand All @@ -144,6 +154,8 @@
F(i) = getframe;
end
=======
=======
>>>>>>> i23-nonlinear_programming
plot(obs(j,1), obs(j,2),'kx');
circle(ii, obs(j,:), radius(j));
end
Expand Down Expand Up @@ -173,4 +185,7 @@



<<<<<<< HEAD
>>>>>>> origin/i23-nonlinear_programming
=======
>>>>>>> i23-nonlinear_programming

0 comments on commit ba2339a

Please sign in to comment.