Skip to content

Commit

Permalink
Removed whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lorycontixd committed Nov 15, 2024
1 parent 2d46a70 commit fe2616c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jaxsim/parsers/rod/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def create_mesh_collision(
logging.debug(f"Extracted {len(points)} points from mesh")

W_H_L = collision.pose.transform() if collision.pose is not None else np.eye(4)

# Extract translation from transformation matrix
W_p_L = W_H_L[:3, 3]
mesh_points_wrt_link = points @ W_H_L[:3, :3].T + W_p_L
Expand All @@ -252,4 +253,5 @@ def create_mesh_collision(
)
for point in mesh_points_wrt_link
]

return descriptions.MeshCollision(collidable_points=collidable_points, center=W_p_L)

0 comments on commit fe2616c

Please sign in to comment.