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

Create Spawn Point Service #116

Open
Bonifatius94 opened this issue Mar 12, 2022 · 0 comments
Open

Create Spawn Point Service #116

Bonifatius94 opened this issue Mar 12, 2022 · 0 comments

Comments

@Bonifatius94
Copy link
Collaborator

Task:

  • create a ROS service returning spawn points for the currently loaded town
  • use an approach like the following snippet
import carla

client = carla.Client('localhost', 2000)
client.set_timeout(2.0)

world = client.get_world()
spawn_points = world.get_map().get_spawn_points()
spawn_points = [(sp.location.x, -sp.location.y) for sp in spawn_points]

Goals:

  • load the spawn positions dynamically
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

No branches or pull requests

1 participant