-
Notifications
You must be signed in to change notification settings - Fork 25
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
Manipulating behavior of other vehicles #63
Comments
If you take a look at the Thus, to know how to change other car's behavior, you need to figure out how If you are familiar with these stuff, the challenge now is how would you alter the trajectory of the target vehicle. The information you have is the original trajectory. Sometime, you can even find a path or route which leads you from start point to end point by BFS. Besides, each step, your vehicle can perceive the surrounding objects with pseudo-lidar. Thus, with these information you should be able to program a tiny self-driving system and allow it to overtake objects. But to be honest, this is as hard as building a driving system from scratch... Let's go back to your idea. If you can pre-calculate the overtaking point and the overtaking trajectory from the top down view, yes, you can directly make a simple PID controller to track that trajectory. Actually, the IDM policy used in MetaDrive uses two PID controller to track the planned trajectories. When doing this, you may need some debug tools documented here: https://metadrive-simulator.readthedocs.io/en/latest/points_and_lines.html |
Thanks Quanyi. I'll look at the PID tracking part and see if i can get things to work. |
Hello, i want to know how about your work mentioned above? I used scenario_env, which is not suitable for IDMpolicy , so i use TrajectoryIDMPolicy. I need to define different trajectories for the surrounding car to make safe-critical scene for my RL-ego-car. I'm going to transform my .osm type map into a grid map , and then make an A* global route planning. But that would be very tough. Is your work going well? Can you give me some advice? |
I wanted to alter the behavior of another vehicle so that it can for example overtake the default vehicle at certain point. I think there's a way where we can record the drive where we can overtake certain vehicle and later change the simulated vehicle to be non-default and the other one to be us. I wanted to this in digital twin obtained from waymo dataset but it seems to bit hard than what i expected. The other option i was thinking was executing IDM policy to navigate between points and provide some waypoints or a hand drawn line in the birds eye view where we can define the trajectory but the points seem to be in 3D so i'm not sure if changing only the 2D coordinates will be enough.
I was also thinking if this can be done with multi-agent planning but i'm not sure how to do this way.
Any of your suggestion would be highly appreciated.
The text was updated successfully, but these errors were encountered: