Skip to content

Commit 779080b

Browse files
committed
Add check for qlim None
1 parent 815e5ec commit 779080b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roboticstoolbox/robot/BaseRobot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,11 @@ def qlim(self) -> NDArray:
10151015

10161016
for link in self.links:
10171017
if link.isrevolute:
1018-
if link.qlim is None or np.any(np.isnan(link.qlim)):
1018+
if (
1019+
link.qlim is None
1020+
or link.qlim[0] is None
1021+
or np.any(np.isnan(link.qlim))
1022+
):
10191023
v = [-np.pi, np.pi]
10201024
else:
10211025
v = link.qlim

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