Skip to content

Commit

Permalink
fix: Minor fixes to Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 25, 2024
1 parent d260a34 commit 3280c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/myactuator_rmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace myactuator_rmd {

PYBIND11_MODULE(myactuator_rmd_py, m) {

m.doc() = "MyActuator RMD main module";
m.doc() = "Python bindings for MyActuator RMD-X actuator series";
pybind11::class_<myactuator_rmd::Driver>(m, "Driver");
pybind11::class_<myactuator_rmd::CanDriver, myactuator_rmd::Driver>(m, "CanDriver")
.def(pybind11::init<std::string const&>());
Expand Down Expand Up @@ -197,7 +197,7 @@ PYBIND11_MODULE(myactuator_rmd_py, m) {
.def(pybind11::init<std::string const&>())
.def("setRecvFilter", &myactuator_rmd::can::Node::setRecvFilter)
.def("read", &myactuator_rmd::can::Node::read)
.def("write", static_cast<void (myactuator_rmd::can::Node::*)(myactuator_rmd::can::Frame const&)>(&myactuator_rmd::can::Node::write));
.def("write", pybind11::overload_cast<myactuator_rmd::can::Frame const&>(&myactuator_rmd::can::Node::write));
pybind11::register_exception<myactuator_rmd::can::SocketException>(m_can, "SocketException");
pybind11::register_exception<myactuator_rmd::can::Exception>(m_can, "CanException");
pybind11::register_exception<myactuator_rmd::can::TxTimeoutError>(m_can, "TxTimeoutError");
Expand Down

0 comments on commit 3280c24

Please sign in to comment.