Commit Graph

440 Commits

Author SHA1 Message Date
bernatx 7c106b9426 adding Town15 as AdditionalMap 2023-10-27 14:39:37 +02:00
bernatx ed2159fb0d Remove Recast hash version 2023-10-23 16:32:29 +02:00
bernatx 9ad61979c7 New version of Recast&Detour 2023-10-23 09:58:29 +02:00
anrp ba497e62f2 Force Unreal toolchain to use Unreal sysroot
Not doing this can lead to the Unreal toolchain examining the host system,
which can cause it to attempt to use glibc features newer than the Unreal
target of 2.17 provides (specifically, rpclib can accidentaly pick up the
symbol pthread_cond_clockwait, which is provided by Ubuntu 20.04 glibc 2.31
but *not* by Unreal glibc 2.17, which then causes a missing symbol linker
error when trying to build CARLA. The reason is that libc++ attempts to
detect glibc version in its headers and conditionally uses that symbol.)
2023-09-27 13:57:50 +02:00
Omar Alam 0d75d2d4dc Add build support for VS2022 and Ninja for LibCarla and osm2odr on Windows 2023-09-27 12:18:16 +02:00
Axel 739bb6fd97 Fix ubuntu compilation error 2023-07-04 17:10:31 +02:00
Axel1092 24bf3b2b65 Fixed houdini compilation error 2023-07-03 14:01:30 +02:00
bernatx 12fc74dcbb Fix installation of headers 2023-05-05 10:55:53 +02:00
bernatx 73315d3d62 Pedestrians collision deisabled when using AI or in replayer 2023-05-05 10:55:53 +02:00
Blyron 1a908dd936
Aaron/digitaltwinssidewalks (#6430)
* Added way to download files from overpass api

* Save downloaded text to a file

* Changed log type for File manipulation

* Online process files when request is valid

* Correct file format

* Correct file format for UE4 class

* Fix compilation issue due to name change

* Create Widget with OpenFileDialogFunctionality

* Step xodr to map completed

* Generated Static meshes and replace procedural actors

* Created and saved assets during road generation

* Formatted file correctly

* OSM To ODR broguht to UE4

* Full pipeline working on linux

* Added osm2odr support in editor in Windos

* Added Widget to CartaTools

* Fixed Linux compilation error

* Added Carla Game Instance included to avoid compilation error

* Osm Renderer Tool dummy version

* Server creates SVG files when client request it

* SVG creation and rasterization - libraries integration

* Server size working

* Added Simplify to LibCarla, Added timers to measure time generation.  Add mesh deformation during road creation.

* Fixed mesh format translations

* Trying to paint bitmap into the UTexture

* Bitmap sent and drawn in widget texture with bugs

* Map bitmap shown on widget

* Concated meshes generated in the same lane to avoid errors during simplification

* Navigation added to widget

* Avoid Simplify to remove border vertices and try to parallel assets creation process

* Road Generation 0.1 version ready

* Removing Engine Association, Formatting CarlaTools Build dependencies

* Change container type of generated procedural mesh componetns to be supported by UPROPERTY

* Fixed indices jumping by two

* Added in separate thread junctions generation

* Started dynamic database creation

* Dynamic database creation temporally removed

* First step of merge. Coords of bottom left corner and top right corner

* Libraries added to build system

* Git ignore for osmrenderer to avoid ThirdParties directory to be tracked

* Lat and Lon coords for corners sent from server to client

* Transformed to local coords meshes' vertices' coords

* Coords format error fixed

* Saving xodr and osm files inside of OpenDrive folder

* Widget fixed

* UI design improved

* WIP Windows build system for osm-world-renderer

* Socket implementation replaced by boost asio framework in osmrenderer

* Added multithreaded simplification of meshes

* Build system adapted to wndows

* Headers fixed to avoid windows specific heraders compilation

* Remove warnings

* Added widget to import building from houdini

* Added origin latitude and longituda to OSM to OpenDRIVE conversion functions. Fixed Houdini importer widgets.

* Add Houdini plugin download to the build system

* Moved houdini blueprint. Houdini plugin now dowloads by default

* Added houdini download for windows

* OpenDriveToMap Now is a UOBject instead of widget

* Added Lane mark generation.

* Roads materials and distance field scale set to 0

* M_PI macro fixed for windows osm-renderer build system

* Added Lane Marking generation

* Fixed compilation issue related with std pair non copyable lane

* Fix bug where different lanes were concating. Fix bug where end of roadmark was creating an artifact

* Lanes Marks material assignation

* Fix compilation issue and reading from not valid memory crash

* Middle Lane mark duplication bug fixed - temp solution

* Added bumps along road

* Adding marchingcubes library and added to create junctions

* Added junctions generations using marching cube and smoothed

* Fixed linux compilation and removed couple warnings

* Using previous algorithim for two road connections

* Code cleanup

* Remove debug state

* Format Files

* Format third parties files

* Spaces removal

* Fix code format

* Modified workflow for side walks

* Added check for traffic lights and default materials for sidewalks

* Change build osm script hash

* Fix code format

* changed buildosm2odr hash

* Updated has

* Format fix

---------

Co-authored-by: aollero <aollero@cvc.uab.cat>
Co-authored-by: aollero <adriollero@gmail.com>
Co-authored-by: Axel <axellopez92@outlook.com>
2023-05-03 17:00:58 +02:00
bernatx 8a33893cb0 Saving AdditionalMaps in nightly build 2023-04-14 08:41:52 +02:00
anrp-tri 4e070089c8
Make (Unreal) non-unity build available (#6190)
This lets IWYU-type errors be fixed; they are often masked by it.
Fix all detected errors of this kind. Note that Unity is on by
default, likely for performance reasons, so this does not change
that; instead, pass ARGS=--no-unity to make to try it (note that this
unfortunately will rebuild the editor too.)

Co-authored-by: anrp <anrp@tri.global>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
Co-authored-by: bernat <bernatx@gmail.com>
2023-03-20 12:09:39 +01:00
Axel 5487e17f60 Making Omniverse code optional 2023-03-17 11:29:49 +01:00
Axel 98c0145120 Added patch for omniverse importer 2023-03-17 11:29:49 +01:00
Axel1092 777b174a08
Digital Twins first iteration (#6260)
* Added way to download files from overpass api

* Save downloaded text to a file

* Changed log type for File manipulation

* Online process files when request is valid

* Correct file format

* Correct file format for UE4 class

* Fix compilation issue due to name change

* Create Widget with OpenFileDialogFunctionality

* Step xodr to map completed

* Generated Static meshes and replace procedural actors

* Created and saved assets during road generation

* Formatted file correctly

* OSM To ODR broguht to UE4

* Full pipeline working on linux

* Added osm2odr support in editor in Windos

* Added Widget to CartaTools

* Fixed Linux compilation error

* Added Carla Game Instance included to avoid compilation error

* Osm Renderer Tool dummy version

* Server creates SVG files when client request it

* SVG creation and rasterization - libraries integration

* Server size working

* Added Simplify to LibCarla, Added timers to measure time generation.  Add mesh deformation during road creation.

* Fixed mesh format translations

* Trying to paint bitmap into the UTexture

* Bitmap sent and drawn in widget texture with bugs

* Map bitmap shown on widget

* Concated meshes generated in the same lane to avoid errors during simplification

* Navigation added to widget

* Avoid Simplify to remove border vertices and try to parallel assets creation process

* Road Generation 0.1 version ready

* Removing Engine Association, Formatting CarlaTools Build dependencies

* Change container type of generated procedural mesh componetns to be supported by UPROPERTY

* Fixed indices jumping by two

* Started dynamic database creation

* Dynamic database creation temporally removed

* First step of merge. Coords of bottom left corner and top right corner

* Libraries added to build system

* Git ignore for osmrenderer to avoid ThirdParties directory to be tracked

* Lat and Lon coords for corners sent from server to client

* Transformed to local coords meshes' vertices' coords

* Coords format error fixed

* Saving xodr and osm files inside of OpenDrive folder

* Widget fixed

* UI design improved

* WIP Windows build system for osm-world-renderer

* Socket implementation replaced by boost asio framework in osmrenderer

* Build system adapted to wndows

* Headers fixed to avoid windows specific heraders compilation

* Added widget to import building from houdini

* Added origin latitude and longituda to OSM to OpenDRIVE conversion functions. Fixed Houdini importer widgets.

* Add Houdini plugin download to the build system

* Moved houdini blueprint. Houdini plugin now dowloads by default

* Added houdini download for windows

---------

Co-authored-by: Aaron <samaniegoaaron112@gmail.com>
Co-authored-by: Blyron <53337103+Blyron@users.noreply.github.com>
Co-authored-by: aollero <aollero@cvc.uab.cat>
Co-authored-by: aollero <adriollero@gmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
2023-03-03 17:26:48 +01:00
Blyron dcca826ade
Aaron/opendrivetomapineditor (#6056)
* Added way to download files from overpass api

* Save downloaded text to a file

* Changed log type for File manipulation

* Online process files when request is valid

* Correct file format

* Correct file format for UE4 class

* Fix compilation issue due to name change

* Create Widget with OpenFileDialogFunctionality

* Step xodr to map completed

* Generated Static meshes and replace procedural actors

* Created and saved assets during road generation

* Formatted file correctly

* OSM To ODR broguht to UE4

* Full pipeline working on linux

* Added osm2odr support in editor in Windos

* Added Widget to CartaTools

* Fixed Linux compilation error

* Added Carla Game Instance included to avoid compilation error

* Added Simplify to LibCarla, Added timers to measure time generation.  Add mesh deformation during road creation.

* Fixed mesh format translations

* Concated meshes generated in the same lane to avoid errors during simplification

* Avoid Simplify to remove border vertices and try to parallel assets creation process

* Road Generation 0.1 version ready

* Removing Engine Association, Formatting CarlaTools Build dependencies

* Change container type of generated procedural mesh componetns to be supported by UPROPERTY

* Fixed indices jumping by two

* Cleaning branch

* Cleanup last spaces

* Remove spaces on Opendrivetowditor.cpp
2023-02-15 09:50:55 +01:00
anrp f66fd8e7c7 Use Unreal's host SDK on Linux
The supported compiler is clang, but that is not the default on Ubuntu.
Unreal Editor itself ships clang-10 for use on linux (along with the
libc++ that Unreal itself uses) so just use those in CARLA.
2023-01-27 12:39:48 +01:00
Axel dd3bc8709c Revert to boost 1.80 2022-12-20 13:18:34 +01:00
Axel1092 44fdf8d7d4 Removed unnecessary files 2022-12-20 13:18:34 +01:00
Axel b70a4d5e44 Upgrade boost for Windows 2022-12-20 13:18:34 +01:00
Axel cef4489d0f Upgraded boost 1.81 for linux 2022-12-20 13:18:34 +01:00
bernat ad13db4157 Fix Package.sh script 2022-11-03 16:06:10 +01:00
bernatx f628f204b4 Adding backup for xerces-c library 2022-10-20 10:31:16 +02:00
Axel 2f739238e4 fixed xerces-c dependencies 2022-10-20 10:31:16 +02:00
Axel 4e4d59fad9 Fixed xerces-c dependency 2022-10-19 10:37:10 +02:00
Axel1092 a6be1a67f3
Pytorch integration with terramechanics (#5684)
* Added sparse map reprsentation

* Added pytorch for terramechanics modules

* Added saving loading particles in independent thread

* Added blank space at the EOF

* Added texture creation lambda

* Moving function to component

* Added input/output architecture for neural network

* Filling heightmap with particles data. Adding Logging to debug

* Updating Texture data at realtime

* Connected 3 stages, using MPC Position to Update and Texture

* Added square particle sampling. Added second model input/output scheme. Fixed start up crash.

* Added new flags and fixes

* Position to update not updating in material but yes in MPC

* Fixed coordinate frame issues and crashes

* Prepared to follow position in the 1st vehicle in map

* Fixed height map alignment

* Fixed large map and terrain tiles alignment

* Fixed inputs for new model

* Added scale factor

* Fixed slow read write operations

* Bug fixes

* Removed debug output

* Removed nvidia profinling marks

* Preparing merge debug code removed, runtime working by rounding the loading data properly

* Made pytorch optional module

* Added TRACE_CPUPROFILER_EVENT_SCOPE to Update and UpdateTexture

* Added optional pytorch conditions and macros

* Removed static Path

* Fixed #ifdef clause. Added missing include.

* Deformation on vehicle working. Ready to start optimisation

* First optimsation done. Heightmap per Tile

* Updated tiles'heightmap to make their size relative to texture and tilesize

* Fixed slow frames. Added functionality

* Removed unecessary library links

* Fixed pytorch link

* Limited search to relevant tiles

* Added multithreaded particle search. Fixed cuda architectures compilation

* Deformation plane added

* Added missing resources

* Updated particle movement update methods

* Spawn on runtime deformation plane

* Added cachemap lock when initializing a region

* Added UHeightMapDataAsset to hold heightmap data

* Fixing some settings

Co-authored-by: Aaron <samaniegoaaron112@gmail.com>
Co-authored-by: bernatx <bernatx@gmail.com>
2022-09-23 15:39:09 +02:00
Daniel Attard 0ef84b22e8 Updating wget when downloading fbxsdk 2022-08-26 09:55:42 +02:00
bernatx 9c9eda84bc Multi GPU first version 2022-07-21 13:24:02 +02:00
LuisPoveda 5ac3ce6d31
Luis/collisions bushes (#5477)
* Added base class for spring based vegetation simulation

* Excluded small bones from Inertia tensor computation. Added eigen 3.1.0 as dependency for vegetation modules.

* Added patch for eigen 3.1.0 in windows.

* Fixed windows compilation with eigen libraries

* Added automatic hierarchy extraction from skeletal mesh to spring based skeleton. Exposed custom spring vegetation structs to editor.

* Reorganized functions for spring based vegetation simulation. Fixed coordinate transformation bug (from UE left handed frame to right handed frame).

* Changes to use compile with CLang 10

* Improved spring strength settings for infividual branches. Enabled better debugging.

* added bush bp
added bush with sphere to the town10 map

* Fixed bush collision make car fly

* spring based vegetatation component updated

* System to get the bp from foliage mesh and instanciate if exists at runtime

* Added filters for spawning different types of foliage

* Spawning foliage hide and scaling it before showing.

* Added foliage bp class cache system to improve performance

* Changed Sphere Detection for Box and Implemented Object Pooling

* Fixed Dissapearing bushes, testing pooling

* Changed Sign function to not use clang's one

* Moved Spawner Logic out of Vehicle

* fix vegetation spawner now looks for new statich meshes every frame

* PR changes

* PR Changes

* Deleted spaces and scale spawn property

Co-authored-by: Axel <axellopez92@outlook.com>
Co-authored-by: Axel1092 <lopez1092@hotmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
2022-06-02 14:35:42 +02:00
Axel 843ac4b38e Fix ubbuntu 18 compilation issues 2022-05-02 09:25:24 +02:00
Marcel Pi aaf40aa250 Switched back to using LLVM-8.0. 2022-04-26 16:17:00 +02:00
Marcel Pi 74e0c680cd Switched to a more robust way of detecting the current compiler. 2022-04-26 16:17:00 +02:00
Marcel Pi 9b13826865 Renamed CARLA_CLANG_VERSION_MAJOR to CARLA_LLVM_VERSION_MAJOR. 2022-04-26 16:17:00 +02:00
Marcel Pi 9a005e9c7c Revert "More Setup.sh changes."
This reverts commit ff82140d70.
2022-04-26 16:17:00 +02:00
Marcel Pi dfc799a5d3 More Setup.sh changes. 2022-04-26 16:17:00 +02:00
Marcel Pi 97f3b96659 Minor Setup.sh changes. 2022-04-26 16:17:00 +02:00
Marcel Pi 54d6116d57 Automatically detect clang version. 2022-04-26 16:17:00 +02:00
Marcel Pi 1821df68c4 Removed specific version requirements for clang, lld and gcc. 2022-04-26 16:17:00 +02:00
bernat df05a509f3 Changes to use compile with CLang 10 2022-04-26 16:17:00 +02:00
Axel 107f4cebf8 Fixed commandline overflow when too many tiles are cooked at the same time 2022-04-06 13:12:14 +02:00
Axel 66d29be1a1 Fix xerces download broken link 2022-03-31 10:47:34 +02:00
bernatx 29474670ad Fix import script when mixing props and maps 2021-11-05 18:48:33 +01:00
berndgassmann 6fc187f4b3
RssSensor fixes (#4604)
* RssSensor fixes

RssSensor:
- make client side calculations threaded to ensure it is not
incrementally delaying the whole client
- support multiple instances of RssSensor
- initialize _last_processed_frame properly

RssRestrictor:
- enable python set_log_level

General:
- Update to RSS v4.4.2 and map v2.4.5_hotfix supporting elevation
- manual_control_rss: enalbe dynamics log level switching

* Update to ad-rss-lib 4.4.3

* really go to ad-rss-lib 4.4.3
2021-11-05 18:12:49 +01:00
bernatx 4d04b4ae29 Cook maps one by one in windows (slower but can package unlimited maps) 2021-07-30 03:07:41 +02:00
bernatx 2d717a958e Fixing import.py for python 3 2021-07-30 01:08:15 +02:00
joel-mb 4b0525eef2
[Traffic Manager] InMemoryMap binary file (#4424)
* First iteration of the required files functionality

* WIP: Binary file for in memory map

* Fixed "/Game/" replacement and load new episode by name problems with the required files system

* removed unnecessary changes

* added extra space

* Enable pedestrians building only for single maps, no in tiled maps (temporal)

* Added python selector to make import command

* returning const reference

* fix bug not finding required files

* add TM binary files to packages

Co-authored-by: Alejandro Fraga Cimadevila <alex_fraga95@hotmail.com>
Co-authored-by: bernatx <berni2berni>
Co-authored-by: bernat <bernatx@gmail.com>
2021-07-28 14:44:54 +02:00
bernat 7864c8cc2c Using Carla forked UE4.26 version 2021-07-28 14:39:42 +02:00
Axel 9318f2798d Added --batch-size argument to make import command to limit the amount of tiles to import at a time. 2021-07-27 13:08:11 +02:00
Joel Moriana 00d8faacdf removed lsb_release dependency 2021-07-26 10:25:08 +02:00
Joel Moriana 622a7104b3 skipp wheel repair if not using bionic 2021-07-26 10:25:08 +02:00