From da645b8242db4b8a5d0e72338b226a88eec4cd95 Mon Sep 17 00:00:00 2001 From: yjinzero Date: Sun, 16 Feb 2025 21:36:42 +0900 Subject: [PATCH] map to floats --- deploy/deploy_real/fake_world_tf_pub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/deploy_real/fake_world_tf_pub.py b/deploy/deploy_real/fake_world_tf_pub.py index 452174e..c816f5d 100755 --- a/deploy/deploy_real/fake_world_tf_pub.py +++ b/deploy/deploy_real/fake_world_tf_pub.py @@ -67,7 +67,10 @@ class FakeWorldPublisher(Node): # Set world_from_pelvis quaternion based on IMU state # TODO(ycho): consider applying 90-deg offset? - qw, qx, qy, qz = self.low_state.imu_state.quaternion + qw, qx, qy, qz = [ + float(x) for x in + self.low_state.imu_state.quaternion + ] t.transform.rotation.x = qx t.transform.rotation.y = qy t.transform.rotation.z = qz