Skip to content

Commit

Permalink
pybind: updated ranger robot pybind according to new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karthee-weston committed Oct 9, 2024
1 parent 6e4c791 commit 4576787
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/ugv_sdk_py/src/ranger_robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void BindRangerRobot(pybind11::module &m) {

// RangerRobot class
py::class_<RangerRobot>(m_ranger_robot, "RangerRobot")
.def(py::init<Variant>(),
.def(py::init<RangerRobot::Variant>(),
py::arg("variant"),
"Constructor for RangerRobot with model version")
.def("connect", &RangerRobot::Connect,
Expand Down Expand Up @@ -138,12 +138,12 @@ void BindRangerRobot(pybind11::module &m) {
.def("get_common_sensor_state", &RangerRobot::GetCommonSensorState,
"Get the common sensor state");

py::enum_<RangerRobot::Variant>(m_ranger_robot, "Variant")
.value("kRangerMiniV1", Variant::kRangerMiniV1)
.value("kRangerMiniV2", Variant::kRangerMiniV2)
.value("kRangerMiniV3", Variant::kRangerMiniV3)
.value("kRanger", Variant::kRanger)
.export_values()
py::enum_<RangerRobot::Variant>(m_ranger_robot, "Variant")
.value("kRangerMiniV1", RangerRobot::Variant::kRangerMiniV1)
.value("kRangerMiniV2", RangerRobot::Variant::kRangerMiniV2)
.value("kRangerMiniV3", RangerRobot::Variant::kRangerMiniV3)
.value("kRanger", RangerRobot::Variant::kRanger)
.export_values();
}
// clang-format on
} // namespace westonrobot

0 comments on commit 4576787

Please sign in to comment.