Pull request for Monte Carlo localisation algorithm - #266
Closed
Ridhwanluthra wants to merge 12 commits into
Closed
Conversation
added 11 commits
September 10, 2016 20:10
… executing code has been placed in monte_carlo_localisation.py, just run this with all the dependencies.
required for monte_carlo_localisation
…find the problem and fix that
norvig
reviewed
Mar 3, 2017
| maze = list(zip(*maze)) | ||
|
|
||
|
|
||
| def eval(r, p): |
Member
There was a problem hiding this comment.
Probably better not to shadow the builtin function eval
norvig
reviewed
Mar 3, 2017
| if x >= self.world_size - 1: | ||
| break | ||
| if maze[x][y] == 1: | ||
| y2 = y |
norvig
reviewed
Mar 3, 2017
|
|
||
| prob = 1.0; | ||
| for i in range(len(self.sense_orient)): | ||
| if (self.sense_orient[i] > 0 and self.sense_orient[i] < pi/2): |
Member
There was a problem hiding this comment.
I don't understand why you need to repeat code for each pi/2 quadrant?
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have created 2 new files, monte_carlo_localisation.py and robot_class.py.
To run the algorithm just run the monte_carlo_localisation.py and assuming the the dependencies are installed, it will first show the initial condition and if you close that plot it will run the algorithm and then show the plot after running the algorithm for 20 timesteps.
I am not sure what kind of a structure would you like me to give.
Let me know and i will fix it.
also i have made a few assumptions from the algorithm, like the speed, motion model, etc and also added a way for measurement. the sensor model that i am using is 4 sensors in 4 directions of the bot.
if you would like me to add or subtract anything just let me know.
as far as the styling goes i am still working on it.
Thank you