Skip to content

Commit 927055b

Browse files
authored
Merge pull request AtsushiSakai#171 from yuokamoto/fix_bit_ellipse_calc
fix ellisoid calculation
2 parents b98afa4 + 46aae24 commit 927055b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PathPlanning/BatchInformedRRTStar/batch_informed_rrtstar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ def setup_planning(self):
172172
cBest = self.g_scores[self.goalId]
173173

174174
# 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
175+
cMin = math.sqrt(pow(self.start[0] - self.goal[0], 2)
176+
+ pow(self.start[1] - self.goal[1], 2)) / 1.5
177177
xCenter = np.array([[(self.start[0] + self.goal[0]) / 2.0],
178-
[(self.goal[1] - self.start[1]) / 2.0], [0]])
178+
[(self.start[1] + self.goal[1]) / 2.0], [0]])
179179
a1 = np.array([[(self.goal[0] - self.start[0]) / cMin],
180180
[(self.goal[1] - self.start[1]) / cMin], [0]])
181181
etheta = math.atan2(a1[1], a1[0])

0 commit comments

Comments
 (0)