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

Adding support for lane level speed limits #43

Open
6 of 7 tasks
luca-della-vedova opened this issue Sep 15, 2021 · 0 comments
Open
6 of 7 tasks

Adding support for lane level speed limits #43

luca-della-vedova opened this issue Sep 15, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@luca-della-vedova
Copy link
Member

luca-della-vedova commented Sep 15, 2021

Feature request

Description

There are applications in which different traffic lanes would have different speed limits and vehicles are not expected to always move as fast as possible. For example, if we wanted to simulate road networks we would expect larger roads (i.e. highways) to have higher speed limits than smaller roads.

Implementation considerations

We would need to implement a new parameter at the lane level to save the speed limit and take into account the maximum allowed speed in the heuristics when finding the best path to a place. For a complete RMF demonstration followup PRs would be needed in different packages in the stack:

These PRs go as a set, to test them in any demo edit the map, set a different speed limit (lower than the maximum robot speed or it won't have any effect) for a lane from the traffic_editor GUI then run the demo, you should see the planner taking it into account (i.e. prioritizing lanes with higher speed limits) and the slotcar vehicle respecting it.
Specifically, with the following office demo (all default except the highlighted lane set to 0.1):
image

With the yaml file here, the behavior when asking for coke delivery changes in the following way:

  • If a first request is submitted, the robot on the left hand side will go for it since the robot on the right hand side needs to go through a lane with much lower speed limit that will make its task execution be slower.
  • If a second request is submitted immediately afterwards, the robot on the right hand side will start to navigate towards the pantry and while going through the low speed lane it will go at 0.1 m/s instead of its nominal drive speed of 0.5 m/s so you should see a noticeable slowdown.

Example of the behavior is below

tinyrobot_speed_limit.mp4

Without the PR the robot on the right side always executes the task first and all the robots navigate at maximum speed at all times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Research & Development
Simulation + Traffic Editor
Development

No branches or pull requests

2 participants