Skip to content

Commit

Permalink
Add rmf_fleet_adapter::agv::RobotUpdateHandle::Unstable::set_lift_ent…
Browse files Browse the repository at this point in the history
…ry_watchdog
  • Loading branch information
tongkiat committed Aug 11, 2021
1 parent 49358df commit 9891534
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rmf_fleet_adapter_python/src/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,17 @@ PYBIND11_MODULE(rmf_adapter, m) {
return self.unstable().get_participant();
},
py::return_value_policy::reference_internal,
"Experimental API to access the schedule participant");
"Experimental API to access the schedule participant")
.def("set_unstable_lift_entry_watchdog",
[&](agv::RobotUpdateHandle& self,
agv::RobotUpdateHandle::Unstable::Watchdog watchdog,
rmf_traffic::Duration wait_duration)
{
self.unstable().set_lift_entry_watchdog(watchdog, wait_duration);
},
py::arg("watchdog"),
py::arg("wait_duration") = std::chrono::seconds(10),
"Experimental API to set the lift entry watchdog");

// FLEETUPDATE HANDLE ======================================================
py::class_<agv::FleetUpdateHandle,
Expand Down

0 comments on commit 9891534

Please sign in to comment.