Skip to content

Commit d3dd8de

Browse files
committed
exclude max range points
1 parent d5a21af commit d3dd8de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roboticstoolbox/mobile/PoseGraph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,11 @@ def scan(self, i):
259259
def scanxy(self, i):
260260

261261
range, theta = self.scan(i)
262+
range = np.where(range < self._maxrange, range, np.nan)
262263
x = range * np.cos(theta)
263264
y = range * np.sin(theta)
264265

266+
265267
return np.c_[x, y].T
266268

267269
def plot_scan(self, n):

0 commit comments

Comments
 (0)