From e118271a21ed51506bc1a99aaa4df67f4650c668 Mon Sep 17 00:00:00 2001 From: Tong-Kiat Tan <2617095+tongkiat@users.noreply.github.com> Date: Thu, 5 Aug 2021 17:13:08 +0800 Subject: [PATCH] Add enum rmf_fleet_adapter::agv::RobotUpdateHandle::Unstable::Decision --- rmf_fleet_adapter_python/src/adapter.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rmf_fleet_adapter_python/src/adapter.cpp b/rmf_fleet_adapter_python/src/adapter.cpp index 7be2c91a6..bfa933bd1 100644 --- a/rmf_fleet_adapter_python/src/adapter.cpp +++ b/rmf_fleet_adapter_python/src/adapter.cpp @@ -139,6 +139,17 @@ PYBIND11_MODULE(rmf_adapter, m) { py::arg("wait_duration") = std::chrono::seconds(10), "Experimental API to set the lift entry watchdog"); + auto m_robot_update_handle = m.def_submodule("robot_update_handle"); + + py::enum_( + m_robot_update_handle, "Decision") + .value("Undefined", + agv::RobotUpdateHandle::Unstable::Decision::Undefined) + .value("Clear", + agv::RobotUpdateHandle::Unstable::Decision::Clear) + .value("Crowded", + agv::RobotUpdateHandle::Unstable::Decision::Crowded); + // FLEETUPDATE HANDLE ====================================================== py::class_>(