Commit Graph

1340 Commits

Author SHA1 Message Date
XGodina fa936653bb Fix PR request 2022-11-29 11:23:33 +01:00
XGodina a0556ce705 Fix change the id of Bicycle 26u, to 25u, 2022-11-29 11:23:33 +01:00
XGodina 39fa6d5190 Fix Semantic Segmentation color of Motorcicle 2022-11-29 11:23:33 +01:00
XGodina 30c2b12bef Fix Tunnel Semantic Segmentation 2022-11-29 11:23:33 +01:00
XGodina 88dbe952ff Add new Tags for Semantic Segmentation 2022-11-29 11:23:33 +01:00
bernatx 91501aa5ab Moving tick of TM 2022-11-28 17:44:39 +01:00
bernatx c328d7ea02 adding tick of Recast and TM in asynchronous also 2022-11-23 16:51:41 +01:00
bernatx cb58f47231 Remove pausing pedrestian when reaching points from a path 2022-11-23 16:51:41 +01:00
bernatx b6e7a6a01a Send pedestrian positions in synchronous call 2022-11-23 16:51:41 +01:00
bernatx ae821b2953 Send pedestrians positions and TM positions when ticking 2022-11-23 16:51:41 +01:00
Blyron 906b4658d5
Aaron/terramechanics performance (#5900)
* Added local frame option. Fixed inputs for NN

* Add Textures

* Changed texture to grayscale RGB and added check for 'air' particles

* Updated 2k and 4k textures enable parameter for select res texture for deformation

* Fix issue where trying to access TMap when loading

* Use contains functions instead of checking num of elemnts on tmap to make a secure access

* Used ParticlesHeightmap optimization and clear some log

* Fixed number of particles inputs. Removed debug output. Fixed mutex creating cpu stalls

* Decoupling visualization with gamethread

* Make work optimisations

* Disable deformation visualization

* Updated collisions parameters, collisions itself are not updated

* Disable Collisions vehicle with landscape

* Add in pytorch output wheel normal and put them into UE4 and apply to wheels

* Added factors based on distance, never negative, check if there are particles

* Fix compilation error

* Removed unused code and normals related code

* Fixed compiling error

Co-authored-by: Axel <axellopez92@outlook.com>
2022-11-02 16:13:22 +01:00
Axel1092 597bfbc27d
Axel/change colliders (#5896)
* Added local frame option. Fixed inputs for NN

* Add Textures

* Changed texture to grayscale RGB and added check for 'air' particles

* Updated 2k and 4k textures enable parameter for select res texture for deformation

* Fix issue where trying to access TMap when loading

* Use contains functions instead of checking num of elemnts on tmap to make a secure access

* Used ParticlesHeightmap optimization and clear some log

* Fixed number of particles inputs. Removed debug output. Fixed mutex creating cpu stalls

* Decoupling visualization with gamethread

* Make work optimisations

* Disable deformation visualization

* Updated collisions parameters, collisions itself are not updated

* Disable Collisions vehicle with landscape

* Add in pytorch output wheel normal and put them into UE4 and apply to wheels

* Moved collider removal logic

Co-authored-by: Aaron <samaniegoaaron112@gmail.com>
2022-10-31 16:33:27 +01:00
Joel Moriana c5abee5e79 anticipation algorithm updated 2022-10-20 16:25:31 +02:00
Axel f3065f2541 Fixed terrain_type = 0 not processing the input 2022-10-13 13:35:49 +02:00
anrp 4e949228d4 Fix shared_ptr cycles in C++ carla::Client
carla::client::detail::Simulator had a strong reference from
carla::client::LightManager, which meant that deleting the client-facing
carla::Client did not actually delete the Simulator object, meaning that
it remained connected. Fix that.
2022-10-13 12:50:04 +02:00
Axel1092 aeac45b09c
Terramechanics and Vegetation fixes (#5820)
* 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 not finding skeletal blueprints in shipping builds

* 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

* Physics fixed.
- Removed re-aplying forces all the time.
- Removed collisions with the static meshes.

* Fixed slow frames. Added functionality

* Removed unecessary library links

* Fixed pytorch link

* Limited search to relevant tiles

* Added parameter to modify torque and forces for nested bones.

* Forgot to add file.

* Added multithreaded particle search. Fixed cuda architectures compilation

* removed old unused code

* fix windows compilation

* collisions now are applied from the closest point.
added debug bools to enable more collisions and draw collision points.

* Removed old code.

* Fixed bug with distance less than zero.

* Try to stabilize a bit

* CHanged repulsion forces so that contacts end with equilibrium

* 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

* Changes to tile location computation and threaded structure

* Added lock to prevent parallel intialization of tiles

* Adding support for large texture

* Fixed infinite loop

* Removed unnecessary function, changed particle ordering

* Disable Enable plane and Change path to create folder

* Added debug options for particles, added fraction based displacement

* Tried to round to have deterministic rounds in Coords calculations

* Revert files

* Fixes to enable UCustomTerrainPhysicsComponent to interact with ALargeMapManager

* Now all foliages are spawned correctly.
- SpringBasedVegetationComponent: Added the posibility to set bones as static. This static bones will use the OnCollisionEvent instead overlap events.
- VegetationManager: Removed unnecessary variables.
- VegetationManager: Now the FTileData supports multiple level loads for the same tile.
- VegetationManager: Refactor the code.

* Remove unnecessary logs

* Resolve Conflict

* Added Local tile displacement field

* Removed Freeing CacheData

* Fixes to enable UCustomTerrainPhysicsComponent to interact with ALargeMapManager

* Added Local tile displacement field

* Update Heightmaps

* Mark for initial update generated tiles

* Added soil component field and code clean up

* Fix with the path for debug foliages.

* Added flag to atenuate particle forces

* Fix compilation in windows

* Removing 'can rest' feature

* Removed Tile being recreated losing tree references.

* Fixing sleep

* Check index is valid before accesing it preventing crash when loading  tiles from files

* Add debug position, add logging when removing and adding particles to zordered map, now only remove one element from multisets

* Initialize tile's heightmap on the fly not read it from file

* Fixed link errors

* Added debug to location when not vehicle loaded. Taking Height from ZOrdered particles instead from tile local heightmap

* Mitigation of vibration

* Remove unused code

* fixed white textures

* Fixed Z spin in some situations

* Multithread savemap and added more logging for debug purpouses

* Removing non used code. Updating texture based on tiles position instead of cars position

* Fixed terrain type flag not working

* add checks for tile removing only with valid pointers.

* Fixed map loading crash

Co-authored-by: Aaron <samaniegoaaron112@gmail.com>
Co-authored-by: LuisPoveda <lpoveda@cvc.uab.cat>
Co-authored-by: bernatx <bernatx@gmail.com>
2022-10-10 12:32:25 +02:00
bernatx e9a7c321cd Adding new attachment type 'SpringArmGhost' 2022-09-28 13:54:04 +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
Joel Moriana 7c3fbee636 Fixed signal position when not aligned with the lane 2022-09-04 17:13:02 +02:00
Joel Moriana db69a1a579 Added static signals 2022-09-04 17:13:02 +02:00
MarcelPiNacy 608d128f51 Fix traffic light bounding box issue. 2022-09-04 17:12:36 +02:00
bernatx 9d99bb7c85 Fix compilation in Ubuntu 2022-09-04 17:12:36 +02:00
bernatx 91430a3f1a Now the world position of the bounding box return the right rotation (it was applied twice) 2022-09-04 17:12:36 +02:00
Joel Moriana 46089af72f Compute displacement direction when moving signals 2022-08-17 15:32:00 +02:00
Joel Moriana e8a2bd3c74 PR changes 2022-08-01 15:14:19 +02:00
Joel Moriana bc4b6331e1 Displace signals outside driving and shoulder lanes 2022-08-01 15:14:19 +02:00
Joel Moriana 9a5508ee35 PR changes 2022-07-29 10:33:22 +02:00
Joel Moriana 0a0b426cd4 Safer intersection handling 2022-07-29 10:33:22 +02:00
bernatx af0e2570af changing log message 2022-07-27 22:10:23 +02:00
bernatx 93dddd0cd3 Changing some logs 2022-07-27 17:52:24 +02:00
bernat 078cf0f824
Fixing first ticks of a sensor (#5616)
* Stream is removed when the sensor is destroyed

* Changing log_info to log_debug

* changeslog

* Changes to return some non-const objects

* Changing from weak_ptr to shared_ptr for storing sessions

* Split long line

* Changing log priority of some messages

* Make sure sensor is active when an user wants to use it (before it connects to it)

* Change UE tasks to any task, and not from Game thread
2022-07-25 15:32:29 +02:00
bernatx 5c4b37c710 Changing log priority of some messages 2022-07-25 15:26:55 +02:00
bernatx 67d7df713e Changing from weak_ptr to shared_ptr for storing sessions 2022-07-25 15:26:55 +02:00
bernatx c504e94e40 Changing log_info to log_debug 2022-07-25 15:26:55 +02:00
bernatx f10b83c4fe Stream is removed when the sensor is destroyed 2022-07-25 15:26:55 +02:00
bernatx cb0ae25111 Fixing compilation 2022-07-25 13:02:00 +02:00
bernatx 3335c75c38 Secondary server listener is now closed (in editor it was still open) 2022-07-25 13:02:00 +02:00
Joel Moriana e7df4ea732 Removed whitespaces 2022-07-22 09:29:08 +02:00
Joel Moriana 480c50e851 Added lane offset parameter 2022-07-22 09:29:08 +02:00
bernatx 98bce2aa01 More little changes 2022-07-21 13:24:02 +02:00
bernatx 98752b395a Fix type of variable 2022-07-21 13:24:02 +02:00
bernatx e48a88275f Fixes for compilation from Jenkins 2022-07-21 13:24:02 +02:00
bernatx f6d1bfbb91 Undef the PI macro for non Unreal files 2022-07-21 13:24:02 +02:00
bernatx fc0765a02a Adding needed header files 2022-07-21 13:24:02 +02:00
bernatx 76e96af6c3 Little fixes from review 2022-07-21 13:24:02 +02:00
bernatx a6ed1f9453 Changing classes of sensors a little 2022-07-21 13:24:02 +02:00
bernatx 4ea29070d2 Set synchronous mode automatically in multi-gpu 2022-07-21 13:24:02 +02:00
bernatx 9c9eda84bc Multi GPU first version 2022-07-21 13:24:02 +02:00
Joel Moriana c242104c28 Avoid notification of green-yellow state to TM vehicles 2022-07-19 12:36:24 +02:00
Guillermo 014fc19083 Changed logs to debug mode 2022-07-12 15:49:03 +02:00