Skip to content

Commit 4758b80

Browse files
committed
python: register Model
1 parent 495ee4a commit 4758b80

File tree

1 file changed

+2
-0
lines changed
  • include/pinocchio/bindings/python/multibody

1 file changed

+2
-0
lines changed

include/pinocchio/bindings/python/multibody/model.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ namespace pinocchio
232232

233233
.PINOCCHIO_ADD_STATIC_PROPERTY_READONLY_BYVALUE(
234234
Model, gravity981, "Default gravity field value on the Earth.");
235+
236+
bp::register_ptr_to_python<std::shared_ptr<Model>>();
235237
}
236238

237239
static JointIndex addJoint0(

0 commit comments

Comments
 (0)