Commit Graph

1461 Commits

Author SHA1 Message Date
Marcel Pi a152863b11
Merge GBuffer features. (#5960)
* Add Misc/GBuffer

* Add EnqueueRenderSceneImmediateWithGBuffer.

* Modified ASceneCaptureSensor to allow gbuffer recording.

* Minor GBuffer progress.

* More GBuffer changes.

* Removed unnecessary files.

* Add FRHITexture* functions to FPixelReader + temporarily disabled non-gbuffer rendering in ASceneCaptureSensor.

* Add missing FPixelReader functions.

* Minor changes (Switching to Windows).

* Remove FRHITexture functions from FPixelReader, added the file ImageUtil.

* Remove FRHITexture functions from FPixelReader, added the file ImageUtil. (2)

* Added API to listen GBuffer data.

* Added gbuffer serializer classes

* Temporarily remove ViewRect hack.

* Add USceneCaptureComponent* derived classes.

* Disable USceneCaptureComponent*_CARLA and add initial FRHIGPUTextureReadBack-based code.

* Fix and re-enable custom SceneCaptureComponents.

* Fully switch to FRHIGPUTextureReadback.

* Remove unnecessary call to FlushRenderingCommands.

* Minor API changes.

* Add support for PF_DepthStencil in ImageUtil.

* More API progress...

* More API progress... (2)

* Removed testing code.

* Minor changes for testing.

* GBuffer API fixes.

* Improve GBuffer capture code.

* Fixed SceneDepth transfer issues and added SceneStencil, CustomDepth and CustomStencil to the GBuffer capture.

* Fix compilation error due to the usage of C++17 features.

* Removed major memory leak and added manual_control_gbuffer.py.

* Fixed a silly mistake.

* Minor changes to manual_control_gbuffer and SceneCaptureSensor.

* Fix compilation error on some versions of Ubuntu.

* Disable TAA when reading GBuffers to avoid jitter.

* Improve memory usage.

* Progress towards automatically detecting when a GBuffer stream is unused.

* Fix includes in SceneCaptureSensor + minor change in manual_control_gbuffer.py

* Progress on automatically detecting which GBuffers aren't needed.

* Remove unneeded __declspec.

* Revert ASensor changes + fix tutorial_gbuffer.py

* Update CHANGELOG.md

* Apply requested changes for the PR, add gitignore for the file OptionalModules.ini and add a GBufferTextureID enum to the Python API.

* Remove OptionalModules.ini.

* Fix indentation.

* Fix indentation (2).

* Fix indentation (3).

* Add documentation and more indentation fixes.

* Remove commented includes.

* Add missing line break.

* Fix memory leak + remove unneeded files.

* Add .uproject again, fix EngineAssociation.

* Remove unneeded ENQUEUE_RENDER_COMMAND.

* Fix manual_control_gbuffer.py.

* Add `stop_gbuffer` to the Python API.

* Minor fixes.

* Fix performance bug.

Previously, when a client requested a gbuffer that is unused it would stay open, even after stopping it explicitly. This commit fixes this issue.

* Fix indentation.

* Add missing braces, more indentation fixes and simplify some of the code.

* Update sensor.yml docs.

* Update docs.

* Remove unnecessary UE_Log + changed one verbosity level.

Co-authored-by: Axel <axellopez92@outlook.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
2022-11-29 11:24:26 +01:00
Axel dcda50140a Exclude new vehicle testing in the old towns 2022-11-29 11:23:33 +01:00
Axel da5d486f47 Fix PythonAPI 2022-11-29 11:23:33 +01:00
xgodina d4c1bfc672 Add new tags for semantic segmentation "Bus" and "Rider" 2022-11-29 11:23:33 +01:00
XGodina 2b6f94c8af Fix PR request2 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 bcf3471586 Ignore large maps for testing spawn points 2022-10-21 00:29:49 +02:00
Axel 16ec77d5e4 Added terramechanics flag to manual_control.py 2022-10-18 09:58:10 +02:00
MattRowe18 a4f5c26efa added extra traffic manager functions 2022-10-17 16:18:24 +02:00
bernatx f6348a2d84 Fix smoke test 2022-10-13 14:30:58 +02:00
Guillermo dec92e690c Fixed collision detection 2022-10-11 16:03:32 +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
bernatx 634066c19c content version and avoid large map test 2022-09-16 16:45:40 +02:00
Guillermo af5b233d1d Added offset detection and expose parameters 2022-08-16 12:20:42 +02:00
Joel Moriana be79ffdbcc Changed enum to intenum 2022-07-29 10:33:22 +02:00
Guillermo 411184fbcc Fixed bug for 0 distance 2022-07-22 15:21:28 +02:00
Joel Moriana 480c50e851 Added lane offset parameter 2022-07-22 09:29:08 +02:00
glopezdiest bf2815ec58
Improved Python agent performance (#5555)
* Improved agent performance

* CHANGELOG
2022-07-01 18:30:56 +02:00
jaivra 0f5252ad62 fixed the indentation of the assignment statement to control variable 2022-05-18 16:21:45 +02:00
glopezdiest a649c67d7e
Added failure states for vehicles (#5410)
* Added failure states for vehicles

* Added missing endline
2022-05-16 21:55:19 +02:00
Guillermo 79e6aec314 Pretty code 2022-05-13 09:00:46 +02:00
Guillermo c918960aa1 Added lane changes 2022-05-13 09:00:46 +02:00
Guillermo 49223437b2 Added the instances 2022-05-04 09:52:43 +02:00
Marcel Pi 139041fd7f
Improvements to the dust_storm weather parameter. (#5388)
* Switched DustStorm parameter from bool to float.

* Automatically detect clang version.

* Revert "Automatically detect clang version."

This reverts commit 4ac1c95c26.

* Update environment.py weather presets.

* Expose dust_storm console command in environment.py + documentation.

* Fix minor DustStorm preset error.

* Update CHANGELOG.md
2022-04-27 12:52:25 +02:00
Guillermo 8b8f703b43 Fixed bug at microlanes 2022-04-26 09:38:56 +02:00
Guillermo 46d50df7c5 Fix topology with ending lanes 2022-04-26 09:38:56 +02:00
glopezdiest 5003e58d7c
New ConstantVelocityAgent and TM parameter (#5290) 2022-04-20 14:44:27 +02:00
glopezdiest 8d5204e048
Added set_day_night_cycle parameter (#5322) 2022-04-13 18:25:46 +02:00
glopezdiest c977075b90
Added 4 new attributes to the vehicle blueprints (#5258)
* Added 4 new vehicle attributes
2022-04-12 15:57:54 +02:00
Marcel Pi a07cab89ab Fixed type error. 2022-04-05 11:52:16 +02:00
Marcel Pi 9d8c6175ab Added DustStorm boolean option in WeatherParameters. 2022-04-05 11:52:16 +02:00
anrp 60709f506b Switch to boost::variant2
boost::variant only supports up to 20 types (MPL limit). boost::variant2
has no such limit; switch to it.
2022-03-28 12:35:11 +02:00
Marcel Pi 8dfbb14852 Minor fix for test/smoke/test_sensor_tick_time.py
Added sensor.data.normals to the exception list of test_sensor_tick_time.py
2022-02-18 11:42:32 +01:00
Marcel Pi 98cf46d027 Minor fixes for the pull request.
Updated copyrights, added custom normal camera definition function in ActorBlueprintFunctionLibrary and fixed minor include error.
2022-02-18 11:42:32 +01:00
Marcel Pi 3b45bfd165 Added new sensor with camera normals 2022-02-18 11:42:32 +01:00
Joel Moriana 0e67ca23fd Handle steer speed in the ackermann controller 2022-02-08 20:15:57 +01:00
Joel Moriana 702bf9db50 removed tunning ackermann pid 2022-02-08 20:15:57 +01:00
Joel Moriana 8cc6f132fc First iteration ackermann controller 2022-02-08 20:15:57 +01:00
Guillermo 207ac8c78c Updated smoke test 2022-01-11 11:37:27 +01:00
Guillermo e0719a8270 Fixed vehicle sorting + WIP physics deter check 2022-01-11 11:37:27 +01:00
bernatx 613b4e5075 changing to version 0.9.13 2021-11-10 15:11:46 +01:00
Anshumaan Singh 50abe1218f Update manual_control_steeringwheel.py 2021-11-10 14:54:45 +01:00
Anshumaan Singh 39d6ede417 Fixed an error caused during map name being called
An incorrect attribute call was being made, so `map_name` was changed to `get_map().name` to fix it
2021-11-10 14:54:45 +01:00
bernatx fa51e45e16 Adding example of python script to draw skeleton bones 2021-11-09 17:10:06 +01:00
Jacopo Bartiromo 2d8d738c33 Merge commit 2021-11-09 12:25:37 +01:00
Axel e2aa1ab097 Added example script for runtime texture update 2021-11-09 00:01:30 +01:00
Axel b2b27175c4 Added documentation 2021-11-09 00:01:30 +01:00
Axel 2199d90e1f fixed smoke test 2021-11-08 09:30:35 +01:00
Axel 63d5b314c6 Added instance semantic segmentation sensors 2021-11-08 09:30:35 +01:00
bernatx 5695337c5b Fixing seed as unsigned int 2021-11-05 18:49:11 +01:00
bernatx 5864183fbc Adding documentation for the new function 2021-11-05 18:49:11 +01:00
bernatx 328cfca118 Adding seed for better pedestrians reproducibility 2021-11-05 18:49:11 +01:00
Axel c95ab47f87 Fixed compile errors in linux. Fixed lights not turning on at night. 2021-11-05 18:34:49 +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
Axel 33c044d493 Added option to change textures of multiple objects with a single call (saving texture memory). 2021-11-05 16:37:17 +01:00
Axel c99e5adf2a Added functions and structures to update textures in runtime. 2021-11-05 16:37:17 +01:00
bernatx 115fe2d915 Fixing docs 2021-11-05 16:29:36 +01:00
bernatx 4284ebb0e1 Added new pose to blend with the animation 2021-11-05 16:29:36 +01:00
bernatx b7a1685166 Return all transforms for bones (world, component and relative) 2021-11-05 16:29:36 +01:00
bernatx 93e4733cf8 First version, bones transform in world space 2021-11-05 16:29:36 +01:00
Guillermo 030b36eed7 Fixed collision detection for behavior agent 2021-11-05 15:40:28 +01:00
Jacopo Bartiromo 5f07128176
New Traffic Manager features for 0.9.13 (#4786)
* Changes in constant values
Added new constants

* Added Ambulance and Firetruck as unsafe vehicles in spawn_npc.py

* WIP: Rerouting algorithm

* Removing rerouting algorithm.
Fixed collisions at high speed.

* Changes to constant values and cleaning up.

* Users can now set their own path by giving a list of locations.
Implementation of RoadOption for SimpleWaypoints
Implementation of GetNextAction and GetActionBuffer for TM actions
Parameters for setting the path import and starting the import process.
Other minor changes

* Users now only need to use one parameter to import path

* added road option to the cache map

* Introduced RoadOption in InMemoryMap for each swp
Introduced getter in PythonAPI for high level path
Introduced getter in PythonAPI for next high level action
Introduced parameters for random lane changes
Fixed keep right parameter

* Introduced parameter SetImportedRoute to set a RoadOption path for TM controlled vehicles.
Method in Localization Stage to compute a path using RoadOptions.

* CHANGELOG.

* Changing names of methods
Cleanup

* Small changes to Collision Stage
Cleanup of SetRoadOption
Added debug_helper in Loc Stage (to be removed)

* Changes to get_next_action and get_all_actions
Fixed lane changes representation in those methods
Now get_next_action and get_all_actions need the Actor in Python

* Remove debug_helper
Set MAX_BRAKE to 0.7

* Constant values in Loc stage

* Code fixes

* Small changes in collision stage
Adding constants for VLStage
Changes in VLStage

* Choose randomly a right or left lane change if forcing both.

* Reviewable changes
Changes name of variables in Loc stage
Removed unnecessary import

* Minor final changes

* Change of method name in generate_traffic

* Change in Latest ContentVersion.txt

Co-authored-by: Joel Moriana <joel.moriana@gmail.com>
2021-11-03 11:06:14 +01:00
Luca 85da613f51
Vehicle lights state in traffic manager (#4717)
* added vehicle lights stage to the traffic manager under the dev branch

* update CHANGELOG to lastest version and added vehicle lights stage for automatically turn on-off lights

* added vehicle lights stage to the traffic manager under the dev branch

* removed commented code

* cleanups to the code, adding some comments to explain how the trafficmanagerlocal handles the command buffer

* fixing missing reference in ALSM constructor, disabling vehicle light state for dormant vehicles

* bugfix in vehicle_id_list access, added fix to avoid blinking brake lights due to throttle control

* requested changes in the vehicle light stage code

* missing namespace qualifier for constants

* Added explicit method to enable the vehicle lights management by the TM, on a per-vehicle basis. Changed generate_traffic.py to use the new vehicle lights stage instead of just setting a fixed, constant vehicle light status. Docs are updated, accordingly.

Co-authored-by: npunito <npunito>
Co-authored-by: Jacopo Bartiromo <32928804+jackbart94@users.noreply.github.com>
2021-10-28 16:09:14 +02:00
Hita Barasm Mamagani df9c6d20af Minor bug fixes in new util examples 2021-10-18 09:24:39 +02:00
Hita Barasm Mamagani 9b0751b6df Added missing required option from arguments 2021-10-18 09:24:39 +02:00
Hita Barasm Mamagani ee36e3993b Some bug fixes in new util examples 2021-10-18 09:24:39 +02:00
Hita Barasm Mamagani d1f6aa256e Added arguments to osm_to_xodr conversion example 2021-10-18 09:24:39 +02:00
Hita Barasm Mamagani e9330c5d61 Added two new python examples to Util 2021-10-18 09:24:39 +02:00
Daniel Santos-Olivan e4243c890a manual_control: reset telemetry state when spawning new cars 2021-10-05 10:59:09 +02:00
Bernd Gassmann d112c3bfed Fix global route planner python agent
Ensure waypoint.right_lane_marking/left_lane_marking exist before
accessing
2021-09-28 11:08:38 +02:00
Daniel Santos-Olivan 6e1737ecc6 Added documention for door opening/closing 2021-09-16 11:28:46 +02:00
Daniel Santos-Olivan 727b10fe26 smoke_test: minor updates to test_vehicle_physics 2021-09-16 11:28:46 +02:00
Daniel Santos-Olivan 0913a7b053 Open/Close door added to PythonAPI and manual_control 2021-09-16 11:28:46 +02:00
Guillermo 4a32bfecb6 Fixed out of road vehicle detection 2021-09-09 13:03:57 +02:00
Guillermo 8bdb2fbe44 Minor bug fixes 2021-09-09 13:03:57 +02:00
Guillermo a1b268aed8 Improved vehicle detection at junction 2021-09-09 13:03:57 +02:00
Daniel Santos-Olivan 67172ad203 Enable smoke test for vehicle physics and collision determinism 2021-09-02 10:59:45 +02:00
Daniel Santos-Olivan 95dffb3ee1 test_collision_determinism: update test
- remove all references to sensors
 - reload each simulation in sync
 - replace all commands with apply_batch_sync
2021-09-02 10:59:45 +02:00
Daniel Santos-Olivan 108b6b8524 test_vehicle_physics: simplify and stabilized some tests 2021-09-02 10:59:45 +02:00
Daniel Santos-Olivan 72cd95cce2 check_lidar_bb: added more cars to the scripts 2021-08-30 11:36:03 +02:00
Daniel Santos-Olivan 3b826ee49c Minor fixes
- update car names in check_lidar_bb.py
 - increase the timeout in some scripts
2021-08-30 11:36:03 +02:00
Sid1057 9e0e04aae4 replaced os.system approach with os.mkdir 2021-08-10 09:16:52 +02:00
Sid1057 97e40a2aed vehicle name bugfix 2021-08-10 09:16:52 +02:00
Sid1057 08570d5fe1 'No such directory _out' bugfix 2021-08-10 09:16:52 +02:00
Guillermo f90c2c6123 Added ymls and Cross C++ function 2021-08-07 17:43:38 +02:00
Guillermo fee6a749f5 Exposed some vector functions to the python api 2021-08-07 17:43:38 +02:00
Guillermo 592eec0377 Fixed enter bug 2021-08-02 16:36:28 +02:00
Guillermo 5127b63d91 Fixed issues with new map.name 2021-08-02 16:36:28 +02:00
Daniel Santos-Olivan 4d9af29506 Modified also start_recording script 2021-08-02 16:36:28 +02:00
Daniel Santos-Olivan 3fa0c21e2a Added microlino and sprinter to safe vehicles 2021-08-02 16:36:28 +02:00
Daniel Santos-Olivan fd661cdbf4 Script changes
- Increase max throttle to manual control to 1.0
 - In manual control and generate traffic, ignore the generation
   if the filter only returns one blueprint
2021-07-30 15:11:09 +02:00
bernatx 32ffd2c435 Changing to version 0.9.12 2021-07-30 13:12:28 +02:00
Guillermo 301445eb35 Fixed minroa gent error 2021-07-30 13:05:32 +02:00
corkyw10 dca7cc3f8d updated Index page, rearranged nav bar, corrected links to broken images, corrected default settings for wheel physics, added anysys rtr information 2021-07-30 12:48:32 +02:00
Joel Moriana 374b1dd3e6 added long description python api 2021-07-30 12:42:01 +02:00
bernatx 756e753826 Revert "Refactor argument synch -> sync", because async is reserved word in Python
This reverts commit 48bd1b45c0.
2021-07-30 01:08:15 +02:00
Guillermo d40f787e68 Minor warning changes 2021-07-30 01:08:15 +02:00