From 2bf7f93ae065db113eb14fdc4817b6eeaf05f204 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Mon, 6 Jan 2025 09:14:10 -0500 Subject: [PATCH] Fix test --- pyrobosim/test/core/test_yaml_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyrobosim/test/core/test_yaml_utils.py b/pyrobosim/test/core/test_yaml_utils.py index 9f93725d..1adb0e88 100644 --- a/pyrobosim/test/core/test_yaml_utils.py +++ b/pyrobosim/test/core/test_yaml_utils.py @@ -12,7 +12,7 @@ from pyrobosim.core.world import World from pyrobosim.core.yaml_utils import WorldYamlLoader, WorldYamlWriter from pyrobosim.utils.general import get_data_folder -from pyrobosim.utils.polygon import polygon_and_height_from_footprint +from pyrobosim.utils.polygon import polygon_and_height_from_footprint, transform_polygon from pyrobosim.utils.pose import Pose @@ -129,7 +129,9 @@ def test_create_rooms_from_yaml(): assert loader.world.rooms[1].name == "bedroom" poly, _ = polygon_and_height_from_footprint(rooms_dict["rooms"][1]["footprint"]) - assert loader.world.rooms[1].polygon == poly + assert loader.world.rooms[1].polygon == transform_polygon( + poly, Pose(x=2.625, y=3.5) + ) assert loader.world.rooms[1].wall_width == 0.2 assert loader.world.rooms[1].viz_color == (0, 1, 0) assert loader.world.rooms[1].nav_poses == [