Skip to content

Commit

Permalink
python binding for 'RelativeQuatConstraint'
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Dec 21, 2017
1 parent 37fcbc7 commit 1bfef36
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/pydrake/solvers/ik.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
InverseKinPointwise,
PostureConstraint,
RelativePositionConstraint,
RelativeQuatConstraint,
WorldEulerConstraint,
WorldQuatConstraint,
WorldGazeDirConstraint,
Expand Down
15 changes: 15 additions & 0 deletions bindings/pydrake/solvers/ik_py.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ PYBIND11_MODULE(_ik_py, m) {
py::arg("bTbp"),
py::arg("tspan") = DrakeRigidBodyConstraint::default_tspan);

py::class_<RelativeQuatConstraint, RigidBodyConstraint>(
m, "RelativeQuatConstraint")
.def(py::init<RigidBodyTree<double>*,
int,
int,
const Eigen::Vector4d&,
double,
const Eigen::Vector2d&>(),
py::arg("model"),
py::arg("bodyA_idx"),
py::arg("bodyB_idx"),
py::arg("quat_des"),
py::arg("tol"),
py::arg("tspan") = DrakeRigidBodyConstraint::default_tspan);

py::class_<WorldPositionInFrameConstraint, RigidBodyConstraint>(
m, "WorldPositionInFrameConstraint")
.def(py::init<RigidBodyTree<double>*,
Expand Down

0 comments on commit 1bfef36

Please sign in to comment.