From bba2dc5c2dab6a8335d3377e1f3167205ac6f343 Mon Sep 17 00:00:00 2001 From: Nicholas Pfaff Date: Fri, 2 Feb 2024 15:39:17 -0500 Subject: [PATCH] Replace AddPackagePaths with new ConfigureParser --- sim2sim/util/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim2sim/util/util.py b/sim2sim/util/util.py index 9767ff2..7aa8dad 100644 --- a/sim2sim/util/util.py +++ b/sim2sim/util/util.py @@ -12,7 +12,7 @@ import trimesh from manipulation.meshcat_utils import AddMeshcatTriad -from manipulation.utils import AddPackagePaths +from manipulation.utils import ConfigureParser from pydrake.all import ( Box, Capsule, @@ -38,7 +38,7 @@ def get_parser(plant: MultibodyPlant) -> Parser: """Creates a parser for a plant and adds package paths to it.""" parser = Parser(plant) - AddPackagePaths(parser) + ConfigureParser(parser) parser.package_map().Add("sim2sim", os.path.abspath("")) return parser