8000 mass fixed and p_servo radians · A905275/robotics-toolbox-python@7a6f114 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a6f114

Browse files
committed
mass fixed and p_servo radians
1 parent d0e69b5 commit 7a6f114

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roboticstoolbox/backend/urdf/urdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ def inertial(self, value):
15311531
raise TypeError('Expected Inertial object') # pragma nocover
15321532
# Set default inertial
15331533
if value is None:
1534-
value = Inertial(mass=1.0, inertia=np.eye(3))
1534+
value = Inertial(mass=0.0, inertia=np.eye(3))
15351535
self._inertial = value
15361536

15371537
@property

roboticstoolbox/tools/p_servo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def p_servo(wTe, wTep, gain=2, threshold=0.1):
4343
ev = eTep.t
4444

4545
# Angular velocity error
46-
ew = eTep.rpy() * np.pi/180
46+
ew = eTep.rpy('rad')
4747

4848
# Form error vector
4949
e = np.r_[ev, ew]

0 commit comments

Comments
 (0)
0