From e65d043a71b4ddbbb1e72c5077020f3ec1005508 Mon Sep 17 00:00:00 2001 From: Mingxiang Fan Date: Sat, 2 Mar 2019 02:01:28 -0800 Subject: [PATCH] Minor data type modification --- packages/Python/modern_robotics/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Python/modern_robotics/core.py b/packages/Python/modern_robotics/core.py index 4b44235..80a69b6 100644 --- a/packages/Python/modern_robotics/core.py +++ b/packages/Python/modern_robotics/core.py @@ -257,7 +257,7 @@ def VecTose3(V): [ 0, 0, 0, 0]]) """ return np.r_[np.c_[VecToso3([V[0], V[1], V[2]]), [V[3], V[4], V[5]]], - np.zeros((1, 4))] + np.zeros((1, 4), dtype=np.float32)] def se3ToVec(se3mat): """ Converts an se3 matrix into a spatial velocity vector