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

Vehicles ignore safe distances #14

Open
zhaotuo0815 opened this issue Sep 25, 2022 · 11 comments
Open

Vehicles ignore safe distances #14

zhaotuo0815 opened this issue Sep 25, 2022 · 11 comments

Comments

@zhaotuo0815
Copy link

zhaotuo0815 commented Sep 25, 2022

PLATOON
hello,developers,why do vehicles ignore the safety distance, and some vehicles stop suddenly, and then the front and rear vehicles are piled up together as the picture shows:
PLATOON

@zhaotuo0815
Copy link
Author

PLATOON
problem

@michele-segata
Copy link
Owner

You are injecting platoons into an on ramp but the leader, which is driven by an ACC, has no notion of stops of right of ways, as it is in the real world. Platoons entering the highway thus basically jump into the main road without looking for incoming cars, as your car would do if you had ACC and you would not switch it off. This causes the first collision and the successive pile up.

@zhaotuo0815
Copy link
Author

You are injecting platoons into an on ramp but the leader, which is driven by an ACC, has no notion of stops of right of ways, as it is in the real world. Platoons entering the highway thus basically jump into the main road without looking for incoming cars, as your car would do if you had ACC and you would not switch it off. This causes the first collision and the successive pile up.

thank you so much.So how to solve this problem? Change the leader car's following model? By the way, I want the platoon vehicle to be released after reaching a certain road section. How should it be implemented?

@michele-segata
Copy link
Owner

This is the same problem in issue #9. At the end I suggest a way to do what you want to do, but you would need to modify the car following model MSCFModel_CC.

@zhaotuo0815
Copy link
Author

zhaotuo0815 commented Oct 11, 2022 via email

@michele-segata
Copy link
Owner

thank you so much.so the solution is to change the leader car's car-following model?

No, changing the platoon leader car following model will not work as Plexe relies on MSCFModel_CC to obtain leader acceleration and speed. Please read #9. There is no quick solution. You can use the same car following model and user the DRIVER control algorithm, which basically uses the Krauss car following model, but you need to modify MSCFModel_CC (and then re-compile SUMO) so that it is still capable of providing acceleration and speed to the followers, even when a "human" is driving the vehicle.

By the way, if I want the vehicle platoon to be released after reaching a certain road segment, how should I achieve it?

Please read the dedicated thread you opened.

@zhaotuo0815
Copy link
Author

thank you so much.so the solution is to change the leader car's car-following model?

No, changing the platoon leader car following model will not work as Plexe relies on MSCFModel_CC to obtain leader acceleration and speed. Please read #9. There is no quick solution. You can use the same car following model and user the DRIVER control algorithm, which basically uses the Krauss car following model, but you need to modify MSCFModel_CC (and then re-compile SUMO) so that it is still capable of providing acceleration and speed to the followers, even when a "human" is driving the vehicle.

By the way, if I want the vehicle platoon to be released after reaching a certain road segment, how should I achieve it?

Please read the dedicated thread you opened.
thank you so much. But when I use
driver
the DRIVER following model like( plexe.set_active_controller(vid, DRIVER)), The vehicle will automatically separate, vehicles will no longer form platooning anymore.

@zhaotuo0815
Copy link
Author

thank you so much.so the solution is to change the leader car's car-following model?

No, changing the platoon leader car following model will not work as Plexe relies on MSCFModel_CC to obtain leader acceleration and speed. Please read #9. There is no quick solution. You can use the same car following model and user the DRIVER control algorithm, which basically uses the Krauss car following model, but you need to modify MSCFModel_CC (and then re-compile SUMO) so that it is still capable of providing acceleration and speed to the followers, even when a "human" is driving the vehicle.

By the way, if I want the vehicle platoon to be released after reaching a certain road segment, how should I achieve it?

Please read the dedicated thread you opened.

By the way, the car will not brake when I use the ACC or CACC following model.
brake
script

@michele-segata
Copy link
Owner

thank you so much. But when I use the DRIVER following model like( plexe.set_active_controller(vid, DRIVER)), The vehicle will automatically separate, vehicles will no longer form platooning anymore.

Yes, as I said before, you will need to modify MSCFModel_CC (and then re-compile SUMO) so that the leader vehicle still provides acceleration and speed to the followers, even when a "human" is driving the vehicle. By default it will no work, you will need to work on the source code.

@zhaotuo0815
Copy link
Author

thank you so much. But when I use the DRIVER following model like( plexe.set_active_controller(vid, DRIVER)), The vehicle will automatically separate, vehicles will no longer form platooning anymore.

Yes, as I said before, you will need to modify MSCFModel_CC (and then re-compile SUMO) so that the leader vehicle still provides acceleration and speed to the followers, even when a "human" is driving the vehicle. By default it will no work, you will need to work on the source code.

Thank you so much for your replying. The next question is how to re-compile SUMO.

@michele-segata
Copy link
Owner

Thank you so much for your replying. The next question is how to re-compile SUMO.

Please follow the instructions on the official SUMO website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants