carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.11k stars 3.58k forks source link

How to make the motorcycle lane splitting? #5827

Open FrankZTH opened 1 year ago

FrankZTH commented 1 year ago

Hello, everyone, I need to make Carla close to Asia traffic conditions. Like the picture below. Screenshot 2022-10-13 134035

But now I have no idea how to make it work. Is this work could make by PythonAPI? Any help will be appreciated !!!

CARLA version: 0.9.13 Platform/OS: Linux 18.04

TR-Monash commented 1 year ago

You can perhaps use the offset parameter when you setup the agent. For example, something like below: cycle_agent = BasicAgent(bike_vehicle, opt_dict={'offset': 1.3, 'ignore_vehicles': True}) However, a larger (or smaller) offsetmay break the autopilot algorithm.

FrankZTH commented 1 year ago

You can perhaps use the offset parameter when you set up the agent. For example, something like below: cycle_agent = BasicAgent(bike_vehicle, opt_dict={'offset': 1.3, 'ignore_vehicles': True}) However, a larger (or smaller) offsetmay break the autopilot algorithm.

Thanks for your answer I have already tried this method, but it seems not to work. I'll keep trying this method. I appreciate any answers.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.