Skip to content

Commit

Permalink
[python] Using Eigen::Ref<const Eigen::VectorXd> for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
cmastalli committed Dec 13, 2023
1 parent d9c1a12 commit 4cbaae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crocoddyl_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ PYBIND11_MODULE(crocoddyl_ros, m) {
py::arg("model"), py::arg("topic") = "/crocoddyl/whole_body_state",
py::arg("frame") = "odom")
.def(py::init<pinocchio::Model &, const std::vector<std::string> &,
const Eigen::VectorXd &, const std::string &,
const Eigen::Ref<const Eigen::VectorXd> &, const std::string &,
const std::string &>(),
py::arg("model"), py::arg("locked_joints"), py::arg("qref"),
py::arg("topic") = "/crocoddyl/whole_body_state",
Expand All @@ -203,7 +203,7 @@ PYBIND11_MODULE(crocoddyl_ros, m) {
py::arg("topic") = "/crocoddyl/whole_body_trajectory",
py::arg("frame") = "odom", py::arg("queue") = 10)
.def(py::init<pinocchio::Model &, const std::vector<std::string> &,
const Eigen::VectorXd &, const std::string &,
const Eigen::Ref<const Eigen::VectorXd> &, const std::string &,
const std::string &, int>(),
py::arg("model"), py::arg("locked_joints"), py::arg("qref"),
py::arg("topic") = "/crocoddyl/whole_body_state",
Expand Down

0 comments on commit 4cbaae1

Please sign in to comment.