Skip to content

Commit 2a2aae2

Browse files
committed
Fix constant types
Signed-off-by: Florian Vahl <florian@flova.de>
1 parent 99b84b9 commit 2a2aae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2_sensor_msgs/test/test_tf2_sensor_msgs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_rotation_and_translation_transform(self):
9696
transform = TransformStamped()
9797
transform.transform.translation.z = 100.0
9898
transform.transform.rotation.x = 1.0
99-
transform.transform.rotation.w = 0
99+
transform.transform.rotation.w = 0.0
100100

101101
# Apply transform
102102
point_cloud_transformed = do_transform_cloud(
@@ -115,7 +115,7 @@ def test_direct_transform(self):
115115
transform = Transform()
116116
transform.translation.z = 100.0
117117
transform.rotation.x = 1.0
118-
transform.rotation.w = 0
118+
transform.rotation.w = 0.0
119119

120120
# Transform points
121121
points = transform_points(self.points, transform)

0 commit comments

Comments
 (0)