Verified Commit 28bf08e3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix access to some fields

parent 88fd9c8c
Pipeline #12140 passed with stage
in 122 minutes and 24 seconds
......@@ -23,9 +23,9 @@ namespace pinocchio
: public boost::python::def_visitor< GeometryObjectPythonVisitor >
{
typedef GeometryObject::CollisionGeometryPtr CollisionGeometryPtr;
template<class PyClass>
void visit(PyClass& cl) const
void visit(PyClass& cl) const
{
cl
.def(bp::init<std::string,FrameIndex,JointIndex,CollisionGeometryPtr,SE3,
......@@ -63,13 +63,13 @@ namespace pinocchio
"Index of the parent frame.")
.def_readwrite("placement",&GeometryObject::placement,
"Position of geometry object in parent joint's frame.")
.def_readonly("meshPath", &GeometryObject::meshPath,
"Path to the mesh file.")
.def_readonly("overrideMaterial", &GeometryObject::overrideMaterial,
"Boolean that tells whether material information is stored inside the given GeometryObject.")
.def_readonly("meshTexturePath", &GeometryObject::meshTexturePath,
"Path to the mesh texture file.")
.def_readwrite("meshPath", &GeometryObject::meshPath,
"Path to the mesh file.")
.def_readwrite("overrideMaterial", &GeometryObject::overrideMaterial,
"Boolean that tells whether material information is stored inside the given GeometryObject.")
.def_readwrite("meshTexturePath", &GeometryObject::meshTexturePath,
"Path to the mesh texture file.")
.def(bp::self == bp::self)
.def(bp::self != bp::self)
......@@ -98,7 +98,7 @@ namespace pinocchio
)
.def(GeometryObjectPythonVisitor())
;
bp::enum_<GeometryType>("GeometryType")
.value("VISUAL",VISUAL)
.value("COLLISION",COLLISION)
......@@ -107,7 +107,7 @@ namespace pinocchio
}
};
} // namespace python
} // namespace pinocchio
......
Markdown is supported
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