Skip to content

Commit

Permalink
python: Add more generic check
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Dec 13, 2024
1 parent dc53def commit 1e4df2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/pinocchio/visualize/meshcat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def applyScalingOnHomegeneousTransform(
homogeneous_transform: np.ndarray, scale: np.ndarray
) -> np.ndarray:
assert homogeneous_transform.shape == (4, 4)
assert scale.shape == (3,)
assert scale.size == 3
scale = np.array(scale).flatten()
S = np.diag(np.concatenate((scale, [1.0])))
return homogeneous_transform @ S
Expand Down

0 comments on commit 1e4df2b

Please sign in to comment.