Skip to content

Commit

Permalink
Merged
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Dec 20, 2024
2 parents e0f3bb1 + 97adc97 commit cc5da8f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions PathPlanning/BreadthFirstSearch/breadth_first_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ def main():
print(__file__ + " start!!")

# start and goal position
sx = 10.0 # [m]
sy = 10.0 # [m]
gx = 50.0 # [m]
gy = 50.0 # [m]
grid_size = 2.0 # [m]
robot_radius = 1.0 # [m]
sx = 10 # [m]
sy = 10 # [m]
gx = 50 # [m]
gy = 50 # [m]
grid_size = 2 # [m]
robot_radius = 1 # [m]

# set obstacle positions
ox, oy = [], []
Expand All @@ -235,8 +235,8 @@ def main():
ox.append(20.0)
oy.append(float(i))
for i in range(0, 40):
ox.append(40.0)
oy.append(60.0 - i)
ox.append(40)
oy.append(60 - i)

if show_animation: # pragma: no cover
plt.plot(ox, oy, ".k")
Expand Down
14 changes: 7 additions & 7 deletions PathPlanning/Dijkstra/dijkstra.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ def main():
print(__file__ + " start!!")

# start and goal position
sx = -5.0 # [m]
sy = -5.0 # [m]
gx = 50.0 # [m]
gy = 50.0 # [m]
grid_size = 2.0 # [m]
sx = -5 # [m]
sy = -5 # [m]
gx = 50 # [m]
gy = 50 # [m]
grid_size = 2 # [m]
robot_radius = 1.0 # [m]

# set obstacle positions
Expand All @@ -236,8 +236,8 @@ def main():
ox.append(20.0)
oy.append(float(i))
for i in range(0, 40):
ox.append(40.0)
oy.append(60.0 - i)
ox.append(40)
oy.append(60 - i)

if show_animation: # pragma: no cover
plt.plot(ox, oy, ".k")
Expand Down
14 changes: 7 additions & 7 deletions PathPlanning/ProbabilisticRoadMap/probabilistic_road_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ def main(rng=None):
print(__file__ + " start!!")

# start and goal position
sx = 10.0 # [m]
sy = 10.0 # [m]
gx = 50.0 # [m]
gy = 50.0 # [m]
robot_size = 5.0 # [m]
sx = 10 # [m]
sy = 10 # [m]
gx = 50 # [m]
gy = 50 # [m]
robot_size = 5 # [m]

ox = []
oy = []
Expand All @@ -288,8 +288,8 @@ def main(rng=None):
ox.append(20.0)
oy.append(float(i))
for i in range(40):
ox.append(40.0)
oy.append(60.0 - i)
ox.append(40)
oy.append(60 - i)

if show_animation:
plt.plot(ox, oy, ".k")
Expand Down
14 changes: 7 additions & 7 deletions PathPlanning/VoronoiRoadMap/voronoi_road_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def main():
print(__file__ + " start!!")

# start and goal position
sx = 10.0 # [m]
sy = 10.0 # [m]
gx = 50.0 # [m]
gy = 50.0 # [m]
robot_size = 5.0 # [m]
sx = 10 # [m]
sy = 10 # [m]
gx = 50 # [m]
gy = 50 # [m]
robot_size = 5 # [m]

ox = []
oy = []
Expand All @@ -161,8 +161,8 @@ def main():
ox.append(20.0)
oy.append(float(i))
for i in range(40):
ox.append(40.0)
oy.append(60.0 - i)
ox.append(40)
oy.append(60 - i)

if show_animation: # pragma: no cover
plt.plot(ox, oy, ".k")
Expand Down

0 comments on commit cc5da8f

Please sign in to comment.