Commit Graph

1513 Commits

Author SHA1 Message Date
Xavier Solé Nogués 08c06a01df
Revert "Introduce several helper macros and utilities for improved usability.…" (#7635)
This reverts commit 321082ed0b.

Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-13 11:45:53 +02:00
MarcelPiNacy-CVC 321082ed0b
Introduce several helper macros and utilities for improved usability. (#7609)
* Introduce the macros carla_add_executable, carla_add_library, carla_add_custom_target and introduce help dialog and help file generation.

* Remove semicolon on output.

* Switch from using configure time logic to a target "carla-help".

* Remove GCC_COMPILER option.

* Check PACKAGE_CONFIGURATION for empty.

---------

Co-authored-by: Marcel Pi <25649656+MarcelPiNacy@users.noreply.github.com>
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-13 09:47:15 +02:00
Marcel Pi fbdf0b6fdb Update test code. 2024-05-07 11:58:57 +02:00
Marcel Pi 2a860b481a Add error checking and gitignore. 2024-05-07 11:58:57 +02:00
Marcel Pi 78c0307e10 Minor change (consistency). 2024-05-07 11:58:57 +02:00
Marcel Pi b4fdc22a17 Properly expose Actor.apply_texture. 2024-05-07 11:58:57 +02:00
Marcel Pi 04d91a9625 Introduce necessary functions for the new apply-texture functions. 2024-05-07 11:58:57 +02:00
Blyron 287b28bc07 Removed ifdef from carlawheeledvehicle and use carla instead of libcarla in manual control 2024-05-07 11:57:17 +02:00
JoseM98 7e35eec00a Adding NoRenderingMode unit test and copyright message for other unit tests 2024-05-02 14:07:53 +02:00
Marcel Pi 4cf2c64a23 Automatically load Town10 in test script. 2024-05-02 10:41:57 +02:00
Marcel Pi e823ad6dad Add semantic segmentation test. 2024-05-02 10:41:57 +02:00
Marcel Pi c14ee47534
Add apply_texture API test (#7526)
* Add test_apply_textures.

* Fully test apply_texture API.

* Minor fix.

* Switch to unittest layout.

* Further progress.

* More progress.

* Remove globals and unneeded functions.

* Test code cleanup and add camera to output result images to disk.

* Remove main function.

* Minor code cleanup.

* Automatically load Town10 in test script.
2024-05-02 10:36:11 +02:00
Marcel Pi feb01ed1db Remove unwanted code from pixelreader testing. 2024-05-02 09:00:23 +02:00
JoseM98 90e662fe94 Separate sensor tests 2024-04-30 15:56:03 +02:00
JoseM98 d09721a75f Adding active wait to the tick for fixing image issue 2024-04-30 15:56:03 +02:00
JoseM98 20933d1833 Removing image_to_disk debug logs 2024-04-30 15:56:03 +02:00
JoseM98 4f85b46800 Save IMU, Gnss and Radar to csv file 2024-04-30 15:56:03 +02:00
JoseM98 511ef8b8dc Add more sensors. Add save to json file in IMU and Gnss 2024-04-30 15:56:03 +02:00
JoseM98 577f177642 Test first version 2024-04-30 15:56:03 +02:00
xavisolesoft 12f6230799 Prevent build python api whe launching the editor 2024-04-26 14:27:51 +02:00
Blyron c7e780009e
Adding sync mode test (#7487)
* Added spawnning all vehicles and all walkers

* Update tests, and add begin play to avoid initialization error in vehicles

* Adding test list and tested tests

* Update PythonAPI/test/API/spawn_vehicles.py

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

* Update PythonAPI/test/API/collision_test.py

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

* Update PythonAPI/test/API/spawn_walkers.py

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

* Update files names

* Updated TestCollision

* Adding sync mode test

* Updated test not to use eggs and updated copyright

* Update sync test

* Update sync test vehicle/walkers test

---------

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-22 16:29:46 +02:00
Aaron Samaniego 2e7c49d1f6 Updated TestCollision 2024-04-22 08:27:54 +02:00
Aaron Samaniego c6e044a1eb Update files names 2024-04-22 08:27:54 +02:00
Blyron 1915ae27c1 Update PythonAPI/test/API/spawn_walkers.py
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-22 08:27:54 +02:00
Blyron f0eed51f8a Update PythonAPI/test/API/collision_test.py
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-22 08:27:54 +02:00
Blyron ab0d15393d Update PythonAPI/test/API/spawn_vehicles.py
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-22 08:27:54 +02:00
Aaron Samaniego 84e5e92f01 Adding test list and tested tests 2024-04-22 08:27:54 +02:00
Aaron Samaniego 8058f7cd39 Update tests, and add begin play to avoid initialization error in vehicles 2024-04-22 08:27:54 +02:00
Aaron Samaniego 49c008aae1 Added spawnning all vehicles and all walkers 2024-04-22 08:27:54 +02:00
Xavier Solé Nogués 7433f804a1
UE5: Pacakge copy python wheel (#7345)
* Pacakge copy wheel

* Update PythonAPI/carla/requirements.txt
2024-04-10 09:15:27 +02:00
Marcel Pi c31b6fe032 Fix build order issue. 2024-04-09 16:47:09 +02:00
Marcel Pi 4212ff6701
Add wheel package generation. (#7334)
* Python package progress

* Remove unneeded POST_BUILD command.

* Switch to scikit-build-core (WIP)

* More changes boost::python-related changes.

* Add LICENSE copy, remove explicit reference to C/C++ compiler.

* Switch back to pure CMake build, using package data to include C++ extension binaries.

* Minor changes.

* Add fallback if PEP517 is unavailable.

* Integrate PythonAPI target in main build.

* Fix minor build order issue.

* Remove invalid option in setup.py.

* Address review comments.

* Switch finally to scikit-build-core for PythonAPI build/wheel and refactor CMake folder.

* Minor fix.

* Update gitignore.

* Minor change.

* Remove unused CarlaOptions include

* Add missing file copy.

* Add several Ubuntu-related changes.

* Update requirements.txt

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

* Update CMake/Common.cmake

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

---------

Co-authored-by: xavisolesoft <xavisolesoft@gmail.com>
2024-04-09 16:32:09 +02:00
Aaron Samaniego b8cc2426c3 Added world rotation normalize 2024-04-02 16:18:11 +02:00
Marcel Pi d215264cb6 Fix image sending issue + move EnqueueRenderSceneImmediate to PostPhysTick. 2024-03-21 11:06:40 +01:00
Marcel Pi 22896c2c59 Revert back to symlinks for python API. Add prop_control.py 2024-03-18 14:36:30 +01:00
Marcel Pi 32c8aa4a68 Switch from PythonAPI symlink to hard copy temporarily. 2024-03-18 14:12:11 +01:00
glopezdiest 4c4d8067e9
Added API tests (#7244)
* Added API tests

* Delete carla.so

---------

Co-authored-by: glopezdiest <glopez@cvc.uab.cat>
2024-03-13 13:32:41 +01:00
Marcel Pi 908b1b306b Move PythonAPI agents folder up + very minor refactor. 2024-03-12 22:29:24 +01:00
Marcel Pi 8c14d9ff4c Minor changes, introduce options for -Wall and -Werror. 2024-03-12 13:04:01 +01:00
Marcel Pi 01852e6a6e - Update gitignore.
- Add launch and launch-only CMake custom targets.
- Temporary workaround for lack of a properly parameterized toolchain file.
- Change all references to CarlaUE4 to CarlaUnreal.
- Separate CMake Options files.
2024-03-08 20:31:22 +01:00
Marcel Pi ccb5d98d26 Add Linux Toolchain file. 2024-03-07 17:11:15 +01:00
Marcel Pi d72dd89db4 More Ubuntu build progress... 2024-03-06 17:20:13 +01:00
MarcelPiNacy d0dce22ba1 Replace references to CarlaUE4. 2024-03-04 13:33:51 +01:00
Marcel Pi 74d19eece2 Restructure PythonAPI folder layout + update copyright. 2024-02-26 17:09:02 +01:00
Marcel Pi 7b4e895ae6 Remove reference to find_carla.py.in 2024-02-22 17:39:48 +01:00
Marcel Pi b423fe06e2 Fix CMake PythonAPI build. Disable OSM2ODR and OSM World Renderer. 2024-02-20 16:34:31 +01:00
Marcel Pi aeaa621e3a More progress with pure CMake migration. 2024-02-06 21:47:29 +01:00
Marcel Pi 9179489b96 More progress... 2024-02-05 11:52:25 +01:00
Marcel Pi 9b5d26c3b5 Overhaul PythonAPI, switch to scikit-build-core. 2024-01-25 16:24:20 +01:00
Marcel Pi aa24005f88 Several fixes (PythonAPI, Configure, Boost Exceptions). 2024-01-23 12:41:57 +01:00