Skip to content

Commit

Permalink
PathPlanning/InformedRRTStar/informed_rrt_star.py: Fix hard coded gra…
Browse files Browse the repository at this point in the history
…ph axis

- Use self.min_rand, self.max_rand variable values in place of -2, 15
  • Loading branch information
wltjr committed Feb 23, 2024
1 parent b1bdff2 commit aa2b409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PathPlanning/InformedRRTStar/informed_rrt_star.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def draw_graph(self, x_center=None, c_best=None, c_min=None, e_theta=None,

plt.plot(self.start.x, self.start.y, "xr")
plt.plot(self.goal.x, self.goal.y, "xr")
plt.axis([-2, 15, -2, 15])
plt.axis([self.min_rand, self.max_rand, self.min_rand, self.max_rand])
plt.grid(True)
plt.pause(0.01)

Expand Down

0 comments on commit aa2b409

Please sign in to comment.