Commit Graph

1543 Commits

Author SHA1 Message Date
glopezdiest 5a1983b93c More scripts 2024-10-31 11:01:22 +01:00
glopezdiest 86b3930946 Added several scripts 2024-10-31 11:01:22 +01:00
Pablo Villanueva-Domingo b93b1fa31f
Improve comments and arguments in Invertedai script and add requirements (#8321)
* Include InvertedAI script to generate traffic

* Add new line at the end of the script

* Include InvertedAI in the requirements

* Remove unrequired arguments, improve arguments help and comments
2024-10-28 12:42:40 +01:00
PabloVD 8da6d46aa2 Add new line at the end of the script 2024-10-24 16:21:49 +02:00
PabloVD e624af010f Include InvertedAI script to generate traffic 2024-10-24 16:21:49 +02:00
Joel Moriana 359f723d20 fixes to ros2 native demo 2024-10-10 12:31:09 +02:00
Pablo Villanueva-Domingo 2b249b501c
Fix DVS sensor bug in manual control due to np.bool deprecation in newer numpy version (#8256)
* Update numpy version compatible for Python 3.8-3.11

* Update comments for generations of vehicles and pedestrians

* Update generation comments in all scripts which include the filter

* Update filter and printed message in vehicle_physics.py

* Add vertical offset to avoid collision when spawning

* Fix DVS sensor bug in manual control due to np.bool deprecation
2024-10-08 16:54:33 +02:00
PabloVD 2c7fcd5491 Add vertical offset to avoid collision when spawning 2024-10-03 11:44:21 +02:00
PabloVD 7f51f21ee5 Update filter and printed message in vehicle_physics.py 2024-10-03 11:44:21 +02:00
PabloVD 6ee7cf5bd1 Update generation comments in all scripts which include the filter 2024-10-03 11:44:21 +02:00
PabloVD d8045c98ff Update comments for generations of vehicles and pedestrians 2024-10-01 16:27:46 +02:00
PabloVD 13d3a3a341 Update numpy version compatible for Python 3.8-3.11 2024-10-01 16:27:46 +02:00
Blyron ad2a73f122 Remove not supported files 2024-09-27 11:44:39 +02:00
MarcelPiNacy-CVC ac66b3637e
Sync compiler with scikit-build-core. (#8190) 2024-09-25 14:44:32 +02:00
MarcelPiNacy-CVC 0bbd239b1a
CMake refactor (#8168)
* Add option VERBOSE_CONFIGURE + several other minor tweaks.

* Minor refactor and expose version option variables for ROS2 build.

* Remove unneeded option BUILD_PYTHON_API_WHEEL_PACKAGE.

* Make cmake_minimum_required uniform + fix potential linker error.

* Revert ROS2 configure.
2024-09-19 17:35:18 +02:00
MarcelPiNacy-CVC 73a716e24d
Add get_actor_name & get_actor_class_name. (#8165)
* Add initial GetUnrealName & GetUnrealClassName code.

* Remove snapshot-based code.

* Code cleanup.
2024-09-19 11:07:46 +02:00
MarcelPiNacy-CVC 001604da6b
Fix some Unreal and PythonAPI build errors. (#8162) 2024-09-19 10:12:27 +02:00
MarcelPiNacy-CVC e326742a67
Update VehiclePhysicsControl fields for UE5-Chaos (#8141)
* Add VehiclePhysicsControl progress...

* Update parameter names.

* Minor fixes.

* Update python initializer.

* More VehiclePhysicsControl changes.

* Fix minor UE errors.

* Update Vehicle and WheelPhysicsControl.

* Various fixes.

* Add missing linebreak.

* Fix indentation.

* Make FVehiclePhysicsControl UPROPERTYs uniform.

* Fix indentation again...

* Fix indentation, yet again...
2024-09-17 17:55:19 +02:00
joel-mb 0db777202c
Changed default vehicle generation to all (#8149) 2024-09-17 16:37:23 +02:00
MarcelPiNacy-CVC 239b73e849
Add temporary workaround for the memory blowup issue (#8098)
* Add temporary workaround for the memory blowup issue during save_to_disk.

* Add more fixes on the server side. Update gitignore to remove the _out folder in PythonAPI/examples.

* Enable clangd support. (#8104)

* Enable clangd support.

* Disable CMAKE_EXPORT_COMPILE_COMMANDS by default.

* Revert unwanted target rename.

* Solves the crash on server side

We still have an unhandled exception on client side, but it doesn't affect nominal behaviour.

* Revert "Merge branch 'marcel/leak-workaround' of https://github.com/carla-simulator/carla into marcel/leak-workaround"

This reverts commit 89c211e780, reversing
changes made to 908c203fca.

* Reapply "Merge branch 'marcel/leak-workaround' of https://github.com/carla-simulator/carla into marcel/leak-workaround"

This reverts commit fc2402efdb.

* Fixed crash on client side

Now it's both client and server crashes fixed. By removing posts but keeping async read/write, we make sure saving to disk is sequential but there's no error if it gets interrupted.

* Cleanup of Changes -- Preparation for PR

---------

Co-authored-by: Jorge Virgos <jorgevirgos.dev@gmail.com>
2024-09-06 13:56:50 +02:00
MarcelPiNacy-CVC 592eb46f43
Propagate CMake generator to scikit-build-core. (#8110) 2024-09-04 16:59:01 +02:00
Blyron e69289736f Update number of python types 2024-06-26 14:39:53 +02:00
Blyron f99afe410c update manual control 2024-06-26 14:39:53 +02:00
Blyron 1a334fc471
Aaron/ue5/updatesensorcameraparams (#7834)
* Update parameters

* Update manual control gamma
2024-06-21 11:55:05 +02:00
Blyron 05593ae85e
Apply offset when spawnning pedestrians when spawnning (#7734) 2024-05-31 12:17:51 +02:00
Jose 41a5ebcf1c Adding Differential Type as int 2024-05-23 16:50:10 +02:00
Jose fd95933ce2 Adding new vehicle and wheel configuration properties 2024-05-23 16:50:10 +02:00
Jose a3cc59ecc3 Removing deprecated properties from Chaos vehicle and wheels 2024-05-22 12:56:09 +02:00
Joel Moriana 9132aec752 Added ros2 example 2024-05-16 11:07:41 +02:00
MarcelPiNacy-CVC 9f4c8422a8
Add functions and macros to aid in documentation and general usability. (#7639)
* 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.

* Revert to add_library for carla-ros2-native ExternalProject.

* Add function carla_add_target_docs and document "clean".

* Minor fix (missing names).

---------

Co-authored-by: Marcel Pi <25649656+MarcelPiNacy@users.noreply.github.com>
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-15 17:50:06 +02:00
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