Skip to content

Commit 7e41166

Browse files
author
Megane Millan
committed
[examples] Patch examples
1 parent 2cd7084 commit 7e41166

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/gepetto-viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
urdf_model_path = join(join(model_path, "talos_data/robots"), urdf_filename)
1818

1919
model, collision_model, visual_model = pin.buildModelsFromUrdf(
20-
urdf_model_path, mesh_dir, pin.JointModelFreeFlyer()
20+
urdf_model_path, mesh_dir, pin.JointModelFreeFlyer(), "root_joint"
2121
)
2222
viz = GepettoVisualizer(model, collision_model, visual_model)
2323

examples/robot-wrapper-viewer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
urdf_filename = "talos_reduced.urdf"
3434
urdf_model_path = join(join(model_path, "talos_data/robots"), urdf_filename)
3535

36-
robot = RobotWrapper.BuildFromURDF(urdf_model_path, mesh_dir, pin.JointModelFreeFlyer())
36+
robot = RobotWrapper.BuildFromURDF(
37+
urdf_model_path, mesh_dir, pin.JointModelFreeFlyer(), "root_joint"
38+
)
3739

3840
# alias
3941
model = robot.model

0 commit comments

Comments
 (0)