We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b98afa4 + 46aae24 commit 927055bCopy full SHA for 927055b
PathPlanning/BatchInformedRRTStar/batch_informed_rrtstar.py
@@ -172,10 +172,10 @@ def setup_planning(self):
172
cBest = self.g_scores[self.goalId]
173
174
# Computing the sampling space
175
- cMin = math.sqrt(pow(self.start[0] - self.goal[1], 2)
176
- + pow(self.start[0] - self.goal[1], 2)) / 1.5
+ cMin = math.sqrt(pow(self.start[0] - self.goal[0], 2)
+ + pow(self.start[1] - self.goal[1], 2)) / 1.5
177
xCenter = np.array([[(self.start[0] + self.goal[0]) / 2.0],
178
- [(self.goal[1] - self.start[1]) / 2.0], [0]])
+ [(self.start[1] + self.goal[1]) / 2.0], [0]])
179
a1 = np.array([[(self.goal[0] - self.start[0]) / cMin],
180
[(self.goal[1] - self.start[1]) / cMin], [0]])
181
etheta = math.atan2(a1[1], a1[0])
0 commit comments