Skip to content

Commit

Permalink
Add speed limit to navgraph (#397)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova authored Oct 14, 2021
1 parent 52cc0a6 commit 7009d53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rmf_building_map_tools/building_map/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = \
Expand Down

0 comments on commit 7009d53

Please sign in to comment.