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

Location for AddEntity #1034

Open
wilbertzhohn opened this issue Nov 17, 2023 · 0 comments
Open

Location for AddEntity #1034

wilbertzhohn opened this issue Nov 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@wilbertzhohn
Copy link

wilbertzhohn commented Nov 17, 2023

Describe the bug
When using "AddEntityAction" in OpenSCENARIO, the road user is just placed visually on the correct place.

To Reproduce

  1. Place print statements for all road objects in carla_data_provider.py in def on_carla_tick():
    for index, actor in enumerate(CarlaDataProvider._actor_location_map):
    name = actor.type_id
    actor = actor.get_location()
    print("type: " + str(name) + " || x: " + str(actor.x)+ " | y: " + str(actor.y) + " | z: " + str(actor.z))
  2. Execute example "StoryAddEntityAction.xosc"
  3. Observe terminal

Expected behavior
Normally, two entities (a tesla model 3 and the container should appear later when placing according to the xosc file.
Anyhow, all four vehicles are shown from beginning and have coordinates. The later-spawning vehicles are located round about at (0,0,0). They are already there on the map although they should not.
When "spawing" according to OpenX, they are moved in the engine visually, but according to the prints, they are still located round about (0,0,0).
Furthermore, they cannot be controlled using OpenSCENARIO commands. It seems that the actor is not linked as a carla object in the scenario runner for added entities.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • CARLA Version: 0.9.14
  • Python version 3.10.12
  • Version: 0.9.14, Commit: 70426c1
@wilbertzhohn wilbertzhohn added the bug Something isn't working label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants