question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to increase density of vehicles in an environment?

See original GitHub issue

I’ve made an environment like highway-v0, which vehicle’s action space is continuous, and it tries to reach a goal while avoiding a crash. Here’s an episode of a learned agent with the SAC model.

An episode of the mentioned environment

As the density of vehicles in the environment is low, the agent has not a difficult job avoiding them(and it seems it is the IDM vehicle which is avoiding the agent?). I tried to make it harder for the agent by increasing the number of vehicles, but the density of vehicles around remains the same. How can I make it harder, like the animation in the README file from the highway-v0 environment?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
eleurentcommented, Jun 7, 2020

I’ve seen this behaviour before: once it sees an obstacle, the IDM model starts braking, and this causes the MOBIL model to consider a lane change.

  1. If a lane change is possible (it would not cut-in in front of another vehicle), a lane change is triggered and the vehicle avoids the obstacle/landmark
  2. Else (would cut-in), the vehicle cannot change lane and can only brake and stop. Once it is stopped at the obstacle, the MOBIL now recommends a lane change, but IDM still outputs an acceleration of 0 (since the obstacle is close), so the vehicle is stuck.
2reactions
eleurentcommented, Jun 5, 2020

Nice environment, by the way! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How much does density really cut down on driving? - Grist
It is a given among environmentalists and planning professionals that higher density reduces carbon emissions from transportation. Denser ...
Read more >
Density and Driving: A Second Look | Planetizen Blogs
A common argument against more compact housing is that increased population density will only reduce vehicle miles traveled at moderate ...
Read more >
The impact of residential density on vehicle usage and energy ...
This total effect of residential density on fuel usage is decomposed into two paths of influence. Increased mileage leads to a difference of...
Read more >
Automobiles and urban density - Oxford Academic
A one standard deviation increase in car ownership rates causes a reduction in population density of around 35%. For employment density ...
Read more >
CHANGES IN THE FLOW-DENSITY RELATION DUE TO ...
This research explores the idea that weather conditions and driver- and vehicle- population characteristics affect a homogenous roadway segment's flow-versus- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found