Commit Graph

1348 Commits

Author SHA1 Message Date
Roel Algaba Brizuela 0a9332c16f Bug fixing and updated road painter import process
The import process now loads a .json file for applying decals to the road. Several bug fixes related to the generation of multiple map textures and dynamic materials. New update to the road painter preset on the art repository.
2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela 954ed13c48 Texture creation and apply material in runtime
Extended road painter wrapper class in order to create textures statically in the content folder so the road painter blueprint can paint the road map into these new textures and save them, instead of having to share the same texture over several maps. The material is now applied on runtime (as soon as the map is launched, either in package mode or play mode in the editor)
2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela d76f682005 make import road painter materials for maps
First implementation for applying road painter materials to imported maps. However, the user still has to access the road painter blueprint and click on the "Paint all roads button"
2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela 1f1c2798b2 Updated make import to apply RoadPainter materials 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela 69a0da33a4 Finished naming script first implementation 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela a3b0f03e2e Reset files back to default state 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela 17509022d1 Fix DVSCamera include error 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela c0188774c2 First version - Wheel direction changes 2021-05-07 15:52:21 +02:00
Daniel Santos-Olivan 144b7417af Minor fix 2021-04-26 14:57:18 +02:00
Daniel Santos-Olivan 051a33c505 IMU: Fix some weird cases when the imu gives nan values 2021-04-26 14:57:18 +02:00
Daniel Santos-Oliván 2eddbbcb39 Fix bug in lidar point count 2021-04-14 23:30:03 +02:00
Daniel Santos-Olivan 9a7c05c80e New LineTrace avoids blocking physics scene
This change takes advantage of the new function for raycast
included in the our version of the engine that does not block
the PhysiX scene.
2021-04-12 09:48:03 +02:00
Axel 3679aaa2af Disable chrono upon collision 2021-04-07 17:48:17 +02:00
Axel 5da83fbfb6 Added collision detection for chrono vehicles. 2021-04-07 17:48:17 +02:00
Axel 5bb9c3ad51 Removed unused Timer.h 2021-04-07 12:34:05 +02:00
Axel d7069ee098 Changed profiling macro fot static strings. 2021-04-07 12:34:05 +02:00
Axel 2584d884b9 Added trace profiler events for unreal insights. 2021-04-07 12:34:05 +02:00
doterop 6001da2866 Added scoped timer 2021-04-07 12:34:05 +02:00
doterop 86efe6f581 Added some UE isnights traces 2021-04-07 12:34:05 +02:00
Axel ed6062e5dd Added new argument to recreate sensors in the replayer. 2021-04-01 12:32:30 +02:00
Roel Algaba Brizuela e9fc29898f
Added wheel control (#3868)
* First version - Wheel direction changes

* Updated CHANGELOG.md

* Fix DVSCamera include error

* Updated vehicle wheels direction commands

* Reset files back to default state

* Removed files from PR.

* Updated changelog
2021-03-15 15:42:33 +01:00
bernat 7cf41964b8 Updating exposure value in Linux and UE 4.26 2021-03-08 15:59:45 +01:00
Axel1092 55a98646b3 Fixed chrono Dlls separated from the binary file 2021-03-06 01:17:05 +01:00
Axel 664866953e Fixed package build 2021-03-04 12:48:57 +01:00
Axel 226942381d Removed tabs. 2021-03-04 12:48:57 +01:00
Axel 74180b0fe7 Added missing chrono macros 2021-03-04 12:48:57 +01:00
Axel1092 bffd3968a4 Fixed std issues in chrono implementation in windows. 2021-03-04 12:48:57 +01:00
Axel a1704cb3c7 Enabling exceptions for chrono package. 2021-03-04 12:48:57 +01:00
Axel c5a1a28fa2 Overloaded all UBaseCarlaMovementComponent functions in UChronoMovementComponent 2021-03-04 12:48:57 +01:00
Axel 3fc6bce36c Added JSON ingestion for chrono vehicle definition 2021-03-04 12:48:57 +01:00
bernat b32514edb7 Uses latest RoadRunner nomenclature, and removes the FBX name on assets 2021-03-02 13:06:31 +01:00
doterop 8604f81b0a destroy_actor now returns a bool 2021-03-02 12:56:21 +01:00
bernat 50f0626e5d Fix brightness values for UE 4.26 2021-02-25 16:54:01 +01:00
bernat 7a2c12cfe5 Fix for import process in UE 4.26 2021-02-25 16:52:30 +01:00
Axel1092 30f88cfb73 Removed boost RTTI check. 2021-02-25 16:48:15 +01:00
bernat 3bbc41f1b8 Fix IF scope 2021-02-25 16:48:15 +01:00
bernat 812508116e Changes for compiling UE 4.26 2021-02-25 16:48:15 +01:00
Axel e34e0f40b7 Fixed spawn of sensors during replayer. 2021-02-24 23:12:41 +01:00
bernat a0dbf0f8e5 cleanning code 2021-02-23 19:07:23 +01:00
bernat 47826cd406 Disabling Carsim after collision 2021-02-23 19:07:23 +01:00
bernat 1220b5a669 First version 2021-02-23 19:07:23 +01:00
Axel d76e9c9c1b Review fixes. 2021-02-18 10:04:35 +01:00
Axel 546016c664 Set chrono version to 6.0.0. 2021-02-18 10:04:35 +01:00
Axel e34205399c Fixed .uproject file asociation 2021-02-18 10:04:35 +01:00
Axel1092 d6d4b1f50d Skipping 0 delta times. 2021-02-18 10:04:35 +01:00
Axel 3c1f515b3f Fixed fall through bug for chrono vehicle. 2021-02-18 10:04:35 +01:00
Axel1092 aef432e08b Small fix to windows build 2021-02-18 10:04:35 +01:00
Axel1092 0473b18df1 Added missing .lib from chrono to Build.cs 2021-02-18 10:04:35 +01:00
Axel bf8e160622 Added release compile mode for chrono library. 2021-02-18 10:04:35 +01:00
Axel f45e0d7c08 Added substep algorithm for chrono. Added initial UE4 terrain detection with raycast. 2021-02-18 10:04:35 +01:00
Axel1092 7122ce01c6 mend 2021-02-18 10:04:35 +01:00
Axel1092 b38b92f4b6 mend 2021-02-18 10:04:35 +01:00
Axel1092 2e0b4bc885 Fixed windows compilation issue 2021-02-18 10:04:35 +01:00
Axel1092 14a634aa29 Added chrono compilation support for windows. 2021-02-18 10:04:35 +01:00
Axel 2117794dd7 Created base chrono implementation 2021-02-18 10:04:35 +01:00
Axel 7c3367325f Added chrono library 2021-02-18 10:04:35 +01:00
doterop ac621539f0 Removed previous ReadyToCapture 2021-01-25 17:03:29 +01:00
doterop 2317e35f98 Added tick control on sensor for sensor_tick attribute 2021-01-25 17:03:29 +01:00
Axel 5b59d9ad14 Removed double check for carsim mode. 2021-01-21 10:20:43 +01:00
Axel c0986a07fc Improved movement components vehicle interface. 2021-01-21 10:20:43 +01:00
Daniel Santos-Olivan 3e3b7fcb20 Disable PhysXVehicleManager when physics are off 2021-01-14 10:14:32 +01:00
bernat 458761605e Upgrade UE4 API function to get the project directory 2021-01-13 10:54:02 +01:00
doterop 704c710f3e Removed comment 2021-01-12 17:11:22 +01:00
doterop 668d7fd496 Added exception to register crosswalks 2021-01-12 17:11:22 +01:00
bernat 3f4eed2239 More version changes 2020-12-22 18:34:44 +01:00
Marc Garcia Puig 1930d1d0b1 Removed unneded include 2020-12-18 20:27:01 +01:00
Marc Garcia Puig 861b95e853 Fixed DVS to work with the new rendering pipeline 2020-12-18 20:27:01 +01:00
doterop 726a5383af
Fixed texture streaming issues. (#3738) 2020-12-18 17:42:45 +01:00
Axel 1b257a15c3 Fixed missing defines 2020-12-17 16:49:32 +01:00
Axel 2fe34e0b5a Added actor offset for carsim simulation. 2020-12-17 13:22:39 +01:00
Daniel Santos-Olivan 3985512ccb Removed old commented lines 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan b5f12907e7 CarlaGameModeBase: Block the LoadWorld when loading levels 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 1109f13198 Radar: Removed unused variable 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 4aa97d09ef Added support for load/reload maps without disabling the synchronous mode
Now you can add the option of reset_settings=False for not returning
to default options when you load/reload maps.
By default, reset_settings=True so it does not change the current
behavior of the simulator.
2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 1b9cfeed5e Added camera flag to increase quality 2020-12-15 22:31:48 +01:00
Marc Garcia Puig c0a3ee4a3a Allow UE4 tick rate in sensors 2020-12-15 22:31:48 +01:00
Marc Garcia Puig 961622862c Removed warnings 2020-12-15 22:31:48 +01:00
Marc Garcia Puig ffddc6b6b6 Synchronized game thread with render thread 2020-12-15 22:31:48 +01:00
Marc Garcia Puig baa7af53cb Added some debug lines 2020-12-15 22:31:48 +01:00
Marc Garcia Puig bb635add57 Removed OldTransform workaround 2020-12-15 22:31:48 +01:00
Marc Garcia Puig d6f44df7c9 Changed sensor tick after physics 2020-12-15 22:31:48 +01:00
bernat 1b205b388d Moving template code to CPP 2020-12-15 22:31:48 +01:00
bernat b96428adec Moving RPC at pre-tick and world-snapshot at post-tick 2020-12-15 22:31:48 +01:00
bernat 706d905ed1 Reset sublevels for each map 2020-12-14 12:33:31 +01:00
bernat c86110593a Parsing sublevel maps for each map to package 2020-12-14 12:33:31 +01:00
bernat b144602166 Adding optimized maps to package 2020-12-14 12:33:31 +01:00
Axel 9f13584be8 Update gitignore 2020-12-11 16:59:44 +01:00
Axel df7bfbbb14 Added CarSim config file to gitignore. 2020-12-11 16:59:44 +01:00
Axel bffd921958 Added python script to edit uproject file. 2020-12-11 16:59:44 +01:00
Axel c0c24f6756 Updated uproject file 2020-12-11 16:59:44 +01:00
Axel1092 f408813e72 Fixed windows carsim toggle. 2020-12-10 20:38:33 +01:00
Axel b0fc79a3a6 Updated CarSim API 2020-12-10 20:38:33 +01:00
Axel 3fff811bb8 Fixed missing includes 2020-12-10 20:38:33 +01:00
Axel b068dd81d5 Added to enable optional compilation of CarSim plugin. 2020-12-10 20:38:33 +01:00
Axel 009663e57d Added workarround to enable custom Carsim simfile. 2020-12-10 20:38:33 +01:00
Axel 952bdfcfce Reset velocity to zero on collision to improve stability. 2020-12-10 20:38:33 +01:00
Axel 0c6ce6ecce Added colision detection for carsim. 2020-12-10 20:38:33 +01:00
Axel af6b98e2f8 Fixed physics simulation when carsim is enabled. 2020-12-10 20:38:33 +01:00
Axel 46e4cc7d59 CarSim now does not get license by default, only when enabled. 2020-12-10 20:38:33 +01:00
Axel 802f941fae Added function to set custom carsim simfile. Added option to use ue4 carsim road definition or unreal callback method. 2020-12-10 20:38:33 +01:00
Axel 7739b5eb94 Added first CarSim integration to vehicle class. 2020-12-10 20:38:33 +01:00
doterop 7a6edc405c Added check on invalid BBs 2020-12-09 23:34:26 +01:00
doterop 30db7e21d4
Added culling control (#3656)
* Added culling configuration to settings

* Updated changelog
2020-12-09 15:22:20 +01:00
doterop 263face290 Changed visibility of root SM 2020-12-04 12:39:34 +01:00
doterop de8b2e4ada Forced building to be static 2020-12-04 12:39:34 +01:00
doterop 127823b6d0 Added method to hide all child actors 2020-12-04 12:39:34 +01:00
Axel f229b0c899 Added base class for walker. Disabled setting walker state when walker is dead. 2020-12-03 12:24:24 +01:00
Axel cba230bc0d Added toggle to select deterministic/physically based ragdoll animation. 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan 4d635d5c92 Disable Wheel Sweep for bikes 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan 560dc5a56d Logic for changing the wheel collision in CarlaWheeledVehicle 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan 3835de9b0d Added sweep wheel option to VehiclePhysicsControl 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan d87a5f213e Minor formatting change 2020-11-24 15:14:17 +01:00
Tobias Völkel 3d50aa01c4 Remove obsolete modulo operation 2020-11-24 15:14:17 +01:00
Tobias Völkel 7d0a46d45d Add horizontal fov property to lidar description 2020-11-24 15:14:17 +01:00
doterop 6b27c8226f Fixed bug on BB to Comp conversion 2020-11-24 10:30:35 +01:00
doterop 7e42db5ab2 Fixed BP_Sky name overlap issue 2020-11-24 10:30:35 +01:00
doterop 1d482fa9cf Fixed SKM BB default tag filter 2020-11-24 10:30:35 +01:00
doterop 5574e8fa62 Fixed ISM transform 2020-11-24 10:30:35 +01:00
doterop c98eb974c6 Added Any as a filter option instead of None 2020-11-24 10:30:35 +01:00
doterop 32851266ff Fixed ISM id collision 2020-11-24 10:30:35 +01:00
doterop a95d3d74a8 Added filter by type 2020-11-24 10:30:35 +01:00
doterop b58f86382d Reduced distance of moved instanced of ISM and forced a move on a variable 2020-11-24 10:30:35 +01:00
codeffee 03b354d291 Fixed save path 2020-11-24 10:30:35 +01:00
doterop 00f5740c89 Fixed id overlap 2020-11-24 10:30:35 +01:00
doterop 69c6b0a90e Added IdStr for debug 2020-11-24 10:30:35 +01:00
doterop 70dd76ba90 Removed logs 2020-11-24 10:30:35 +01:00
doterop f66a6159a6 Added callback to async level load 2020-11-24 10:30:35 +01:00
doterop db8f0eff16 Fixed incorrect check and removed some logs 2020-11-24 10:30:35 +01:00
doterop efdd33cf27 Updated ObjectRegister with ISM control 2020-11-24 10:30:35 +01:00
doterop e83fd71040 Added check to register objects 2020-11-24 10:30:35 +01:00
doterop 6392c0bf00 Added methods to get the mesh components 2020-11-24 10:30:35 +01:00
doterop 41c437b12a Created ObjectRegister to control the level object handling 2020-11-24 10:30:35 +01:00
doterop ab16a64ffb Added type to EnvironmentObject 2020-11-24 10:30:35 +01:00
doterop 4c7b7cbd71 BB is now in local space 2020-11-20 15:03:03 +01:00
doterop 5474c72876 Added BB calculation to all actors 2020-11-20 15:03:03 +01:00
Daniel Santos-Oliván 8f569e7cd2 Fix build in windows 2020-11-11 11:17:52 +01:00
Marc Garcia Puig 13370fdeca Added noise_seed in Lidar and Radar sensors 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan 1b12813071 Removed trailing white spaces 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan ea194c462e Fix for preprocessing condition in SemanticLidar 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan d3935f6824 Minor spelling change 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan 9e7a132af2 Making the result of radar deterministic 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan fcac0e5528 Fix determinisim of the lidar's point cloud
The general dropoff are precomputed so the random number generator
is queried always in the correct order.
2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan a5ea491e4b Added enhanced physics and change default substepping options 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 301eb9032e Changed default substepping parameters 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan bbd3f4df4f Added substepping options in world options
Now, we can modify the substepping in the client.
TODO: Remove Logs
2020-11-05 14:25:04 +01:00
doterop 4f1e1b225f Changed to a better name 2020-11-02 17:53:54 +01:00
doterop a0a2c83f13 Updated TL and TS to be spawned on sublevels 2020-11-02 17:53:54 +01:00
doterop 8f1b401e49
Adding load control on sublevels (#3515)
* Added MapLayer enum

* Added Load/Unload layer functions

* Added calls to register and tag objects on map change

* Added missing file

* Updated MapLayer to support more layers

* Added calls to PythonAPI

* Added default value

* Moved CurrentMapLayer to GI

* Updated manual_control with maplayer handling

* Updated help

* Updated Changelog

* Fixed a missing `;`

* Fixed LoadWorld() API so it works with old code

* Added missing include for shipping builds

* Fixed base enum type of MapLayer

* Removed int number from layer output

* Renamed variables

* MapLayer converted to int32 and added generic enumToString function

* MapLayer back to uint16

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-11-02 11:22:49 +01:00
Axel 7a14a53107 Added missing break 2020-10-30 21:58:55 +01:00
Axel 34d857fea1 Added prop position to recorder. 2020-10-30 21:58:55 +01:00
doterop 4abdd5394f
Character in 2Wheeled BB (#3471)
* Vehicle BB calculation has been updated to include character in 2 wheeled vehicles.

* Updated CHANGELOG.md
2020-10-29 15:20:18 +01:00
Marc Garcia Puig a53c697f69 Sync IMU transforms 2020-10-27 17:22:02 +01:00
Marc Garcia Puig d8b36e652a Fixed camera callback transform 2020-10-27 17:22:02 +01:00
Daniel Santos-Olivan 5e420b0fa8 Filter sublevels and BaseMap in GetAvailableMaps 2020-10-27 12:30:28 +01:00
Axel1092 003e74fc91
Raycasting (#3483)
* Added raycasting and point projection capabilities to python api.

* Added documentation of new functions.

* Fixed missing .f on floats

Co-authored-by: doterop <daniel.oterop@gmail.com>
2020-10-26 11:13:35 +01:00
doterop 81a90f3886 Added missing file 2020-10-19 21:31:45 +02:00
doterop dbe7c2a89f Fixed tick activation 2020-10-19 21:31:45 +02:00
doterop 2fbfda2f24 Renamed and added enable/disable call 2020-10-19 21:31:45 +02:00
doterop ce31f3a1b6 Added GetBBsOfActor 2020-10-19 21:31:45 +02:00
doterop df6e6eef65 Renamed object to mesh 2020-10-19 21:31:45 +02:00
doterop 04da915ab2 Objects are registered at the beginning of the level. 2020-10-19 21:31:45 +02:00
doterop ccee43bffa Added GetObjects call to server-side 2020-10-19 21:31:45 +02:00
bernat 4550573b5e Let skip messages in async, and block on sync mode 2020-10-07 10:56:04 +02:00
doterop 7e736696e3 Fixed sensor_tick on cameras 2020-10-07 03:05:18 +02:00
Daniel Santos-Olivan 22c3e9cf55 Minor reformatting 2020-10-06 14:57:55 +02:00
Daniel Santos-Olivan 509ed941dd Fix SemLidar (correction of the last commit) 2020-10-06 14:57:55 +02:00
Daniel Santos-Olivan 49e5ef05a7 RayCastSemanticLidar: Fix id problem
We were getting the id from ActorInfo and this one
it is not the same as the client's actor id.
Now, we take it from FActorView and it is the correct one.
2020-10-06 14:57:55 +02:00
Daniel Santos-Olivan 7bd1d6e920 SetEnableGravity fixed for pedestrians
Also removed some debug prints
2020-09-30 19:38:54 +02:00
Daniel Santos-Olivan 95abf25a10 Added EnableGravity and better SetSimulatePhysics 2020-09-30 19:38:54 +02:00
doterop 83d752ef94 Moved SendPixels to OnWorldPostActorTick. 2020-09-30 17:36:41 +02:00
doterop 7a522e1fc9 Fixed shadow variable warning. 2020-09-30 17:36:41 +02:00
Daniel Santos-Olivan 8bd3df5bf3 Reinforce collisions in SetSimulatePhysics(true) 2020-09-30 17:14:58 +02:00
doterop 0c6d27e8b7 Camera delegate moved to OnEndFrame (game thread) 2020-09-29 18:03:31 +02:00
Daniel Santos-Olivan 63b3071c9a Fix SetSimulatePhysics for pedestrians 2020-09-29 17:43:36 +02:00
Axel1092 dfa4bb6e15 Upgraded to DX12 2020-09-29 10:15:01 +02:00
doterop e05b58c2a4
Retrieve BBs of level (#3360)
* Added new function to calculate BBs on SKM and SM

* Added BB calculation for an array of actors

* Added BB folliage calculation

* Added a call on the GM to get all the BBs of the level

* Fixed Folliage BB calculation.

* GM::GetAllBBsOfLevel now returns the array of BBs

* Added call on the server side to retrieve the BBs

* Removed debug draw calls

* Added call to the PythonAPI

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Added missing include

* Changed None to Any in PythonAPI

* Fixed Any enum

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Changed None to Any in PythonAPI

* Fixed Any enum

* Fixed rebase

* Fixing wrong BB on splines

* Fixed ISM transform to World

* Fixed duplication of RotateVector

* Added Rotation to BB output string

* Removed hidden components and procedural building

* Fixed string BB output

* Removed logs

* Fixed filter on pedestrians

* Fixed black debug lines in package

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-09-24 23:33:11 +02:00
doterop 161923c1dd Cleaned some unneeded code 2020-09-24 11:04:45 +02:00
doterop bb56f3f1ce Updated BP to code 2020-09-24 11:04:45 +02:00
doterop b5050e0a79 Added Wall support 2020-09-24 11:04:45 +02:00
doterop 68e0097787 Added roof 2020-09-24 11:04:45 +02:00
doterop 24975b908c Fixed corner visibility and editor updates 2020-09-24 11:04:45 +02:00
doterop 6841350a28 Fixing BP child actor creation 2020-09-24 11:04:45 +02:00
doterop eb11522d18 Fixed trasnform update 2020-09-24 11:04:45 +02:00
doterop efcb0068e3 Continuation of the port 2020-09-24 11:04:45 +02:00
doterop 0bbeeddf6a First steps on ProceduralBuiding port to C++ 2020-09-24 11:04:45 +02:00
Daniel Santos-Olivan b0090775a1 Fix format tabs/newlines 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan a22bdc51cc Added commands for AddTorque and AddForce 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 72d8fcb08e Add Warning in the internal use of impulse/force at location 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 30ba2b3323 Exposed AddForce and AddTorque 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 1144e69113 Fix disable_constant_velocity binding 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 4447661d66 First version of the Constant velocity mode
This mode can be enabled in the API and it will keep
a velocity constant.
For now, it needs to be disable automatically but this
can be improved in the future.
2020-09-23 20:40:44 +02:00
Axel e82a6d352c Removed debug warning. 2020-09-23 17:25:25 +02:00
Marc Garcia Puig 1ef830d173 Added DefaultScalability.ini so UE4 doesn't disable EyeAdaptionQuality on Low Quality 2020-09-23 10:26:20 +02:00
Marc Garcia Puig 625d032f23 Fixed debug lines with current illumination 2020-09-22 17:54:43 +02:00
Jacopo Bartiromo 0c83622153
Support Off state for traffic lights in Traffic Manager (#3332)
* Support off state for traffic lights in Traffic Manager

* Removed off state workarround.

Co-authored-by: Axel <axellopez92@outlook.com>
2020-09-22 15:41:10 +02:00
Jacopo Bartiromo 7360436c9d
Determinism for Traffic Manager (#3333)
* Check for determinism

* Per-vehicle random device

* Parameterised random device seed.

* Changing next waypoint selection logic
to use bucketing random device sample.

Arranging next waypoint selections right to left.

* Change to numpy's random lib

* Sorting blueprints to ensure determinism

* New method for determinism

* ResetAllTrafficLight now works in sync mode.

* Moving recorder stuff to engine module

* Fixed recorder for traffic lights in standalone mode.

* Added check to prevent traffic light from updating during replay.

* Updating old traffic lights to use the traffic light component.

* Moved recorder to posttick.

* Small fix to elapse time function.

* Added reset group function to API.

* Merge with traffic_manager/determinism_check

* Changes in TL reset
Option to save to file for recorder script

* Added automatic signal match with OpenDRIVE.

* Fixed error that caused traffic light actors to be missing in client side.

* Added new frozen behavior.

* Updated documentation and changelog

* Updated ContentVersions.txt

* Review changes.

* fixes merge error

* fixes merge

* Update build_windows.md

Added info about command execution that toke me many time to find out

* Update build_windows.md

Updated as requested in pull request review

* Running Carla when choosing a) deb Carla install

This fixes a minor error in the documentation regarding running carla, if the deb installation was choosen.

* Fix for traffic manager freezing upon map change

* attempt to change sys clock to sim clock

* Remove manual unlock of mutex

* fixing merge error

* Changelog and review fixes

Co-authored-by: Praveen Kumar <pravinblaze@hotmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Axel1092 <axellopez92@outlook.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
Co-authored-by: Néstor Sabater <web.nsabater@gmail.com>
Co-authored-by: ll7 <32880741+ll7@users.noreply.github.com>
2020-09-22 15:20:52 +02:00
Axel a75fc59eb0 Added reset all traffic lights function. 2020-09-22 15:04:28 +02:00
Daniel Santos-Olivan 9f5758577d SetVelocity -> SetTargetVelocity
Change the commands set_velocity to set_target_velocity
for both linear and angular velocities.
2020-09-22 12:00:22 +02:00
doterop cc7b1ea910
Retrieve BBs of all the elements of the level (#3301)
* Added new function to calculate BBs on SKM and SM

* Added BB calculation for an array of actors

* Added BB folliage calculation

* Added a call on the GM to get all the BBs of the level

* Fixed Folliage BB calculation.

* GM::GetAllBBsOfLevel now returns the array of BBs

* Added call on the server side to retrieve the BBs

* Removed debug draw calls

* Added call to the PythonAPI

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Added missing include

* Changed None to Any in PythonAPI

* Fixed Any enum

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Changed None to Any in PythonAPI

* Fixed Any enum

* Fixed rebase
2020-09-21 18:22:03 +02:00
Axel1092 9586cd24d5
Existing actors in replayer are positioned to the initial position. (#3328) 2020-09-21 14:42:18 +02:00