You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When read a map of an onramp scenario from OpenDrive(.xodr file), the road type at the onramp is carla.LaneType.Onramp, and the road type of the main road is carla.LaneType.Driving.
Fristly:
OpenDrive(.xodr file): the road type at the onramp is carla.LaneType.Onramp
<lane id="-2" type="onRamp" level="false">
all_spawn_points = world.get_map().get_spawn_points()
for idx, waypoint_location in enumerate(all_default_spawn):
world.debug.draw_string(waypoint_location.location, str(idx), life_time=100)
As you can see, no waypoint is generated on the on-ramp!
Secondly:
Change the road type at the onramp in xodr: carla.LaneType.Onramp -> carla.LaneType.Driving
<lane id="-2" type="driving" level="false">
world = client.generate_opendrive_world(xodr_file.read())
all_spawn_points = world.get_map().get_spawn_points()
for idx, waypoint_location in enumerate(all_default_spawn):
world.debug.draw_string(waypoint_location.location, str(idx), life_time=100)
As you can see, waypoints is generated on the onramp road!
What you expected to happen:
Why does carla only support generating waypoints on roads of carla.LaneType.Driving type?
No waypoint on the onramp road is fatal error to the vehicle's autopilot!!!
Please tell me how to generate waypoints on the onramp road at carla.LaneType.Onramp type. Thanks a lot.
Your sincerely!
The text was updated successfully, but these errors were encountered:
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.
CARLA version: 0.9.13
Platform/OS: Ubuntu18.04
Problem you have experienced:
When read a map of an onramp scenario from OpenDrive(.xodr file), the road type at the onramp is carla.LaneType.Onramp, and the road type of the main road is carla.LaneType.Driving.
Fristly:
OpenDrive(.xodr file): the road type at the onramp is carla.LaneType.Onramp
As you can see, no waypoint is generated on the on-ramp!
Secondly:
Change the road type at the onramp in xodr: carla.LaneType.Onramp -> carla.LaneType.Driving
As you can see, waypoints is generated on the onramp road!
What you expected to happen:
Why does carla only support generating waypoints on roads of carla.LaneType.Driving type?
No waypoint on the onramp road is fatal error to the vehicle's autopilot!!!
Please tell me how to generate waypoints on the onramp road at carla.LaneType.Onramp type. Thanks a lot.
Your sincerely!
The text was updated successfully, but these errors were encountered: