Skip to content

Commit 910e203

Browse files
committed
Add Inertia Matrix Data
1 parent 687d345 commit 910e203

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

roboticstoolbox/models/DH/UR10.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class UR10(DHRobot):
3939
""" # noqa
4040

4141
def __init__(self, symbolic=False):
42-
4342
if symbolic:
4443
import spatialmath.base.symbolic as sym
4544

@@ -59,7 +58,7 @@ def __init__(self, symbolic=False):
5958

6059
alpha = [pi / 2, zero, zero, pi / 2, -pi / 2, zero]
6160

62-
# mass data, no inertia available
61+
# mass data
6362
mass = [7.1, 12.7, 4.27, 2.000, 2.000, 0.365]
6463
center_of_mass = [
6564
[0.021, 0, 0.027],
@@ -69,6 +68,27 @@ def __init__(self, symbolic=False):
6968
[0.0, 0.007, 0.018],
7069
[0, 0, -0.026],
7170
]
71+
72+
# inertia matrices for each link
73+
inertia = [
74+
np.array(
75+
[[0.0341, 0, -0.0043], [0, 0.0353, 0.0001], [-0.0043, 0.0001, 0.0216]]
76+
),
77+
np.array(
78+
[[0.0281, 0.0001, -0.0156], [0.0001, 0.7707, 0], [-0.0156, 0, 0.7694]]
79+
),
80+
np.array(
81+
[[0.0101, 0.0001, 0.0092], [0.0001, 0.3093, 0], [0.0092, 0, 0.3065]]
82+
),
83+
np.array(
84+
[[0.0030, -0.0000, 0], [-0.0000, 0.0022, -0.0002], [0, -0.0002, 0.0026]]
85+
),
86+
np.array(
87+
[[0.0030, -0.0000, 0], [-0.0000, 0.0022, -0.0002], [0, -0.0002, 0.0026]]
88+
),
89+
np.array([[0, 0, 0], [0, 0.0004, 0], [0, 0, 0.0003]]),
90+
]
91+
7292
links = []
7393

7494
for j in range(6):
@@ -93,7 +113,6 @@ def __init__(self, symbolic=False):
93113

94114

95115
if __name__ == "__main__": # pragma nocover
96-
97116
ur10 = UR10(symbolic=False)
98117
print(ur10)
99118
# print(ur10.dyntable())

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