Skip to content

Commit

Permalink
fix: Add Driver base class to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 24, 2024
1 parent 9ee21fb commit ed705d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/myactuator_rmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ namespace myactuator_rmd {
PYBIND11_MODULE(myactuator_rmd_py, m) {

m.doc() = "MyActuator RMD main module";
pybind11::class_<myactuator_rmd::CanDriver>(m, "CanDriver")
pybind11::class_<myactuator_rmd::Driver>(m, "Driver");
pybind11::class_<myactuator_rmd::CanDriver, myactuator_rmd::Driver>(m, "CanDriver")
.def(pybind11::init<std::string const&>());
pybind11::class_<myactuator_rmd::ActuatorInterface>(m, "ActuatorInterface")
.def(pybind11::init<myactuator_rmd::Driver&, std::uint32_t>())
Expand Down

0 comments on commit ed705d3

Please sign in to comment.