.def(bp::init<>("Default constructor. Constructs an empty model."))
.def(bp::init<>(bp::arg("self"),"Default constructor. Constructs an empty model."))
// Class Members
.add_property("nq",&Model::nq)
.add_property("nv",&Model::nv)
...
...
@@ -162,10 +225,20 @@ namespace pinocchio
.def_readwrite("gravity",&Model::gravity,"Motion vector corresponding to the gravity field expressed in the world Frame.")
// Class Methods
.def("addJoint",&ModelPythonVisitor::addJoint,bp::args("parent_id","joint_model","joint_placement","joint_name"),"Adds a joint to the kinematic tree. The joint is defined by its placement relative to its parent joint and its name.")
.def("addJoint",&ModelPythonVisitor::addJointWithLimits,bp::args("parent_id","joint_model","joint_placement","joint_name","max_effort","max_velocity","min_config","max_config"),"Adds a joint to the kinematic tree with given bounds. The joint is defined by its placement relative to its parent joint and its name.")
.def("addJointFrame",&Model::addJointFrame,bp::args("jointIndex","frameIndex"),"add the joint at index jointIndex as a frame to the frame tree")
.def("appendBodyToJoint",&Model::appendBodyToJoint,bp::args("joint_id","body_inertia","body_placement"),"Appends a body to the joint given by its index. The body is defined by its inertia, its relative placement regarding to the joint and its name.")
"Appends a body to the joint given by its index. The body is defined by its inertia, its relative placement regarding to the joint and its name.")
.def("addBodyFrame",&Model::addBodyFrame,bp::args("body_name","parentJoint","body_placement","previous_frame(parent frame)"),"add a body to the frame tree")
.def("getBodyId",&Model::getBodyId,bp::args("name"),"Return the index of a frame of type BODY given by its name")