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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy