Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#7659 from christian-rauch/py_Relat…
Browse files Browse the repository at this point in the history
…iveQuatConstraint

python binding for 'RelativeQuatConstraint'
  • Loading branch information
sammy-tri authored Dec 22, 2017
2 parents 2e7853b + 1bfef36 commit ee9eb1b
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 ee9eb1b

Please sign in to comment.