-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Problems with custom parking control using movetoXY and setspeed. #15988
Comments
moveToXY does not register the vehicle with the parkingSpace and also forces a vehicle which is already parking back into the network. Since each of your spaces is already an individual parkingArea, calling traci.vehicle.setParkingAreaStop should be enough to have it park in that spot. |
@namdre Thank you for your reply. My intention is to make the vehicle park in with a more realistic trajectory into the parking space, so I use movetoXY to achieve this function. |
In this case, you need to make sure that the last part of the maneuver only consists of a call to traci.vehicle.setParkingAreaStop without any moveToXY. If you right-click the vehicle and select 'show current route' the vehicle should be labeled "stopped" and the parameter dialog should have stop info: parking |
@namdre Well, actually what I mean is that I'm developing a custom parking approach to substitute for traci.vehicle.setParkingAreaStop. I utilize movetoXY to maneuver the car following the parking trajectory I've devised. |
the purpose of setParkingAreaStop is to make sure that the vehicle registers with the parkingArea and stops moving. It should not prevent you from applying custom movement code beforehand. |
@namdre Thank you for your reply. Perhaps I didn't express myself clearly. Here's my running situation. screenshot20250110.mp4 |
I need to make the end point of the parking trajectory further back. Screencast.2025-01-10.09.55.31.mp4 |
what is the status of the vehicle when it moves to the wrong spot? (see my previous post on "show current route" and parameter dialog stop info) |
The status of normal parking is "teleporting", while there is no status displayed in error cases. The stop info for both is blank. |
This means that the vehicle hasn't actually reached the parking spot and isn't parking form the viewpoint of the simulation. |
this is my test code |
After using traci.vehicle.setParkingAreaStop, even if the vehicle is already in the parking space, it will still go back onto the road and re-execute the preset parking maneuvers. What should I do to make the vehicle park using my custom-defined parking maneuvers? |
I used "movetoXY" and "setspeed" for custom parking control. However, after the vehicle has completed parking with a certain point in the parking space as the destination, it still moves. How can I solve this problem?
The text was updated successfully, but these errors were encountered: