Skip to content

Commit 0859d54

Browse files
author
Peter
committed
cleanup
1 parent 028cf02 commit 0859d54

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/test_fk_perf.py renamed to tests/gen_fk_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
""" Generate performance data for multiple models, devices, data types, batch sizes, etc. """
12
import timeit
23
from time import perf_counter
34
import torch
@@ -7,7 +8,6 @@
78

89

910
def main():
10-
# do an in-depth analysis of multiple models, devices, data types, batch sizes, etc.
1111
np.set_printoptions(precision=3, suppress=True, linewidth=220)
1212
torch.set_printoptions(precision=3, sci_mode=False, linewidth=220)
1313

tests/test_kinematics.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
import os
21
import math
2+
import os
33

4-
import numpy as np
54
import torch
65

76
import pytorch_kinematics as pk
87

98
TEST_DIR = os.path.dirname(__file__)
109

1110

12-
def mat_to_rr_tf3d(frame_transform):
13-
import rerun as rr
14-
frame_transform = torch.squeeze(frame_transform).cpu().numpy()
15-
pos = frame_transform[:3, 3]
16-
rot = frame_transform[:3, :3]
17-
rr_tf3d = rr.Transform3D(translation=pos, mat3x3=rot)
18-
return rr_tf3d
19-
20-
2111
def quat_pos_from_transform3d(tg):
2212
m = tg.get_matrix()
2313
pos = m[:, :3, 3]

0 commit comments

Comments
 (0)