Commit Graph

1458 Commits

Author SHA1 Message Date
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
Marcel Pi c00d44d2dc Multiple minor fixes related to build and docs. 2024-09-12 16:58:37 +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
glopezdiest 54b8219523 New TM constants 2024-07-08 14:14:24 +02:00
Blyron 6268f0a9e7
Aaron/ue5/supportvectorattributes (#7844)
* Update parameters

* Update manual control gamma

* Support fvector attributes

* Complete merge
2024-06-25 10:37:42 +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
PabloVD 763fd521a9 Define ROS2 demo functions when flag is off 2024-05-21 19:49:59 +02:00
PabloVD e1cfe639fc Add Ros2 demo flags for cmake 2024-05-21 19:49:59 +02:00
LuisPoveda 678e8b48c0 added cmake target
added definition in buildcarla
added defines to avoid compile demo in ros
2024-05-21 19:49:59 +02:00
Xavier Solé Nogués 2bbe3c5e8b
Remove boost from ROS2 (#7670) 2024-05-17 11:37:04 +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
MarcelPiNacy-CVC bca3b5abef
Fix LibCarla's Version.h.in (file configured by CMake to set the library version). (#7647)
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-15 16:07:47 +02:00
PabloVD 223b292f68 Create basic ROS2 publisher and subscriber 2024-05-13 20:00:51 +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
JoseM98 4aa2e3c934 Checking if path or extension is not empty 2024-05-08 17:09:02 +02:00
Marcel Pi 04d91a9625 Introduce necessary functions for the new apply-texture functions. 2024-05-07 11:58:57 +02:00
Xavier Solé Nogués 05db88daf2
Remove deprecated LibCarla Cmake (#7476) 2024-04-19 15:12:45 +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
Xavier Solé Nogués 36db692283
Remove deprecated ROS2 cmake for Configure.py (#7318) 2024-04-03 10:48:12 +02:00
Blyron 6baaad1c04 Update LibCarla/source/carla/geom/Rotation.h
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 16:18:11 +02:00
Blyron 90e2d5969a Update LibCarla/source/carla/geom/Rotation.h
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 16:18:11 +02:00
Blyron 20849338d8 Update LibCarla/source/carla/geom/Rotation.h
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 16:18:11 +02:00
Blyron 07d7a5da08 Update LibCarla/source/carla/geom/Rotation.h
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 16:18:11 +02:00
Blyron dbd344ed80 Update LibCarla/source/carla/geom/Rotation.h
Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 16:18:11 +02:00
Aaron Samaniego b8cc2426c3 Added world rotation normalize 2024-04-02 16:18:11 +02:00
Marcel Pi 6150720de2
Cmake add package target (#7289)
Add package target

---------

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-04-02 11:05:55 +01:00
Marcel Pi d215264cb6 Fix image sending issue + move EnqueueRenderSceneImmediate to PostPhysTick. 2024-03-21 11:06:40 +01:00
Marcel Pi bfa58f2902 Multiple minor changes. 2024-03-18 20:25:56 +01:00
Aaron Samaniego 40cd9f63e5 Re enable radar and make it work with SensorSpawnerActor 2024-03-18 10:20:06 +01:00
Marcel Pi 44d0c1bc3c
Marcel/5.3/cmake libcarla image support list (#7249)
* Reintroduce launch-only target.

* Expose explicit mechanism to request image support to libcarla.

* Update CMake/Options/Common.cmake

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

* Remove unwanted changes.

* Add missing EOF newline.

---------

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
2024-03-14 19:11:15 +01:00
Marcel Pi e382ec9f6c
Merge marcel/ue5.3 to ue5-dev (#7251)
* Activate ROS2 Build for

* Build works, but linking issues due cpp ABI differences

* Build with ROS2 working for make carlaUE4

* Implement ROS2 dynamic link

* Code clean: Remove comments and unused code

* Fixes regarding path names

* Extended functionallity of SensorSpawnerActor (#7198)

* Added the option to save IMU and GNSS data to Json. Also to attach the sensor into some actor on SensorSpawner

* Fix SceneCaptureSensor crash at spawn, disabling PhysTick for this classes.

* Fixing camera capture.

* UE5 ROS2: Deploy shared libraries

* Remove Configure.py duplicated function due merge

* Build Lib Carla with ROS2 just when ROS2 flag is ON.

* Antonio mata/wheel parent actor fixer (#7208)

* Editor utility actor made that reparented the wheel blueprint classes that had a null parent class with the "UChaosVehicleWheel"

* Tagger fixed

---------

Co-authored-by: Antonio Mata <artoniodev@gmail.com>

* If statement fixed

* ROS2: Prevent ros2 build crash when ros2 is installed in the system (#7212)

* Aaron/ue5/fixwarnings (#7215)

* Removing UEditorLibary::GetEditorWorld()

* Fixing more warnings

* Remove SavePackage deprecated function in ProceduralBuildingUtilities

* Fix Warnings in USDImporterWidget

* Remove levellibrary fromheader

* Antonio mata/blueprint parent class fixer (#7217)

* First pass of the Blueprint parent class fixer code

* Tweaked and commented the BlueprintParentClassDixer code

---------

Co-authored-by: Antonio Mata <artoniodev@gmail.com>

* UE5 Configure.py: Force boost toolset to clang16 (#7220)

* Check if clients are listening

* Remove steering wheel check and adding log information

* Adding error log information

* Change log condition

* Only correct DX data when client listening

* Debug Lidar sensor saving points to a xyz file

* Save lidar pointcloud data into a .ply file

* Modify how Lidar .ply files are stored to be the same as PythonAPI. Also, fix LineTerminator issue on linux.

* Removing comments and adding change trace method.

* Cleaning code.

* Adding WITH_EDITOR condition when saving data on Lidar. And removing unused variable.

* Rename CarlaUE4->CarlaUnreal

* More pending renames.

---------

Co-authored-by: xavisolesoft <xavisolesoft@gmail.com>
Co-authored-by: Jose <44341347+JoseM98@users.noreply.github.com>
Co-authored-by: ArtonioDev <124166696+ArtonioDev@users.noreply.github.com>
Co-authored-by: Antonio Mata <artoniodev@gmail.com>
Co-authored-by: PabloVD <pablo.villanueva.domingo@gmail.com>
Co-authored-by: Blyron <53337103+Blyron@users.noreply.github.com>
Co-authored-by: Aaron Samaniego <samaniegoaaron112@gmail.com>
Co-authored-by: Jose <josemartinez81998@gmail.com>
2024-03-14 19:05:38 +01:00
Xavier Solé Nogués 979b942ff5
Implement Cmake ros2 native external project (#7252)
* libcarla-ros2-native.so build and install working.

* Fixes and add Carla.Build.cs

* ROS2Native build system implemented for CMake

* Add g++/gcc option and remove Build path reference from Carla.build.cs

* Auto add ros2 target when ros2 and server is enabled

* Remove ROS2 from client

* Fix build when ROS2 is disabled.

* Clean up space

* Fix will error with ROS2 enabled

* Remove macro collision ROS2
2024-03-14 15:27:10 +00:00
Marcel Pi 908b1b306b Move PythonAPI agents folder up + very minor refactor. 2024-03-12 22:29:24 +01:00
Marcel Pi 63571a79b7 Remove header search in ImageIOConfig. 2024-03-12 16:52:40 +01:00
Marcel Pi c3118ed55a Temporarily revert AtomicSharedPtr upgrade. 2024-03-12 15:06:28 +01:00
Marcel Pi 6725e66d0d Disable Wall by default and fix deprecation warning for std::atomic<std::shared_ptr<T>> 2024-03-12 15:05:13 +01:00
Marcel Pi ccb5d98d26 Add Linux Toolchain file. 2024-03-07 17:11:15 +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 b4ac57006d Update LibCarla CMakeLists. 2024-02-22 16:49:15 +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 2f491e002f Fix RPC target. 2024-02-13 09:35:53 +01:00
Marcel Pi 5fed711695 Set rpclib to be always downloaded. 2024-02-13 09:33:22 +01:00
Marcel Pi 96b5aadd45 Fix boost build. 2024-02-13 09:23:52 +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