-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified structure of the simulator; student workspace created
- Loading branch information
Showing
13 changed files
with
67 additions
and
93 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function [measurement] = compute_lidar_measurement(map, pose, lidar_config) | ||
%COMPUTE_MEASUREMENTS Summary of this function goes here | ||
|
||
measurement = zeros(1, length(lidar_config)); | ||
|
||
end | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
start_position = [1, 1, pi/2]; % (x, y, theta) | ||
|
||
map_name = 'maps/outdoor_1.txt'; | ||
map_name = 'maps/indoor_1.txt'; |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
function [public_vars] = student_workspace(read_only_vars,public_vars) | ||
%STUDENT_WORKSPACE Summary of this function goes here | ||
|
||
% 7. Perform initialization procedure | ||
if (read_only_vars.counter == 1) | ||
|
||
public_vars = init_particle_filter(read_only_vars, public_vars); | ||
public_vars = init_kalman_filter(read_only_vars, public_vars); | ||
|
||
end | ||
|
||
% 8. Update particle filter | ||
public_vars.particles = update_particle_filter(read_only_vars, public_vars); | ||
|
||
% 9. Update Kalman filter | ||
[public_vars.mu, public_vars.sigma] = update_kalman_filter(read_only_vars, public_vars); | ||
|
||
% 10. Estimate current robot position | ||
public_vars.estimated_pose = estimate_pose(public_vars); % (x,y,theta) | ||
|
||
% 11. Path planning | ||
public_vars.path = plan_path(read_only_vars, public_vars); | ||
|
||
% 12. Plan next motion command | ||
public_vars = plan_motion(read_only_vars, public_vars); | ||
|
||
|
||
|
||
end | ||
|
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
Binary file not shown.
Binary file not shown.
Binary file not shown.