carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.13k stars 3.59k forks source link

Question: Inserting Arbitrary 3D Objects into Carla Simulation using Python API #6740

Open skilh opened 1 year ago

skilh commented 1 year ago

Hello everyone,

I would like to know if there is a way to insert arbitrary 3D objects into a running simulation via the Python API. Ideally, I would use the Python API to specify the 3D object that I want to insert and spawn by providing its position, rotation, and scale. The object can be placed on any surface (road, sidewalk, etc.).

I'm using Carla 0.9.14, which is a package built from source, on Ubuntu 21.04 and Python 3.10.

PraveenKumar-Rajendran commented 1 year ago

+1 I also have a similar requirement. Is it possible to insert a 3D model (in .obj or other file format) into fixed positions within the simulation? This could involve incorporating custom-designed objects, such as traffic lights, at specific static locations.

EDIT:

I found a similar issue: https://github.com/carla-simulator/carla/issues/744 helpful documentation: https://carla.readthedocs.io/en/latest/tuto_A_add_vehicle/

Hello everyone,

I would like to know if there is a way to insert arbitrary 3D objects into a running simulation via the Python API. Ideally, I would use the Python API to specify the 3D object that I want to insert and spawn by providing its position, rotation, and scale. The object can be placed on any surface (road, sidewalk, etc.).

I'm using Carla 0.9.14, which is a package built from source, on Ubuntu 21.04 and Python 3.10.