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.
1 parent d433748 commit ed9b84dCopy full SHA for ed9b84d
PathPlanning/BatchInformedRRTStar/batch_informed_rrtstar.py
@@ -180,8 +180,8 @@ def setup_planning(self):
180
cBest = self.g_scores[self.goalId]
181
182
# Computing the sampling space
183
- cMin = math.sqrt(pow(self.start[0] - self.goal[0], 2)
184
- + pow(self.start[1] - self.goal[1], 2)) / 1.5
+ cMin = math.hypot(self.start[0] - self.goal[0],
+ self.start[1] - self.goal[1]) / 1.5
185
xCenter = np.array([[(self.start[0] + self.goal[0]) / 2.0],
186
[(self.start[1] + self.goal[1]) / 2.0], [0]])
187
a1 = np.array([[(self.goal[0] - self.start[0]) / cMin],
0 commit comments