-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Trexter
committed
Apr 29, 2018
1 parent
2d1b707
commit 0730a15
Showing
6 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,40 @@ | ||
start = [0, 0, 0, 0, 0;0, 0, 0, 0, 0;0, 0, 0, 0, 0]; | ||
mid = [5; 2;2.5;1; -5; -3] | ||
final = [10, 0, 0, 0, 0;5, 0, 0, 0, 0; 0.3, 0, 0, 0, 0] | ||
start = [0, 0, 0, 0, 0;0, 0, 0, 0, 0;2, 0, 0, 0, 0]; | ||
mid = [-5; -3;2.5;0; -5; 2.5; 10; 0; 2.5; 5; 5; 2.5]; | ||
final = [10, 0, 0, 0, 0;10, 0, 0, 0, 0; 2, 0, 0, 0, 0] | ||
|
||
[traj, flightTime] = minimumTimeTrajectoryGenerator(start, mid, final, 'VEL', 5, [1.5, 1.5, 1], 10, -45, 100, pi/6) | ||
|
||
[traj, flightTime] = minimumTimeTrajectoryGenerator(start, mid, final, 'VEL', 5, [1.5, 1.5, 1], 10, -45, 100, pi/6, 1) | ||
|
||
%plot the trajectory | ||
clf; | ||
[p1, p2] = trajectoryPlotter(traj); | ||
daspect([5 5 5]) | ||
xlim([-10, 15]) | ||
ylim([-10, 15]) | ||
zlim([-10, 10]) | ||
hold on | ||
arrow3(p1, p2, 'b', 0.4) | ||
title('Initial Trajectory') | ||
xlabel('x (m)') | ||
ylabel('y (m)') | ||
grid on; | ||
savefig('initial_trajectory'); | ||
hold off | ||
|
||
[traj, flightTime] = minimumTimeTrajectoryGenerator(start, mid, final, 'VEL', 5, [1.5, 1.5, 1], 10, -45, 100, pi/6, 10) | ||
|
||
%plot the trajectory | ||
clf; | ||
[p1, p2] = trajectoryPlotter(traj); | ||
daspect([5 5 5]) | ||
xlim([-10, 15]) | ||
ylim([-10, 15]) | ||
zlim([-10, 10]) | ||
hold on | ||
arrow3(p1, p2, 'b', 0.4) | ||
title('Final Trajectory') | ||
xlabel('x (m)') | ||
ylabel('y (m)') | ||
grid on; | ||
savefig('final_trajectory'); | ||
hold off |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters