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

Allow vehicles to carry multiple passengers #133

Open
paulheinr opened this issue Jun 4, 2024 · 1 comment
Open

Allow vehicles to carry multiple passengers #133

paulheinr opened this issue Jun 4, 2024 · 1 comment
Labels
Traffic Feature Feature that changes the simulation logic

Comments

@paulheinr
Copy link
Collaborator

paulheinr commented Jun 4, 2024

Right now, vehicles can only carry one agent (src/simulation/wire_types/messages.proto:34). For DRT, we need multiple agents in one vehicle.

Think about

  • whether drivers get an extra role or not
  • what happens if a vehicle gets parked (right now it returns the agent)
@paulheinr paulheinr added the Traffic Feature Feature that changes the simulation logic label Jun 4, 2024
@paulheinr
Copy link
Collaborator Author

In classic MATSim, there is a distinction between Drivers and Passengers (org.matsim.core.mobsim.qsim.qnetsimengine.QVehicleImpl). There is a special Role org.matsim.core.mobsim.framework.DriverAgent, which equips the driver with perception of move over node and with the decisions to choose next link and to arrive.

Placing the agents on the respective seats (Driver/Passenger) is done by org.matsim.core.mobsim.qsim.interfaces.DepartureHandlers. There is one for each mode. For DRT, passengers are placed on the passenger seats, for car, they are placed as driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Traffic Feature Feature that changes the simulation logic
Projects
None yet
Development

No branches or pull requests

1 participant