Skip to content
Snippets Groups Projects
Commit 35f5339c authored by Davis, Duane T's avatar Davis, Duane T
Browse files

MAPS: Bug fix (naming error from old code) in sample method

parent 20d3bbb1
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
# Contains classes that will be used to maintain a map for use in robot mapping
import random
import math
import cs4313_utilities.geometry as geometry
import cs4313_utilities.robot_math as rm
......@@ -298,7 +299,7 @@ class GeometryMap(Map):
return self._goal
random_x = random.uniform(self._sw_corner[0], self._ne_corner[0])
random_y = random.uniform(self._sw_corner[1], self._ne_corner[1])
while not self.__is_free_cartesian_space(random_x, random_y):
while not self.is_free_space((random_x, random_y)):
random_x = random.uniform(self._sw_corner[0], self._ne_corner[0])
random_y = random.uniform(self._sw_corner[1], self._ne_corner[1])
random_theta = random.uniform(0.0, 2.0*math.pi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment