Some bug with URDF.UR10
Closed this issue · 0 comments
freezeLUO commented
When I run:
import roboticstoolbox as rtb
import numpy as np
robot = rtb.models.URDF.UR10()
q = np.array([0, -np.pi/4, np.pi/4, 0, np.pi/4, 0])
qd = np.array([0, 0, 0, 0, 0, 0])
qdd = np.array([0, 0, 0, 0, 0, 0])
robot.gravity = [0, 0, -9.81]
try:
torques = robot.rne(q, qd, qdd)
print("Calculated joint torques:", torques)
except Exception as e:
print("Error while calculating torques:", e)
I get : Error while calculating torques: list indices must be integers or slices, not NoneType
But rtb.models.DH.UR10() can get the result