Skip to content

Commit e1af022

Browse files
committed
placeholder unit tests at end of module
1 parent ce36b8d commit e1af022

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

spatialmath/pose.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,10 @@ def angvec(cls, theta, v, *, unit='rad'):
354354
#print(arr[0])
355355
#print(b[1])
356356
#print(b*a)
357+
358+
359+
# import pathlib
360+
# import os.path
361+
362+
# runfile(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_transforms.py") )
357363

spatialmath/quaternion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,6 @@ def to_se3(self):
808808
return SE3(so3=SO3.np(self.r()))
809809

810810

811-
812811
if __name__ == '__main__':
813812
q = Quaternion([1,2,3,4])
814813
print(q)
@@ -824,3 +823,8 @@ def to_se3(self):
824823
#print(u)
825824
len(u)
826825
a = u[0]
826+
827+
# import pathlib
828+
# import os.path
829+
830+
# runfile(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_quaternion.py") )

0 commit comments

Comments
 (0)