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

No waypoint on the onramp road is fatal error to the vehicle's autopilot!!! #6822

Open
Liuzy0908 opened this issue Oct 11, 2023 · 1 comment
Labels
stale Issue has not had recent activity

Comments

@Liuzy0908
Copy link

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

<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!

Copy link

stale bot commented Dec 21, 2023

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.

@stale stale bot added the stale Issue has not had recent activity label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity
Projects
None yet
Development

No branches or pull requests

1 participant