Skip to content

Commit

Permalink
Make rotation and position property readable and writable in the pybi…
Browse files Browse the repository at this point in the history
…nd11 Transform bindings
  • Loading branch information
GiulioRomualdi committed Nov 7, 2021
1 parent f719b5b commit de0c48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/pybind11/idyntree_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ void transformClassDefinition(py::class_<Transform>& transform) {
.def(py::init<const Rotation&, const Position&>())
.def(py::init<const MatrixFixSize<4, 4>&>())
.def_static("Identity", &Transform::Identity)
.def_property_readonly("rotation", &Transform::getRotation)
.def_property_readonly("position", &Transform::getPosition)
.def_property("rotation", &Transform::getRotation, &Transform::setRotation)
.def_property("position", &Transform::getPosition, &Transform::setPosition)
.def("inverse", &Transform::inverse)
.def(py::self * py::self)
.def(
Expand Down

0 comments on commit de0c48f

Please sign in to comment.