| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -524,7 +524,7 @@ def goal_test(kb, goals): | |||
| 524 | 524 | if solution: | |
| 525 | 525 | return solution | |
| 526 | 526 | graphplan.graph.expand_graph() | |
| 527 | - if len(graphplan.graph.levels)>=2 and graphplan.check_leveloff(): | ||
| 527 | + if len(graphplan.graph.levels) >=2 and graphplan.check_leveloff(): | ||
| 528 | 528 | return None | |
| 529 | 529 | ||
| 530 | 530 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -653,6 +653,7 @@ def particle_filtering(e, N, HMM): | |||
| 653 | 653 | # _________________________________________________________________________ | |
| 654 | 654 | ## TODO: Implement continuous map for MonteCarlo similar to Fig25.10 from the book | |
| 655 | 655 | ||
| 656 | + | ||
| 656 | 657 | class MCLmap: | |
| 657 | 658 | """Map which provides probability distributions and sensor readings. | |
| 658 | 659 | Consists of discrete cells which are either an obstacle or empty""" | |
@@ -679,7 +680,7 @@ def ray_cast(self, sensor_num, kin_state): | |||
| 679 | 680 | # 0 | |
| 680 | 681 | # 3R1 | |
| 681 | 682 | # 2 | |
| 682 | - delta = ((sensor_num%2 == 0)*(sensor_num - 1), (sensor_num%2 == 1)*(2 - sensor_num)) | ||
| 683 | + delta = ((sensor_num % 2 == 0)*(sensor_num - 1), (sensor_num % 2 == 1)*(2 - sensor_num)) | ||
| 683 | 684 | # sensor direction changes based on orientation | |
| 684 | 685 | for _ in range(orient): | |
| 685 | 686 | delta = (delta[1], -delta[0]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments