diff --git a/python/ugv_sdk_py/src/ranger_robot.cpp b/python/ugv_sdk_py/src/ranger_robot.cpp index 81abb8fd..eddedeb4 100644 --- a/python/ugv_sdk_py/src/ranger_robot.cpp +++ b/python/ugv_sdk_py/src/ranger_robot.cpp @@ -98,7 +98,7 @@ void BindRangerRobot(pybind11::module &m) { // RangerRobot class py::class_(m_ranger_robot, "RangerRobot") - .def(py::init(), + .def(py::init(), py::arg("variant"), "Constructor for RangerRobot with model version") .def("connect", &RangerRobot::Connect, @@ -138,12 +138,12 @@ void BindRangerRobot(pybind11::module &m) { .def("get_common_sensor_state", &RangerRobot::GetCommonSensorState, "Get the common sensor state"); - py::enum_(m_ranger_robot, "Variant") - .value("kRangerMiniV1", Variant::kRangerMiniV1) - .value("kRangerMiniV2", Variant::kRangerMiniV2) - .value("kRangerMiniV3", Variant::kRangerMiniV3) - .value("kRanger", Variant::kRanger) - .export_values() + py::enum_(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 \ No newline at end of file