Skip to content

Conversation

@PhoenixShade
Copy link
Collaborator

Description

Spawn points are now generated using generate_waypoints() for random spawns

junction spawns are now handled by get_waypoint_by_lane_id()

next() is being used for junction waypoints because of an issue with s=0 being confused for predecessor road/junction. The module converts waypoint to transform, then for relative vehicle position the transform is used to get waypoint. This led to the waypoint being on the wrong road as the original waypoint was for s=0. Using next() removes the issue.

Where has this been tested?

  • Platform(s): ...Windows 10
  • Python version(s): ... 3.11.9
  • Unreal Engine version(s): ... 5.3
  • CARLA version: ... NA

Possible Drawbacks

There could be edge cases which have not been discovered yet.

Spawn points are now generated using generate_waypoints() for random spawns

junction spawns are now handled by get_waypoint_by_lane_id()

next is being used for junction waypoints because of an issue with s=0 being confused for predecessor road/junction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant