From 0685ec213900e04aefb78c41503ff4cfe2173f52 Mon Sep 17 00:00:00 2001 From: cwrx777 Date: Mon, 25 Mar 2024 13:23:21 +0800 Subject: [PATCH] Add all_known_lifts in Graph binding (#336) Signed-off-by: Charly Wu --- rmf_fleet_adapter_python/src/graph/graph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rmf_fleet_adapter_python/src/graph/graph.cpp b/rmf_fleet_adapter_python/src/graph/graph.cpp index 0aaf6017..ce17b8ed 100644 --- a/rmf_fleet_adapter_python/src/graph/graph.cpp +++ b/rmf_fleet_adapter_python/src/graph/graph.cpp @@ -195,7 +195,10 @@ void bind_graph(py::module& m) .def_property_readonly("num_lanes", &Graph::num_lanes) .def("lanes_from_waypoint", py::overload_cast(&Graph::lanes_from, py::const_), - py::arg("wp_index")); + py::arg("wp_index")) + + //Lifts + .def_property_readonly("all_known_lifts", &Graph::all_known_lifts); // PARSE GRAPH ============================================================== // Helper function to parse a graph from a yaml file