Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add speed limit to navgraph #397

Merged
merged 1 commit into from
Oct 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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