Verified Commit c9acf1b6 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: improve doc

parent f98c2da9
...@@ -147,15 +147,15 @@ namespace pinocchio ...@@ -147,15 +147,15 @@ namespace pinocchio
.def("FromSphere", &Inertia::FromSphere, .def("FromSphere", &Inertia::FromSphere,
bp::args("mass","radius"), bp::args("mass","radius"),
"Returns the Inertia of an sphere with a given mass and of radius.") "Returns the Inertia of a sphere defined by a given mass and radius.")
.staticmethod("FromSphere") .staticmethod("FromSphere")
.def("FromEllipsoid", &Inertia::FromEllipsoid, .def("FromEllipsoid", &Inertia::FromEllipsoid,
bp::args("mass","length_x","length_y","length_z"), bp::args("mass","length_x","length_y","length_z"),
"Returns the Inertia of an ellipsoid shape with a given mass and of given dimensions the semi-axis of values length_{x,y,z}.") "Returns the Inertia of an ellipsoid shape defined by a mass and given dimensions the semi-axis of values length_{x,y,z}.")
.staticmethod("FromEllipsoid") .staticmethod("FromEllipsoid")
.def("FromCylinder", &Inertia::FromCylinder, .def("FromCylinder", &Inertia::FromCylinder,
bp::args("mass","radius","length"), bp::args("mass","radius","length"),
"Returns the Inertia of a cylinder shape ith a mass and of dimension radius and length.") "Returns the Inertia of a cylinder defined by its mass, radius and length along the Z axis.")
.staticmethod("FromCylinder") .staticmethod("FromCylinder")
.def("FromBox", &Inertia::FromBox, .def("FromBox", &Inertia::FromBox,
bp::args("mass","length_x","length_y","length_z"), bp::args("mass","length_x","length_y","length_z"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment