Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent 9bea5be commit 272a123
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test_b3d_tracking_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,13 @@ def compute_angular_velocity(q1, q2, delta_t):
return angular_velocity

mesh = b3d.Mesh(
vertices=scale_mesh(mesh.vertices, scale), faces=mesh.faces, vertex_attributes=None
vertices=scale_mesh(mesh.vertices, scale),
faces=mesh.faces,
vertex_attributes=None,
)

pos_now, q_now = compute_center_of_mass(
mesh, object_pose_last_frame
)
pos_last, q_last = compute_center_of_mass(
mesh, object_pose_window_frame
)
pos_now, q_now = compute_center_of_mass(mesh, object_pose_last_frame)
pos_last, q_last = compute_center_of_mass(mesh, object_pose_window_frame)
linear_vel = (pos_now - pos_last) / dt
angular_velocity = compute_angular_velocity(q_last, q_now, dt)

Expand Down

0 comments on commit 272a123

Please sign in to comment.