From 7009d53fa844d61921259c0dbe5237b5254dde1a Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Thu, 14 Oct 2021 10:36:56 +0800 Subject: [PATCH] Add speed limit to navgraph (#397) Signed-off-by: Luca Della Vedova --- rmf_building_map_tools/building_map/level.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rmf_building_map_tools/building_map/level.py b/rmf_building_map_tools/building_map/level.py index 3ed694481..d99225697 100644 --- a/rmf_building_map_tools/building_map/level.py +++ b/rmf_building_map_tools/building_map/level.py @@ -416,6 +416,10 @@ def generate_nav_graph(self, graph_idx, always_unidirectional=True): if l.orientation(): p['orientation_constraint'] = l.orientation() + if 'speed_limit' in l.params and \ + l.params['speed_limit'].value > 0.0: + p['speed_limit'] = l.params['speed_limit'].value + if 'demo_mock_floor_name' in l.params and \ l.params['demo_mock_floor_name'].value: p['demo_mock_floor_name'] = \