From 55366a1facf9f250397b9758334d93f12649ecdf Mon Sep 17 00:00:00 2001 From: Alexey Rogachevskiy Date: Tue, 27 Oct 2020 11:26:49 +0300 Subject: [PATCH] aruco_gen: Open file in binary mode for Python3 compatibility --- clover_simulation/src/clover_simulation/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clover_simulation/src/clover_simulation/__init__.py b/clover_simulation/src/clover_simulation/__init__.py index 30ed091d..72822c53 100644 --- a/clover_simulation/src/clover_simulation/__init__.py +++ b/clover_simulation/src/clover_simulation/__init__.py @@ -88,6 +88,6 @@ def aruco_gen(): off_x + marker.x, off_y + marker.y, off_z + marker.z, marker.roll, marker.pitch, marker.yaw) - output = open(source_world, 'w') if inplace else stdout + output = open(source_world, 'wb') if inplace else stdout save_world(world_tree, output)