Skip to content

Commit 5735a6f

Browse files
committed
remove dependency of scipy, fix path to unit tests
1 parent e822783 commit 5735a6f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spatialmath/base/transforms3d.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,9 @@ def rotvelxform(𝚪, inverse=False, full=False, representation="rpy/xyz"):
22322232
)
22332233

22342234
if full:
2235-
return sp.linalg.block_diag(np.eye(3, 3), A)
2235+
AA = np.eye(6)
2236+
AA[3:, 3:] = A
2237+
return AA
22362238
else:
22372239
return A
22382240

@@ -3084,7 +3086,7 @@ def tranimate(T, **kwargs):
30843086
open(
30853087
pathlib.Path(__file__).parent.parent.parent.absolute()
30863088
/ "tests"
3087-
/ "smb"
3089+
/ "base"
30883090
/ "test_transforms3d.py"
30893091
).read()
30903092
) # pylint: disable=exec-used
@@ -3093,7 +3095,7 @@ def tranimate(T, **kwargs):
30933095
open(
30943096
pathlib.Path(__file__).parent.parent.parent.absolute()
30953097
/ "tests"
3096-
/ "smb"
3098+
/ "base"
30973099
/ "test_transforms3d_plot.py"
30983100
).read()
30993101
) # pylint: disable=exec-used

0 commit comments

Comments
 (0)