map to floats

This commit is contained in:
yjinzero 2025-02-16 21:36:42 +09:00
parent 5523771e2a
commit da645b8242
1 changed files with 4 additions and 1 deletions

View File

@ -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