|
Autopysta
|
A lane-changing model that forbids any lane changes. More...
#include <no_lch.h>
Public Member Functions | |
| no_lch () | |
Default constructor for the no_lch model. | |
| bool | lch_left (point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override |
| Determine if the vehicle should change lanes to the left. | |
| bool | lch_right (point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override |
| Determine if the vehicle should change lanes to the right. | |
Public Member Functions inherited from lcm | |
Additional Inherited Members | |
Protected Member Functions inherited from lcm | |
Protected Attributes inherited from lcm | |
| model * | _cf |
| Car-following model used in conjunction with lane-changing decisions. | |
| params * | _lcpars |
| Lane-changing model parameters. | |
A lane-changing model that forbids any lane changes.
This class represents a model where no lane-changing maneuvers are allowed. It acts as a fallback or placeholder model when lane-changing is not considered in a traffic simulation.
| no_lch::no_lch | ( | ) |
Default constructor for the no_lch model.
Initializes the lane-changing model with no parameters and prohibits all lane changes.
|
overridevirtual |
Determine if the vehicle should change lanes to the left.
Always returns false since lane changes are disallowed.
| leader | The current leader's position and speed (optional). |
| follower | The subject vehicle's position and speed. |
| new_leader | The position and speed of the new leader after lane change (optional). |
| new_follower | The position and speed of the new follower after lane change (optional). |
| cfm | A car-following model. |
| lcmpars | Lane-changing model parameters. |
false. Implements lcm.
|
overridevirtual |
Determine if the vehicle should change lanes to the right.
Always returns false since lane changes are disallowed.
| leader | The current leader's position and speed (optional). |
| follower | The subject vehicle's position and speed. |
| new_leader | The position and speed of the new leader after lane change (optional). |
| new_follower | The position and speed of the new follower after lane change (optional). |
| cfm | A car-following model. |
| lcmpars | Lane-changing model parameters. |
false. Implements lcm.