Skip to content

Commit dc97c56

Browse files
committed
fix named configs
1 parent f9937b6 commit dc97c56

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

roboticstoolbox/models/URDF/Fetch.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ def __init__(self):
4343
urdf_filepath=urdf_filepath,
4444
)
4545

46-
self.qdlim = np.array(
47-
[4.0, 4.0, 0.1, 1.25, 1.45, 1.57, 1.52, 1.57, 2.26, 2.26]
48-
)
46+
self.qdlim = np.array([4.0, 4.0, 0.1, 1.25, 1.45, 1.57, 1.52, 1.57, 2.26, 2.26])
4947

50-
self.addconfiguration("qz", np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]))
48+
self.qz = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
49+
self.qr = np.array([0, 0, 0.05, 1.32, 1.4, -0.2, 1.72, 0, 1.66, 0])
5150

52-
self.addconfiguration(
53-
"qr", np.array([0, 0, 0.05, 1.32, 1.4, -0.2, 1.72, 0, 1.66, 0])
54-
)
51+
self.addconfiguration("qr", self.qr)
52+
self.addconfiguration("qz", self.qz)
5553

5654

5755
if __name__ == "__main__": # pragma nocover

roboticstoolbox/models/URDF/FetchCamera.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ def __init__(self):
4444
)
4545

4646
# self.grippers[0].tool = SE3(0, 0, 0.1034)
47-
self.qdlim = np.array(
48-
[4.0, 4.0, 0.1, 1.57, 1.57]
49-
)
47+
self.qdlim = np.array([4.0, 4.0, 0.1, 1.57, 1.57])
5048

51-
self.addconfiguration("qz", np.array([0, 0, 0, 0, 0]))
49+
self.qz = np.array([0, 0, 0, 0, 0])
50+
self.qr = np.array([0, 0, 0, 0, 0])
5251

53-
self.addconfiguration(
54-
"qr", np.array([0, 0, 0, 0, 0])
55-
)
52+
self.addconfiguration("qr", self.qr)
53+
self.addconfiguration("qz", self.qz)
5654

5755

5856
if __name__ == "__main__": # pragma nocover

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