From 1eb35fe07b5316cbbda546bb0801ae2ddaa4b475 Mon Sep 17 00:00:00 2001 From: Megane Millan Date: Mon, 7 Oct 2024 17:13:59 +0200 Subject: [PATCH] Fix examples --- examples/collision-with-point-clouds.py | 2 +- examples/collisions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/collision-with-point-clouds.py b/examples/collision-with-point-clouds.py index 0f609a676f..b3ea2e60b1 100644 --- a/examples/collision-with-point-clouds.py +++ b/examples/collision-with-point-clouds.py @@ -21,7 +21,7 @@ urdf_model_path = model_path / "panda_description/urdf" / urdf_filename model, collision_model, visual_model = pin.buildModelsFromUrdf( - urdf_model_path, False, mesh_dir + urdf_model_path, package_dirs=mesh_dir ) # Add point clouds diff --git a/examples/collisions.py b/examples/collisions.py index 1578efa4d9..d323f1fc1e 100644 --- a/examples/collisions.py +++ b/examples/collisions.py @@ -10,7 +10,7 @@ urdf_model_path = model_path / "romeo_description/urdf" / urdf_filename # Load model -model = pin.buildModelFromUrdf(urdf_model_path, pin.JointModelFreeFlyer()) +model = pin.buildModelFromUrdf(urdf_model_path, pin.JointModelFreeFlyer(), False) # Load collision geometries geom_model = pin.buildGeomFromUrdf(