aruco_gen: Open file in binary mode for Python3 compatibility

This commit is contained in:
Alexey Rogachevskiy
2020-10-27 11:26:49 +03:00
parent cc2ebb368d
commit 55366a1fac

View File

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