Skip to content

Commit 38a708a

Browse files
committed
fix types
1 parent 203d85e commit 38a708a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roboticstoolbox/robot/Robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ def q(self, q_new):
13401340
# --------------------------------------------------------------------- #
13411341

13421342
@property
1343-
def qd(self):
1343+
def qd(self) -> ndarray:
13441344
"""
13451345
Get/set robot joint velocity (Robot superclass)
13461346
@@ -1357,7 +1357,7 @@ def qd(self):
13571357

13581358
@qd.setter
13591359
def qd(self, qd_new):
1360-
self._qd = getvector(qd_new, self.n)
1360+
self._qd = np.array(getvector(qd_new, self.n))
13611361

13621362
# --------------------------------------------------------------------- #
13631363

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